aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zerofree
diff options
context:
space:
mode:
authorOleg Titov <oleg.titov@gmail.com>2019-05-05 19:35:22 -0500
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-06 04:49:05 +0000
commit964e2acd21475a8c1d05332fcec2719682ff02bd (patch)
tree9080aac34b9c0b49b54a2313953d7e161e6d9a2d /testing/zerofree
parent82c25ea9026121b35b51d1c36bcf665f311d7f2a (diff)
downloadaports-964e2acd21475a8c1d05332fcec2719682ff02bd.tar.bz2
aports-964e2acd21475a8c1d05332fcec2719682ff02bd.tar.xz
testing/zerofree: new aport
https://frippery.org/uml/ Zero free blocks from ext2, ext3 and ext4 file-systems Closes GH-7582 Closes #10403
Diffstat (limited to 'testing/zerofree')
-rw-r--r--testing/zerofree/APKBUILD24
-rw-r--r--testing/zerofree/types.patch10
2 files changed, 34 insertions, 0 deletions
diff --git a/testing/zerofree/APKBUILD b/testing/zerofree/APKBUILD
new file mode 100644
index 0000000000..ed05550083
--- /dev/null
+++ b/testing/zerofree/APKBUILD
@@ -0,0 +1,24 @@
+# Contributor: Oleg Titov <oleg.titov@gmail.com>
+# Maintainer: Oleg Titov <oleg.titov@gmail.com>
+pkgname=zerofree
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="Zero free blocks from ext2, ext3 and ext4 file-systems"
+url="https://frippery.org/uml/"
+arch="all"
+license="GPL-2.0-only"
+options="!check" # No test suite from upstream
+makedepends="e2fsprogs-dev"
+source="https://frippery.org/uml/zerofree-$pkgver.tgz
+ types.patch"
+
+build() {
+ make
+}
+
+package() {
+ install -Dm 755 -t "$pkgdir/usr/bin/" zerofree
+}
+
+sha512sums="2d7ee57a877bff2491c48054338a26d624ae75c238ac2b0568a75de88b6621c16cc1e7d65500879825d14d8ba44a5173587a061459072769c165bee47c3f9f1c zerofree-1.1.1.tgz
+0cf3833271195c2f1da591af625928d8207d6bb39702cdc9f8ade0e7e773096e4f55860438863f06639f205283c0cccbaaf8b4d9ee98e3850a5075e38d06a187 types.patch"
diff --git a/testing/zerofree/types.patch b/testing/zerofree/types.patch
new file mode 100644
index 0000000000..fecdbd49b0
--- /dev/null
+++ b/testing/zerofree/types.patch
@@ -0,0 +1,10 @@
+--- zerofree-1.1.1/zerofree.c.orig 2019-05-05 19:22:49.000000000 -0500
++++ zerofree-1.1.1/zerofree.c 2019-05-05 19:21:50.000000000 -0500
+@@ -17,6 +17,7 @@
+ * Jan Krämer.
+ */
+
++#include <sys/types.h>
+ #include <ext2fs/ext2fs.h>
+ #include <stdio.h>
+ #include <unistd.h>