c9b87548 (kx 2023-04-06 16:08:32 +0300 1) #
c9b87548 (kx 2023-04-06 16:08:32 +0300 2) # Download: https://www.gnu.org/prep/ftp.html
c9b87548 (kx 2023-04-06 16:08:32 +0300 3) #
c9b87548 (kx 2023-04-06 16:08:32 +0300 4) # You can use the generic url http://ftpmirror.gnu.org
c9b87548 (kx 2023-04-06 16:08:32 +0300 5) # to automatically choose a nearby and up-to-date mirror.
c9b87548 (kx 2023-04-06 16:08:32 +0300 6) #
c9b87548 (kx 2023-04-06 16:08:32 +0300 7) # original url: https://ftp.gnu.org/gnu/binutils
c9b87548 (kx 2023-04-06 16:08:32 +0300 8) #
c9b87548 (kx 2023-04-06 16:08:32 +0300 9)
c9b87548 (kx 2023-04-06 16:08:32 +0300 10) url = https://ftp.gnu.org/gnu/glibc
c9b87548 (kx 2023-04-06 16:08:32 +0300 11)
9b8289b9 (kx 2024-02-22 20:33:47 +0300 12) versions = 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.30 2.31 2.32 2.33 2.34 2.35 2.36 2.37 2.39
c9b87548 (kx 2023-04-06 16:08:32 +0300 13)
c9b87548 (kx 2023-04-06 16:08:32 +0300 14) pkgname = glibc
c9b87548 (kx 2023-04-06 16:08:32 +0300 15) suffix = tar.xz
c9b87548 (kx 2023-04-06 16:08:32 +0300 16)
c9b87548 (kx 2023-04-06 16:08:32 +0300 17) tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
c9b87548 (kx 2023-04-06 16:08:32 +0300 18) sha1s = $(addsuffix .sha1sum, $(tarballs))
c9b87548 (kx 2023-04-06 16:08:32 +0300 19)
c9b87548 (kx 2023-04-06 16:08:32 +0300 20) all: $(tarballs) $(sha1s)
c9b87548 (kx 2023-04-06 16:08:32 +0300 21)
c9b87548 (kx 2023-04-06 16:08:32 +0300 22) .PHONY: downloads_clean
c9b87548 (kx 2023-04-06 16:08:32 +0300 23)
c9b87548 (kx 2023-04-06 16:08:32 +0300 24) $(tarballs):
c9b87548 (kx 2023-04-06 16:08:32 +0300 25) @echo -e "\n======= Downloading source tarballs =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 26) @for tarball in $(tarballs) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 27) wget -N $(url)/$$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 28) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 29)
c9b87548 (kx 2023-04-06 16:08:32 +0300 30) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 31) @for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 32) echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 33) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 34) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 35)
c9b87548 (kx 2023-04-06 16:08:32 +0300 36) downloads_clean:
c9b87548 (kx 2023-04-06 16:08:32 +0300 37) @rm -rf $(tarballs) $(sha1s)