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.
27 lines
920 B
Makefile
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"' >> $@
|