331 kx
331 kx COMPONENT_TARGETS = $(HARDWARE_NOARCH)
331 kx
331 kx
331 kx include ../../../../build-system/constants.mk
331 kx
331 kx
331 kx url = $(DOWNLOAD_SERVER)/sources/packages/n/avahi
331 kx
331 kx versions = 0.8
331 kx pkgname = avahi
331 kx suffix = tar.xz
331 kx
331 kx tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
331 kx sha1s = $(addsuffix .sha1sum, $(tarballs))
331 kx
331 kx patches = $(CURDIR)/patches/avahi-0.8-radix.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-database.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-man-pages.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-consume-uint32.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-unicode-strings.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-daemon-chroot.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-resource-leak.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-infinite-loop.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-dnsconfd-action.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-ipv6-race-condition.patch
331 kx patches += $(CURDIR)/patches/avahi-0.8-CVE-2021-3502.patch
331 kx
331 kx .NOTPARALLEL: $(patches)
331 kx
331 kx
331 kx BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
331 kx
331 kx
331 kx include ../../../../build-system/core.mk
331 kx
331 kx
331 kx .PHONY: download_clean
331 kx
331 kx
331 kx $(tarballs):
331 kx @echo -e "\n======= Downloading source tarballs =======" ; \
331 kx for tarball in $(tarballs) ; do \
331 kx echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
331 kx done ; wait
331 kx
331 kx $(sha1s): $(tarballs)
331 kx @for sha in $@ ; do \
331 kx echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
331 kx echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
331 kx touch $$sha ; \
331 kx echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
331 kx sha1sum --check $$sha ; ret="$$?" ; \
331 kx if [ "$$ret" == "1" ]; then \
331 kx echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
331 kx exit 1 ; \
331 kx fi ; \
331 kx done
331 kx
331 kx $(patches): $(sha1s)
331 kx @echo -e "\n======= Create Patches =======\n" ; \
331 kx ( cd create-0.8-radix-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-database-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-man-pages-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-consume-uint32-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-unicode-strings-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-daemon-chroot-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-resource-leak-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-infinite-loop-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-dnsconfd-action-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-ipv6-race-condition-patch ; ./create.patch.sh ) ; \
331 kx ( cd create-0.8-CVE-2021-3502-patch ; ./create.patch.sh ) ; \
331 kx echo -e "\n"
331 kx
331 kx download_clean:
331 kx @rm -f $(tarballs) $(sha1s) $(patches)