puppet/wiki/Makefile
Ossi Salmi 29bc90e6f6 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.
2011-12-08 15:03:19 +02:00

27 lines
920 B
Makefile

include $(CURDIR)/../Makefile.inc
GWIKIBRANCH = default
GWIKISOURCE = https://bitbucket.org/clarifiednetworks/graphingwiki/get/$(GWIKIBRANCH).tar.gz
GWIKITARGET = graphingwiki-$(GWIKIBRANCH)-$(TIMESTAMP).tar.gz
MOINVERSION = 1.8.9
MOINSOURCE = http://static.moinmo.in/files/moin-$(MOINVERSION).tar.gz
MOINTARGET = moin-$(MOINVERSION).tar.gz
all: tarball manifest
tarball: $(PACKAGES)/$(GWIKITARGET) $(PACKAGES)/$(MOINTARGET)
manifest: $(MANIFESTS)/wiki.pp
$(PACKAGES)/$(GWIKITARGET):
@umask 022; echo $@; \
test -f $@ || curl -o $@ $(GWIKISOURCE)
$(PACKAGES)/$(MOINTARGET):
@umask 022; echo $@; \
test -f $@ || curl -o $@ $(MOINSOURCE)
$(MANIFESTS)/wiki.pp: $(PACKAGES)/$(GWIKITARGET) $(PACKAGES)/$(MOINTARGET)
@umask 022; echo $@; \
echo '$$graphingwiki_package = "$(GWIKITARGET)"' > $@ && \
echo '$$moin_package = "$(MOINTARGET)"' >> $@ && \
echo '$$moin_patch = "moin-$(MOINVERSION).patch"' >> $@