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:
Diffstat:
1 file changed, 59 insertions, 0 deletions
diff --git a/packages/n/stunnel/Makefile b/packages/n/stunnel/Makefile
new file mode 100644
index 0000000..7cf2bb2
--- /dev/null
+++ b/packages/n/stunnel/Makefile
@@ -0,0 +1,70 @@
+#
+# Project Home:
+# ============
+# https://www.stunnel.org/index.html
+#
+# Downloads:
+# =========
+# https://www.stunnel.org/downloads
+#
+# Code Repositories
+# -----------------
+# Europe
+# * usenix.org.uk (London, UK)
+# http://www.usenix.org.uk/mirrors/stunnel/
+# * NLUUG (Amsterdam, Netherlands)
+# ftp://ftp.nluug.nl/pub/networking/stunnel
+# http://ftp.nluug.nl/pub/networking/stunnel/
+# rsync ftp.nluug.nl::stunnel
+# * Names Directory (Bamberg, Germany)
+# http://www.namesdir.com/mirrors/stunnel/
+# * Cybermirror.org (Düsseldorf, Germany)
+# http://stunnel.cybermirror.org/
+# North America
+# * Home site (Newark, NJ, US)
+# ftp://ftp.stunnel.org/stunnel/
+# rsync rsync.stunnel.org::stunnel
+# * mirrors.zerg.biz (Columbus, OH, US)
+# http://mirrors.zerg.biz/stunnel/
+#
+
+url = ftp://ftp.nluug.nl/pub/networking/stunnel/archive
+
+versions = 4.53 5.07 5.30 5.55 5.58 5.69
+
+pkgname = stunnel
+suffix = tar.gz
+sign_suffix = asc
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+signatures = $(addsuffix .$(sign_suffix), $(tarballs))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(signatures) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======\n"
+ @for tarball in $(tarballs) ; do \
+ major=`echo $$tarball | sed 's/\([a-zA-Z-]*\)\([0-9]*\)\(\..*\)/\2/'` ; \
+ wget -N $(url)/$$major.x/$$tarball ; \
+ done
+
+$(signatures): %.$(suffix).$(sign_suffix) : %.$(suffix)
+ @for signature in $@ ; do \
+ echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
+ major=`echo $$signature | sed 's/\([a-zA-Z-]*\)\([0-9]*\)\(\..*\)/\2/'` ; \
+ wget -N $(url)/$$major.x/$$signature ; \
+ touch $$signature ; \
+ 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)