Deploy abusehelper and wiki sources via puppet instead of svn

This commit is contained in:
Ossi Salmi 2010-12-26 19:38:03 +02:00 committed by Timo Mkinen
parent b7be3a0c09
commit a97cf92b2b
4 changed files with 165 additions and 51 deletions

24
abusehelper/Makefile Normal file
View file

@ -0,0 +1,24 @@
AHELPERURL = http://abusehelper.googlecode.com/svn/trunk
AHELPER = $(shell svn info $(AHELPERURL) | awk '/^Revision:/ { print $$2 }')
AHELPERSRC = /usr/local/src/abusehelper-$(AHELPER)
OUT = /srv/puppet/files/common/packages
all: tarball
tarball: $(OUT)/abusehelper.tar.gz
$(AHELPERSRC):
( umask 022 ; mkdir -p $(AHELPERSRC) ; cd $(AHELPERSRC) && \
svn export -r $(AHELPER) $(AHELPERURL) abusehelper )
$(OUT)/abusehelper-$(AHELPER).tar.gz: $(AHELPERSRC)
( umask 022 ; cd $(AHELPERSRC) && \
tar zcvf $(OUT)/abusehelper-$(AHELPER).tar.gz abusehelper )
$(OUT)/abusehelper.tar.gz: $(OUT)/abusehelper-$(AHELPER).tar.gz
( umask 022 ; cd $(OUT) && \
ln -fs abusehelper-$(AHELPER).tar.gz abusehelper.tar.gz )
clean: override AHELPER = *
clean:
rm -fr $(AHELPERSRC)