Changed package fetching Makefiles for abusehelper, vsroom and wiki

No longer uses symlinks to manage package versions. Ppackage versions
are now recorded in /srv/puppet/files/common/packages/manifests/*.pp
instead, which must be included in the site or node manifest.
This commit is contained in:
Ossi Salmi 2011-12-08 14:59:08 +02:00 committed by Timo Mkinen
parent 32956c0d26
commit 29bc90e6f6
6 changed files with 70 additions and 52 deletions

View file

@ -1,12 +1,17 @@
VSROOM = default
VSROOMURL = https://bitbucket.org/clarifiednetworks/vsroom/get/$(VSROOM).tar.gz
OUT = /srv/puppet/files/common/packages
include $(CURDIR)/../Makefile.inc
all: tarball
tarball: vsroom.tar.gz
.PHONY: vsroom.tar.gz
BRANCH = default
SOURCE = https://bitbucket.org/clarifiednetworks/vsroom/get/$(BRANCH).tar.gz
TARGET = vsroom-$(BRANCH)-$(TIMESTAMP).tar.gz
vsroom.tar.gz:
@umask 022 && mkdir -p $(OUT)/vsroom && \
cd $(OUT)/vsroom && wget -nv -N $(VSROOMURL) && \
cd $(OUT) && ln -fs vsroom/$(VSROOM).tar.gz vsroom.tar.gz
all: tarball manifest
tarball: $(PACKAGES)/$(TARGET)
manifest: $(MANIFESTS)/vsroom.pp
$(PACKAGES)/$(TARGET):
@umask 022; echo $@; \
test -f $@ || curl -o $@ $(SOURCE)
$(MANIFESTS)/vsroom.pp: $(PACKAGES)/$(TARGET)
@umask 022; echo $@; \
echo '$$vsroom_package = "$(TARGET)"' > $@