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