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-07 08:50:38 +0300 committer: kx <kx@radix.pro> 2023-04-07 08:50:38 +0300 commit: 56d70fdfbe2c742180a1a6a1976826a66bf8b96d parent: 982b3996a04e554ad3e300f86e413edfe1715b95
Commit Summary:
Database engines
Diffstat:
1 file changed, 30 insertions, 0 deletions
diff --git a/packages/b/postgresql/Makefile b/packages/b/postgresql/Makefile
new file mode 100644
index 0000000..9e40a37
--- /dev/null
+++ b/packages/b/postgresql/Makefile
@@ -0,0 +1,40 @@
+#
+# Project Home:
+# ============
+# https://www.postgresql.org
+#
+# Downloads:
+# =========
+# https://ftp.postgresql.org/pub/source/v${VERSION}
+#
+
+url         = https://ftp.postgresql.org/pub/source
+
+versions    = 9.5.4 9.6.0 9.6.24 14.1 14.7 15.2
+
+pkgname     = postgresql
+suffix      = tar.bz2
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(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.]*\)\([\.].*\)/\3/'` ; \
+	  wget -N $(url)/v$$version/$$tarball ; \
+	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) $(sha1s)