Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

423 Commits   0 Branches   0 Tags
#
# Project Home:
# ============
# https://lftp.yar.ru
#
# Downloads:
# =========
# https://lftp.yar.ru/get.html
# http://lftp.yar.ru/ftp
#
# Old versions (4.4.9 4.4.14 4.4.15) Downloads:
# ============================================
# ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp
#
# MIRRORS:
# ftp://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp   Japan
# ftp://ftp.tuwien.ac.at/infosys/browsers/ftp/lftp  Austria
# ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp        Berlin, Germany
# http://lftp.cybermirror.org                       Karlsruhe, Germany
#

url         = http://lftp.yar.ru/ftp

versions    = 4.6.5 4.8.4 4.9.2

pkgname     = lftp
suffix      = tar.xz

tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
signatures  = $(addsuffix .asc, $(tarballs))
sha1s       = $(addsuffix .sha1sum, $(tarballs))

newest      = 4.6.2

all: $(tarballs) $(signatures) $(sha1s)

.PHONY: downloads_clean

$(tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for tarball in $(tarballs) ; do \
	  version=`echo $$tarball | sed 's/\([a-zA-Z0-9-]*\)\([0-9][.0-9]*\)\(\.[a-z]*.*\)/\2/'` ; \
	  if [ "$(newest)" == "`echo -e "$$version\n$(newest)" | sort -V | head -n1`" ] ; then \
	    wget -N $(url)/$$tarball ; \
	  else \
	    wget -N $(url)/old/$$tarball ; \
	  fi ; \
	done

$(signatures): %.$(suffix).asc : %.$(suffix)
	@for signature in $@ ; do \
	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
	  version=`echo $$signature | sed 's/\([a-zA-Z0-9-]*\)\([0-9][.0-9]*\)\(\.[a-z]*.*\)/\2/'` ; \
	  if [ "$(newest)" == "`echo -e "$$version\n$(newest)" | sort -V | head -n1`" ] ; then \
	    wget -N $(url)/$$signature ; \
	    touch $$signature ; \
	  else \
	    wget -N $(url)/old/$$signature ; \
	    touch $$signature ; \
	  fi ; \
	done

$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
	@for tarball in $< ; do \
	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
	done

downloads_clean:
	@rm -rf $(tarballs) $(signatures) $(sha1s)