[crux-commits] ports/contrib (refs/remotes/origin/3.6): cramfs-tools: initial commit, v2.1

crux at crux.nu crux at crux.nu
Sat Apr 10 19:06:05 UTC 2021


commit 91df7bb686da36e667d0beec6fd3d71d492274e6
Author: Alexandr Savca <alexandr.savca89 at gmail.com>
Date:   Tue Jan 5 17:53:32 2021 +0200

    cramfs-tools: initial commit, v2.1

diff --git a/cramfs-tools/.footprint b/cramfs-tools/.footprint
new file mode 100644
index 000000000..45c5e1c41
--- /dev/null
+++ b/cramfs-tools/.footprint
@@ -0,0 +1,4 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/cramfsck
+-rwxr-xr-x	root/root	usr/bin/mkcramfs
diff --git a/cramfs-tools/.signature b/cramfs-tools/.signature
new file mode 100644
index 000000000..992039e19
--- /dev/null
+++ b/cramfs-tools/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF3xJYAGSUS1h1hUjmAbZW5uy2j6mgGrglxjavrilLobNGROF6EMNPPQRSQPhrL79FSDAmVbsqW0BZxKgNckW2Ogs=
+SHA256 (Pkgfile) = 133f7fc91fa266897b0e74101865e6bb58eed5b87f2d0187acd1c8ac8df57e23
+SHA256 (.footprint) = e05d3a80f9778d8041ef3df2cddfcba1fc28adeff2b16cc894ff9f15583078ec
+SHA256 (cramfs-tools-v2.1.tar.gz) = cdb7a4ecad034f063b6456b37cdf653ae31758a224c32161e54712a9d7f01cc3
+SHA256 (fix-build-undefined-reference-to-major-and-minor-1.1.diff) = 88c01ca35a2bb3b102349d3be2fa6d16ae8513de9be643e2adb76c7e7b860d5d
diff --git a/cramfs-tools/Pkgfile b/cramfs-tools/Pkgfile
new file mode 100644
index 000000000..b0e43e8c7
--- /dev/null
+++ b/cramfs-tools/Pkgfile
@@ -0,0 +1,21 @@
+# Description: Tools for CramFs (Compressed ROM File System)
+# URL:         https://github.com/npitre/cramfs-tools
+# Maintainer:  Alexandr Savca, alexandrsavca89 at gmail dot com
+# Depends on:  zlib
+
+name=cramfs-tools
+version=2.1
+release=1
+source=(https://github.com/npitre/$name/archive/v$version/$name-v$version.tar.gz
+	fix-build-undefined-reference-to-major-and-minor-1.1.diff)
+
+build () {
+	cd $name-$version
+
+	patch -p1 -i $SRC/fix-build-undefined-reference-to-major-and-minor-1.1.diff
+
+	make CFLAGS="$CFLAGS -Wall -W"
+
+	install -d $PKG/usr/bin	
+	install -m755 {cramfsck,mkcramfs} $PKG/usr/bin/
+}
diff --git a/cramfs-tools/fix-build-undefined-reference-to-major-and-minor-1.1.diff b/cramfs-tools/fix-build-undefined-reference-to-major-and-minor-1.1.diff
new file mode 100644
index 000000000..bb44d766e
--- /dev/null
+++ b/cramfs-tools/fix-build-undefined-reference-to-major-and-minor-1.1.diff
@@ -0,0 +1,11 @@
+diff '--color=never' -pruN cramfs-1.1/mkcramfs.c cramfs-1.1-changed/mkcramfs.c
+--- cramfs-1.1/mkcramfs.c	2002-02-20 10:03:32.000000000 +0200
++++ cramfs-1.1/mkcramfs.c	2020-12-29 17:09:45.275959900 +0200
+@@ -23,6 +23,7 @@
+  */
+ 
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <stdio.h>
+ #include <sys/stat.h>
+ #include <unistd.h>


More information about the crux-commits mailing list