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