blob: 72137554b57fdcd387f5d6675ec5ad4fb21c1fa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/sh
NAME="xfsprogs"
DESC="XFS filesystem utilities"
MAKEDEPS="attr bash gzip inih linux-headers python userspace-rcu util-linux"
PKG_VER=5.16.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"/*
}
|