169 kx
169 kx COMPONENT_TARGETS = $(HARDWARE_NOARCH)
169 kx
169 kx
169 kx include ../../../../build-system/constants.mk
169 kx
169 kx
169 kx url = $(DOWNLOAD_SERVER)/sources/packages/a/daemon
169 kx
169 kx versions = 0.8.4
169 kx pkgname = daemon
169 kx suffix = tar.gz
169 kx
169 kx tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
169 kx tarballs += $(addsuffix -html.$(suffix), $(addprefix $(pkgname)-, $(versions)))
169 kx sha1s = $(addsuffix .sha1sum, $(tarballs))
169 kx
169 kx patches = $(CURDIR)/patches/daemon-0.8.4-make.patch
169 kx
169 kx .NOTPARALLEL: $(patches)
169 kx
169 kx
169 kx BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
169 kx
169 kx
169 kx include ../../../../build-system/core.mk
169 kx
169 kx
169 kx .PHONY: download_clean
169 kx
169 kx
169 kx $(tarballs):
169 kx @echo -e "\n======= Downloading source tarballs =======" ; \
169 kx for tarball in $(tarballs) ; do \
169 kx echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
169 kx done ; wait
169 kx
169 kx $(sha1s): $(tarballs)
169 kx @for sha in $@ ; do \
169 kx echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
169 kx echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
169 kx touch $$sha ; \
169 kx echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
169 kx sha1sum --check $$sha ; ret="$$?" ; \
169 kx if [ "$$ret" == "1" ]; then \
169 kx echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
169 kx exit 1 ; \
169 kx fi ; \
169 kx done
169 kx
169 kx $(patches): $(sha1s)
169 kx @echo -e "\n======= Create Patches =======\n" ; \
169 kx ( cd create-0.8.4-make-patch ; ./create.patch.sh ) ; \
169 kx echo -e "\n"
169 kx
169 kx download_clean:
169 kx @rm -f $(tarballs) $(sha1s) $(patches)