aboutsummaryrefslogtreecommitdiff
path: root/personal/zfs/build
blob: 49955e5739e01d49fc2422294baffbb264ca85c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --sbindir=/usr/bin \
    --with-mounthelperdir=/usr/bin \
    --with-udevdir=/usr/lib/udev \
    --with-udevruledir=/usr/lib/udev/rules.d \
    --with-config=user \
    --disable-systemd \
    --disable-sysvinit \
    --disable-nls

make CCLD="${CC:-cc} -all-static"
make DESTDIR="$1" install

# Remove unrequired files
rm -rf "$1/usr/share/zfs/zfs-tests" \
       "$1/usr/lib/dracut" \
       "$1/usr/share/initramfs-tools"