Radix cross Linux 3pp sources

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

343 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-04-09 23:18:24 +0300 committer: kx <kx@radix.pro> 2023-04-09 23:18:24 +0300 commit: 8b7e76c7ad2445c0920e9d056728f7b6baaa0c43 parent: 3dd1914515dc5c714451bc4148f0abb51672ed06
Commit Summary:
network packages
Diffstat:
1 file changed, 59 insertions, 0 deletions
diff --git a/packages/n/lftp/Makefile b/packages/n/lftp/Makefile
new file mode 100644
index 0000000..8dc7e91
--- /dev/null
+++ b/packages/n/lftp/Makefile
@@ -0,0 +1,70 @@
+#
+# 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)