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:
3 files changed, 101 insertions, 0 deletions
diff --git a/packages/n/alpine/Makefile b/packages/n/alpine/Makefile
new file mode 100644
index 0000000..a321225
--- /dev/null
+++ b/packages/n/alpine/Makefile
@@ -0,0 +1,25 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := alpine        \
+           maildir-patch
+
+
+all-recursive downloads_clean-recursive:
+	@set fnord $(MAKEFLAGS); amf=$$2; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  local_target="$$target"; \
+	  (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+	done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean
diff --git a/packages/n/alpine/alpine/Makefile b/packages/n/alpine/alpine/Makefile
new file mode 100644
index 0000000..b79dbc1
--- /dev/null
+++ b/packages/n/alpine/alpine/Makefile
@@ -0,0 +1,67 @@
+#
+# Project Home:
+# ============
+#   http://patches.freeiz.com/alpine
+#
+# Git:
+# ===
+#   https://repo.or.cz/alpine.git
+#
+# Downloads:
+# =========
+#   http://patches.freeiz.com/alpine/release
+#   http://alpine.x10host.com/alpine/release/src
+#
+
+url        = https://repo.or.cz
+
+repo_name  = alpine
+pkg_name   = alpine
+suffix     = tar.xz
+
+versions   = 2.25 2.25.1 2.26
+
+# List of tags to be extracted:
+TAGS       = $(addprefix v, $(versions))
+
+git_repo   = .git_clone
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
+sha1s      = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+
+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): %.tar.xz.sha1sum : %.tar.xz
+	@for tarball in $< ; do \
+	  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) $(sha1s)
+	@rm -rf $(git_repo) $(repo_name)
diff --git a/packages/n/alpine/maildir-patch/Makefile b/packages/n/alpine/maildir-patch/Makefile
new file mode 100644
index 0000000..fbbc78a
--- /dev/null
+++ b/packages/n/alpine/maildir-patch/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+#   https://alpineapp.email/alpine/info/maildir.html
+#
+# Downloads:
+# =========
+#   https://alpineapp.email/alpine/patches/alpine-${VERSION}/maildir.patch.gz
+#
+
+url         = https://alpineapp.email/alpine/patches
+
+versions    = 2.25 2.26
+pkgname     = maildir.patch
+suffix      = gz
+
+tarballs    = $(addsuffix -$(pkgname).$(suffix), $(addprefix alpine-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  wget -N $(url)/alpine-$$version/$(pkgname).$(suffix) ; \
+	  mv $(pkgname).$(suffix) alpine-$${version}-$(pkgname).$(suffix) ; \
+	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)