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, 69 insertions, 0 deletions
diff --git a/packages/n/net-tools/Makefile b/packages/n/net-tools/Makefile
new file mode 100644
index 0000000..99e6ae9
--- /dev/null
+++ b/packages/n/net-tools/Makefile
@@ -0,0 +1,83 @@
+#
+# Project Home:
+# ============
+#   http://www.linuxfoundation.org/collaborate/workgroups/networking/net-tools
+#   https://sourceforge.net/projects/net-tools/files/
+#
+# Downloads:
+# =========
+#   https://sourceforge.net/projects/net-tools/files/
+#
+# GitHub:
+# ======
+#    https://github.com/ecki/net-tools
+#
+# Clone:
+# =====
+#   git clone https://github.com/ecki/net-tools.git
+#
+
+url        = https://github.com/ecki
+
+repo_name  = net-tools
+
+#
+# List of tags to be extracted:
+# ============================
+#
+# Revisions from 'master' branch
+#
+# revision '68a4d784daaf5fb3449808e434e8cbb9625988e6' commited at 2014-02-18
+#
+#                                               hash | date
+#            ----------------------------------------+--------
+revisions  = 68a4d784daaf5fb3449808e434e8cbb9625988e6:20140218
+revisions += 3f170bff115303e92319791cbd56371e33dcbf6d:20160127
+revisions += 0eebece8c964e3cfa8a018f42b2e7e751a7009a0:20181103
+revisions += 2fa1514a781945f252cec8313f0c8539777906f2:20210110
+revisions += 4030929bb6f3ee6f465c76869d7a49424df45d9e:20211212
+
+git_repo   = .git_clone
+
+versions   = $(foreach tag, $(revisions), $(addprefix 1.60-, $(shell echo $(tag) | cut -f 2 -d ':')))
+
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(repo_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 revision in $(revisions) ; do \
+	  hash=`echo $$revision | cut -f 1 -d ':'` ; \
+	  date=`echo $$revision | cut -f 2 -d ':'` ; \
+	  if [ ! -f $(repo_name)-1.60-$$date.tar.xz ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-1.60-$$date.tar.xz' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(repo_name)-1.60-$$date/ $$hash | \
+	      xz >../$(repo_name)-1.60-$$date.tar.xz ) ; \
+	  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)