puppet/solr/Makefile
Ossi Salmi d785e48a55 Fix curl error handling in Makefiles
Add option -f to make curl fail on server errors. Fixes #7.
2013-08-14 14:16:24 +03:00

27 lines
856 B
Makefile

include $(CURDIR)/../Makefile.inc
VERSION = 4.2.1
TARGET = solr-$(VERSION).tgz
SOURCE = http://ftp.funet.fi/pub/mirrors/apache.org/lucene/solr/$(VERSION)/solr-$(VERSION).tgz
PYSOLRVERSION = 2.0.15
PYSOLRSOURCE = https://pypi.python.org/packages/source/p/pysolr/pysolr-$(PYSOLRVERSION).tar.gz
PYSOLRTARGET = pysolr-$(PYSOLRVERSION).tar.gz
all: download manifest
download: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET)
manifest: $(MANIFESTS)/solr.pp
$(PACKAGES)/$(TARGET):
@umask 022; echo $@; \
test -f $@ || curl -f -o $@ $(SOURCE)
$(PACKAGES)/$(PYSOLRTARGET):
@umask 022; echo $@; \
test -f $@ || curl -f -o $@ $(PYSOLRSOURCE)
$(MANIFESTS)/solr.pp: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET)
@umask 022; echo $@; \
echo '$$solr_package_latest = "$(TARGET)"' > $@ && \
echo '$$pysolr_package_latest = "$(PYSOLRTARGET)"' >> $@