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-linux.su> 2025-03-03 19:41:10 +0300 committer: kx <kx@radix-linux.su> 2025-03-03 19:41:10 +0300 commit: 0937e125a50f424abf6aee1f7d06eb387fd6b89c parent: 74d64c3109171c687303fee6615baff9438e2f83
Commit Summary:
Linux-PAM-1.7.0
Diffstat:
2 files changed, 77 insertions, 24 deletions
diff --git a/packages/s/Linux-PAM/Makefile b/packages/s/Linux-PAM/Makefile
index 8ca47a2..4b38bf7 100644
--- a/packages/s/Linux-PAM/Makefile
+++ b/packages/s/Linux-PAM/Makefile
@@ -3,46 +3,64 @@
 # ============
 # http://linux-pam.org
 #
+# Clone:
+# =====
+# git clone https://github.com/linux-pam/linux-pam.git
+#
 # Downloads:
 # =========
 # https://github.com/linux-pam/linux-pam/releases
 #
 
-url          = https://github.com/linux-pam/linux-pam/releases
+url        = https://github.com/linux-pam
 
-versions     = 1.5.0 1.5.1 1.5.2
-pkg_name     = Linux-PAM
-suffix       = tar.xz
+repo_name  = linux-pam
+pkg_name   = Linux-PAM
+suffix     = tar.xz
 
-tarballs     = $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))
-doc_tarballs = $(addsuffix -docs.$(suffix), $(addprefix $(pkg_name)-, $(versions)))
-sha1s        = $(addsuffix .sha1sum, $(tarballs))
-sha1s       += $(addsuffix .sha1sum, $(doc_tarballs))
+versions   = 1.7.0
 
+# List of tags to be extracted:
+TAGS       = $(addprefix v, $(versions))
 
-all: $(tarballs) $(doc_tarballs) $(sha1s)
+git_repo   = .git_clone
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
+sha1s      = $(addsuffix .sha1sum, $(tarballs))
 
-.PHONY: downloads_clean
+TARGETS = repository_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]*[.0-9]*\)\(\..*\)/\2/'` ; \
-	  wget -N $(url)/download/v$$version/$$tarball ; \
-	done
 
-$(doc_tarballs):
-	@echo -e "\n======= Downloading documentation tarballs =======\n"
-	@for tarball in $(doc_tarballs) ; do \
-	  version=`echo $$tarball | sed 's/\([a-zA-Z0-9-]*\)\([0-9][.0-9]*[.0-9]*\)\(\-.*\)/\2/'` ; \
-	  wget -N $(url)/download/v$$version//$$tarball ; \
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
+	@rm -rf $(repo_name)
+	@git clone $(url)/$(repo_name).git $(repo_name)
+	@touch $@
+
+$(tarballs): $(git_repo)
+	@for version in $(versions) ; do \
+	  tag=v`echo $$version` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+	      xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+	  fi ; \
 	done
 
-$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
 	@for tarball in $< ; do \
-	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
 	done
 
+repository_clean: $(sha1s)
+	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
+	@rm -rf $(git_repo) $(repo_name)
+
 downloads_clean:
-	@rm -rf $(tarballs) $(doc_tarballs) $(sha1s)
+	@rm -rf $(tarballs) $(sha1s)
+	@rm -rf $(git_repo) $(repo_name)
diff --git a/packages/s/Linux-PAM/Makefile-old-versions b/packages/s/Linux-PAM/Makefile-old-versions
new file mode 100644
index 0000000..8ca47a2
--- /dev/null
+++ b/packages/s/Linux-PAM/Makefile-old-versions
@@ -0,0 +1,48 @@
+#
+# Project Home:
+# ============
+# http://linux-pam.org
+#
+# Downloads:
+# =========
+# https://github.com/linux-pam/linux-pam/releases
+#
+
+url          = https://github.com/linux-pam/linux-pam/releases
+
+versions     = 1.5.0 1.5.1 1.5.2
+pkg_name     = Linux-PAM
+suffix       = tar.xz
+
+tarballs     = $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))
+doc_tarballs = $(addsuffix -docs.$(suffix), $(addprefix $(pkg_name)-, $(versions)))
+sha1s        = $(addsuffix .sha1sum, $(tarballs))
+sha1s       += $(addsuffix .sha1sum, $(doc_tarballs))
+
+
+all: $(tarballs) $(doc_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]*[.0-9]*\)\(\..*\)/\2/'` ; \
+	  wget -N $(url)/download/v$$version/$$tarball ; \
+	done
+
+$(doc_tarballs):
+	@echo -e "\n======= Downloading documentation tarballs =======\n"
+	@for tarball in $(doc_tarballs) ; do \
+	  version=`echo $$tarball | sed 's/\([a-zA-Z0-9-]*\)\([0-9][.0-9]*[.0-9]*\)\(\-.*\)/\2/'` ; \
+	  wget -N $(url)/download/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) $(doc_tarballs) $(sha1s)