author: kx <kx@radix.pro> 2023-12-27 00:46:02 +0300
committer: kx <kx@radix.pro> 2023-12-27 00:46:02 +0300
commit: b2d81af18056a2c4dac8fa0eddbc6b615221d87c
parent: 4d8bdf6fa7156a1a14f5507f22e427ed7e577aa4
Commit Summary:
Diffstat:
4 files changed, 134 insertions, 0 deletions
diff --git a/packages/l/Makefile b/packages/l/Makefile
index 9104544..2a17890 100644
--- a/packages/l/Makefile
+++ b/packages/l/Makefile
@@ -61,8 +61,11 @@ SUBDIRS := aalib \
libaio \
libarchive \
libasyncns \
+ libatasmart \
libatomic_ops \
+ libblockdev \
libbsd \
+ libbytesize \
libcaca \
libcap \
libcap-ng \
diff --git a/packages/l/libatasmart/Makefile b/packages/l/libatasmart/Makefile
new file mode 100644
index 0000000..4965a2e
--- /dev/null
+++ b/packages/l/libatasmart/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# https://0pointer.de/blog/projects/being-smart.html
+#
+# Downloads:
+# =========
+# https://0pointer.de/public/libatasmart-0.19.tar.xz
+#
+
+url = https://0pointer.de/public
+
+versions = 0.19
+
+pkgname = libatasmart
+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)
diff --git a/packages/l/libblockdev/Makefile b/packages/l/libblockdev/Makefile
new file mode 100644
index 0000000..d900d47
--- /dev/null
+++ b/packages/l/libblockdev/Makefile
@@ -0,0 +1,66 @@
+#
+# Project Home:
+# ============
+# https://github.com/storaged-project/libblockdev
+#
+# Clone:
+# =====
+# git clone https://github.com/storaged-project/libblockdev.git
+#
+
+url = https://github.com/storaged-project
+
+repo_name = libblockdev
+pkg_name = libblockdev
+suffix = tar.xz
+
+versions = 3.0.4
+
+# List of tags to be extracted:
+TAGS = $(addsuffix -1, $(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=`echo $$version`-1 ; \
+ 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) ) ; \
+ tar xJf $(pkg_name)-$$version.$(suffix) ; \
+ ( cd $(pkg_name)-$$version ; ./autogen.sh ; rm -rf autom4te.cache .git* .packit.yaml *~ ) ; \
+ tar cJf $(pkg_name)-$$version.$(suffix) $(pkg_name)-$$version ; \
+ rm -rf $(pkg_name)-$$version ; \
+ 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/l/libbytesize/Makefile b/packages/l/libbytesize/Makefile
new file mode 100644
index 0000000..64d05f3
--- /dev/null
+++ b/packages/l/libbytesize/Makefile
@@ -0,0 +1,63 @@
+#
+# Project Home:
+# ============
+# https://github.com/storaged-project/libblockdev
+#
+# Clone:
+# =====
+# git clone https://github.com/storaged-project/libbytesize.git
+#
+
+url = https://github.com/storaged-project
+
+repo_name = libbytesize
+pkg_name = libbytesize
+suffix = tar.xz
+
+versions = 2.10
+
+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=`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) ) ; \
+ tar xJf $(pkg_name)-$$version.$(suffix) ; \
+ ( cd $(pkg_name)-$$version ; ./autogen.sh ; rm -rf autom4te.cache .git* .packit.yaml *~ ) ; \
+ tar cJf $(pkg_name)-$$version.$(suffix) $(pkg_name)-$$version ; \
+ rm -rf $(pkg_name)-$$version ; \
+ 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)