COMPONENT_TARGETS = $(HARDWARE_NOARCH)
include ../../../build-system/constants.mk
url = $(DOWNLOAD_SERVER)/sources/iana/tz
versions = 2023c
tarballs = $(sort \
$(shell \
for tarball in $(addsuffix .tar.gz, $(addprefix tz+, $(versions))) ; do \
echo -n "`echo "$$tarball" | sed -e 's/+/code/g'` " ; \
echo -n "`echo "$$tarball" | sed -e 's/+/data/g'` " ; \
done ) \
)
sha1s = $(addsuffix .sha1sum, $(tarballs))
patches = $(CURDIR)/patches/glibc-2.37-tzcode-2023c.patch
patches += $(CURDIR)/patches/tzcode-2023c-version.patch
.NOTPARALLEL: $(patches)
BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
include ../../../build-system/core.mk
.PHONY: download_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======" ; \
for tarball in $(tarballs) ; do \
echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
done ; wait
$(sha1s): $(tarballs)
@for sha in $@ ; do \
echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
touch $$sha ; \
echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
sha1sum --check $$sha ; ret="$$?" ; \
if [ "$$ret" == "1" ]; then \
echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
exit 1 ; \
fi ; \
done
$(patches): $(sha1s)
@echo -e "\n======= Create Patches =======\n" ; \
( cd create-2023c-glibc-2.37-patch ; ./create.patch.sh ) ; \
( cd create-2023c-version-patch ; ./create.patch.sh ) ; \
echo -e "\n"
download_clean:
@rm -f $(tarballs) $(sha1s) $(patches)