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, 34 insertions, 0 deletions
diff --git a/packages/n/rfkill/Makefile b/packages/n/rfkill/Makefile
new file mode 100644
index 0000000..649b43b
--- /dev/null
+++ b/packages/n/rfkill/Makefile
@@ -0,0 +1,47 @@
+#
+# Project Home:
+# ============
+# http://wireless.kernel.org/en/users/Documentation/rfkill
+#
+# Downloads:
+# =========
+# https://www.kernel.org/pub/software/network/rfkill
+# ftp://ftp.kernel.org/pub/software/network/rfkill
+#
+
+
+url       = https://mirrors.edge.kernel.org/pub/software/network
+
+versions  = 0.5 1.0
+
+pkg_name  = rfkill
+arch_type = tar.xz
+suffixes  = $(arch_type) tar.sign
+
+files     = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions))))
+
+tarballs  = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions)))
+sha1s     = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(files) $(sha1s)
+
+
+.PHONY: downloads_clean
+
+$(files):
+	@echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n"
+	@for version in $(versions) ; do \
+	  for suffix in $(suffixes) ; do \
+	    wget -N $(url)/$(pkg_name)/$(pkg_name)-$$version.$$suffix ;  \
+	  done ; \
+	done
+
+$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -f $(files) $(sha1s)