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, 37 insertions, 0 deletions
diff --git a/packages/n/bootp-debian/Makefile b/packages/n/bootp-debian/Makefile
new file mode 100644
index 0000000..0706cd1
--- /dev/null
+++ b/packages/n/bootp-debian/Makefile
@@ -0,0 +1,48 @@
+#
+# Project Home:
+# ============
+# https://www.ietf.org/rfc/rfc951.txt
+# ftp://ftp.ntplx.net/pub/networking/bootp
+#
+# Downloads:
+# =========
+# ftp://ftp.debian.org/debian/pool/main/b/bootp
+# https://deb.debian.org/debian/pool/main/b/bootp
+#
+
+url         = https://deb.debian.org/debian/pool/main/b/bootp
+
+version     = 2.4.3
+pkgname     = bootp
+suffix      = orig.tar.gz
+
+tarball     = $(addsuffix .$(suffix), $(addprefix $(pkgname)_, $(version)))
+sha1s       = $(addsuffix .sha1sum, $(tarball))
+patch       = $(addsuffix -18.diff.gz, $(addprefix $(pkgname)_, $(version)))
+description = $(addsuffix -18.dsc, $(addprefix $(pkgname)_, $(version)))
+
+files       = $(patch) $(description)
+
+all: $(tarball) $(files) $(sha1s)
+
+.PHONY: downloads_clean
+
+
+$(tarball):
+	@echo -e "\n======= Downloading source tarball =======\n"
+	wget -N $(url)/$(tarball)
+
+$(files): $(tarball)
+	@echo -e "\n======= Downloading patch and description =======\n"
+	@for file in $(files) ; do \
+	  wget -N $(url)/$$file ; \
+	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 $(tarball) $(files) $(sha1s)