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, 38 insertions, 0 deletions
diff --git a/packages/n/sendmail/Makefile b/packages/n/sendmail/Makefile
new file mode 100644
index 0000000..d70ab17
--- /dev/null
+++ b/packages/n/sendmail/Makefile
@@ -0,0 +1,51 @@
+#
+# Project Home:
+# ============
+# https://www.proofpoint.com/us/products/email-protection/open-source-email-solution
+#
+# Downloads:
+# =========
+# ftp://ftp.sendmail.org/pub/sendmail
+#
+
+url         = https://ftp.sendmail.org
+
+versions    = 8.14.7 8.14.8 8.14.9 8.15.2 8.16.1 8.17.1
+
+pkg_name    = sendmail
+arch_type   = tar.gz
+suffixes    = $(arch_type) $(arch_type).sig
+
+pgpkeys     = PGPKEYS
+
+files       = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions))))
+tarballs    = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(files) $(sha1s) $(pgpkeys)
+
+
+.PHONY: downloads_clean
+
+$(files):
+	@echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n"
+	@for version in $(versions) ; do \
+	  for suffix in $(suffixes) ; do \
+	    wget -N $(url)/$(pkg_name).$$version.$$suffix ; \
+	    mv $(pkg_name).$$version.$$suffix $(pkg_name)-$$version.$$suffix ; \
+	  done ; \
+	done
+
+$(pgpkeys):
+	@echo -e "\n======= Downloading '$(pgpkeys)' file =======\n"
+	@wget -O $(pgpkeys).gpg $(url)/$(pgpkeys) ; \
+
+$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -f $(files) $(sha1s) $(pgpkeys)