summaryrefslogtreecommitdiff
path: root/repo/xfsprogs/xfsprogs.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/xfsprogs/xfsprogs.xibuild
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/xfsprogs/xfsprogs.xibuild')
-rw-r--r--repo/xfsprogs/xfsprogs.xibuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/repo/xfsprogs/xfsprogs.xibuild b/repo/xfsprogs/xfsprogs.xibuild
new file mode 100644
index 0000000..08812da
--- /dev/null
+++ b/repo/xfsprogs/xfsprogs.xibuild
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+NAME="xfsprogs"
+DESC="XFS filesystem utilities"
+
+MAKEDEPS="attr bash gzip inih linux-headers python userspace-rcu util-linux"
+
+PKG_VER=5.15.0
+SOURCE="https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+fix-mmap.patch
+missing-signal.h.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ export DEBUG=-DNDEBUG
+ export OPTIMIZER="$CFLAGS"
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/sbin \
+ --libexecdir=/usr/lib \
+ --enable-gettext=no
+ make SHELL=/bin/bash
+}
+
+package() {
+ make -j1 DIST_ROOT="$PKG_DEST" install install-dev
+ find "$PKG_DEST" -name *.la -delete
+ mv "$PKG_DEST"/sbin "$PKG_DEST"/usr
+ mkdir -p "$PKG_DEST"/sbin
+ for i in mkfs.xfs fsck.xfs xfs_repair; do
+ mv "$PKG_DEST"/usr/sbin/$i "$PKG_DEST"/sbin/
+ done
+ chown -R root:root "$PKG_DEST"/*
+}