Sources

The Tree of Radix and Third Party Sources

1388 Commits   0 Branches   11 Tags
author: kx <kx@radix.pro> 2021-05-01 12:31:49 +0300 committer: kx <kx@radix.pro> 2021-05-01 12:31:49 +0300 commit: d5f057b3f2d0221dc33ee094af38442887c86715 parent: 61218d4c55129a1edc886729999fd31548adbf19
Commit Summary:
intltool, libpsl, libndp, pam-krb5
Diffstat:
7 files changed, 175 insertions, 0 deletions
diff --git a/packages/d/Makefile b/packages/d/Makefile
index e558129..c930a67 100644
--- a/packages/d/Makefile
+++ b/packages/d/Makefile
@@ -8,6 +8,7 @@ SUBDIRS := LLVM          \
            check         \
            cmake         \
            flex          \
+           intltool      \
            llvm          \
            meson         \
            ninja         \
diff --git a/packages/d/intltool/Makefile b/packages/d/intltool/Makefile
new file mode 100644
index 0000000..8932aed
--- /dev/null
+++ b/packages/d/intltool/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# https://launchpad.net/intltool
+#
+# Downloads:
+# =========
+# https://launchpad.net/intltool/trunk/${VERSION}/+download/intltool-${VERSION}.tar.gz
+#
+
+url         = https://launchpad.net/intltool/trunk
+
+versions    = 0.51.0
+pkgname     = intltool
+suffix      = tar.gz
+
+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-Z-]*\)\([0-9][.][0-9]*[.][0-9]*\)\([\.].*\)/\2/'` ; \
+	  wget -N $(url)/$$version/+download/$$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)
diff --git a/packages/l/Makefile b/packages/l/Makefile
index 29a3c4b..ca988ea 100644
--- a/packages/l/Makefile
+++ b/packages/l/Makefile
@@ -59,6 +59,7 @@ SUBDIRS := aalib                \
            libmng               \
            libpipeline          \
            libpng               \
+           libpsl               \
            libsodium            \
            libspectre           \
            libstrophe           \
diff --git a/packages/l/libpsl/Makefile b/packages/l/libpsl/Makefile
new file mode 100644
index 0000000..458039b
--- /dev/null
+++ b/packages/l/libpsl/Makefile
@@ -0,0 +1,71 @@
+#
+# Project Home:
+# ============
+# https://github.com/rockdaboot/libpsl
+#
+# GitHub:
+# ======
+# https://github.com/rockdaboot/libpsl
+#
+# Clone:
+# =====
+# https://github.com/rockdaboot/libpsl.git
+#
+
+url        = https://github.com/rockdaboot
+
+repo_name  = libpsl
+
+#
+# List of tags to be extracted:
+# ============================
+#                                               hash | tag
+#            ----------------------------------------+-----
+revisions  = a5e6f26cce82898c54a0caa6dda0ab924b806daf:0.21.1
+
+git_repo   = .git_clone
+
+suffix     = tar.xz
+
+versions   = $(foreach tag, $(revisions), $(shell echo $(tag) | cut -f 2 -d ':'))
+
+tarballs   = $(addsuffix .$(suffix), $(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 ':'` ; \
+	  version=`echo $$revision | cut -f 2 -d ':'` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(repo_name)-$$version/ $$hash | \
+	      xz >../$(repo_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@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/Makefile b/packages/n/Makefile
index c20113b..e9384be 100644
--- a/packages/n/Makefile
+++ b/packages/n/Makefile
@@ -62,6 +62,7 @@ SUBDIRS := ModemManager           \
            libksba                \
            libmbim                \
            libmnl                 \
+           libndp                 \
            libnetfilter_acct      \
            libnetfilter_conntrack \
            libnetfilter_cthelper  \
@@ -132,6 +133,7 @@ SUBDIRS := ModemManager           \
            openssl10              \
            openvpn                \
            p11-kit                \
+           pam-krb5               \
            php                    \
            pidentd                \
            pinentry               \
diff --git a/packages/n/libndp/Makefile b/packages/n/libndp/Makefile
new file mode 100644
index 0000000..32d2b78
--- /dev/null
+++ b/packages/n/libndp/Makefile
@@ -0,0 +1,71 @@
+#
+# Project Home:
+# ============
+# http://libndp.org
+#
+# GitHub:
+# ======
+# https://github.com/jpirko/libndp
+#
+# Clone:
+# =====
+# https://github.com/jpirko/libndp.git
+#
+
+url        = https://github.com/jpirko
+
+repo_name  = libndp
+
+#
+# List of tags to be extracted:
+# ============================
+#                                               hash | tag
+#            ----------------------------------------+-----
+revisions  = 96674e7d4f4d569c2c961e865cc16152dfab5f09:1.7
+
+git_repo   = .git_clone
+
+suffix     = tar.xz
+
+versions   = $(foreach tag, $(revisions), $(shell echo $(tag) | cut -f 2 -d ':'))
+
+tarballs   = $(addsuffix .$(suffix), $(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 ':'` ; \
+	  version=`echo $$revision | cut -f 2 -d ':'` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(repo_name)-$$version/ $$hash | \
+	      xz >../$(repo_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@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/pam-krb5/Makefile b/packages/n/pam-krb5/Makefile
new file mode 100644
index 0000000..f9bd3d7
--- /dev/null
+++ b/packages/n/pam-krb5/Makefile
@@ -0,0 +1,38 @@
+#
+# Project Home:
+# ============
+# https://archives.eyrie.org/software/kerberos
+#
+# Downloads:
+# =========
+# https://archives.eyrie.org/software/kerberos
+#
+
+url         = https://archives.eyrie.org/software/kerberos
+
+versions    = 4.10
+pkgname     = pam-krb5
+suffix      = tar.xz
+
+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 version in $(versions) ; do \
+	  wget -N $(url)/$(pkgname)-$$version.$(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)