Radix cross Linux 3pp sources

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

423 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, 30 insertions, 0 deletions
diff --git a/packages/n/ca-certificates/mozilla/Makefile b/packages/n/ca-certificates/mozilla/Makefile
new file mode 100644
index 0000000..2fe8690
--- /dev/null
+++ b/packages/n/ca-certificates/mozilla/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# Repo: https://hg.mozilla.org/mozilla-central/file
+# Path: https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins
+#
+# Downloads:
+# =========
+# https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
+# https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/nssckbi.h
+#
+
+url         = https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins
+
+version     = $(shell echo `date +%Y%m%d`)
+pkgname     = mozilla-certs
+suffix      = tar.xz
+
+tarball     = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version)))
+sha1s       = $(addsuffix .sha1sum, $(tarball))
+
+
+all: $(tarball) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarball):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@wget -N $(url)/certdata.txt
+	@wget -N $(url)/nssckbi.h
+	@tar cJvf $(tarball) certdata.txt nssckbi.h
+	@rm -f certdata.txt nssckbi.h
+
+$(sha1s): $(tarball)
+	@echo -e "\n======= Calculation the '$(tarball)' sha1sum =======\n"
+	@sha1sum --binary $(tarball) > $(tarball).sha1sum ; \
+
+downloads_clean:
+	@rm -rf $(pkgname)-*$(suffix) $(pkgname)-*$(suffix).sha1sum