summaryrefslogtreecommitdiff
path: root/system/jfsutils
diff options
context:
space:
mode:
Diffstat (limited to 'system/jfsutils')
-rw-r--r--system/jfsutils/APKBUILD39
-rw-r--r--system/jfsutils/missing-stdinth.patch11
-rw-r--r--system/jfsutils/musl-fix-includes.patch18
3 files changed, 68 insertions, 0 deletions
diff --git a/system/jfsutils/APKBUILD b/system/jfsutils/APKBUILD
new file mode 100644
index 000000000..55ff4139e
--- /dev/null
+++ b/system/jfsutils/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Teran McKinney <sega01@go-beyond.org>
+# Maintainer:
+pkgname=jfsutils
+pkgver=1.1.15
+pkgrel=2
+pkgdesc="JFS filesystem utilities"
+url="http://jfs.sourceforge.net"
+arch="all"
+license="GPL-2.0+"
+depends=""
+makedepends="util-linux-dev" # libuuid is needed
+subpackages="$pkgname-doc"
+source="http://jfs.sourceforge.net/project/pub/jfsutils-$pkgver.tar.gz
+ musl-fix-includes.patch
+ missing-stdinth.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --mandir=/usr/share/man
+
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make -j1 LDCONFIG=: DESTDIR="${pkgdir}" install
+}
+
+sha512sums="fa8ba7f4997471da3e6ea7239564f3395046222cfbb2b10e37b24ad0bd107b7eadbb51ce328d89d193034360b4035ca5e0e5b0b416a74483d7a2c0a2b9c65858 jfsutils-1.1.15.tar.gz
+fb0d7348e2e13a6a9c3a987d161e0cf05363649515366ef49a45e3580b8f6135fce8465b99ff8a351231d970371c00bea6ceb9edb1d0f24da20d261b06ec85bd musl-fix-includes.patch
+a8e2332f2dec37affa8404b31e7e68399d815d450422ad342243c51d117e4d7ef4aaa0e30d1389380a81ed076a7ef1e1d41fcf260fa05ce4d823aa779628982d missing-stdinth.patch"
diff --git a/system/jfsutils/missing-stdinth.patch b/system/jfsutils/missing-stdinth.patch
new file mode 100644
index 000000000..06a74bf32
--- /dev/null
+++ b/system/jfsutils/missing-stdinth.patch
@@ -0,0 +1,11 @@
+--- jfsutils-1.1.15/fscklog/extract.c.orig
++++ jfsutils-1.1.15/fscklog/extract.c
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <stdint.h>
+
+ #include "devices.h"
+ #include "diskmap.h"
+
diff --git a/system/jfsutils/musl-fix-includes.patch b/system/jfsutils/musl-fix-includes.patch
new file mode 100644
index 000000000..33ba55d79
--- /dev/null
+++ b/system/jfsutils/musl-fix-includes.patch
@@ -0,0 +1,18 @@
+--- jfsutils-1.1.15.orig/libfs/fssubs.c
++++ jfsutils-1.1.15/libfs/fssubs.c
+@@ -24,6 +24,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <paths.h>
+
+ #if HAVE_MNTENT_H
+ #include <mntent.h>
+@@ -31,7 +32,6 @@
+ #endif
+
+ #if HAVE_GETMNTINFO
+-#include <paths.h>
+ #include <sys/param.h>
+ #include <sys/mount.h>
+ #endif