diff options
author | Cem Keylan <cem@ckyln.com> | 2021-03-08 11:12:55 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-03-08 11:12:55 +0300 |
commit | 24f3ab2b19a81b582f15aa317e5966cf56df2c67 (patch) | |
tree | c801fcd79501a597f530e8de5869c4d06e67a55a /personal/zfs/build | |
parent | baafdec9d89d834d798fe174fb149327a37ece45 (diff) | |
download | repository-24f3ab2b19a81b582f15aa317e5966cf56df2c67.tar.gz |
linux-zfs: new-package, zfs: update to 2.0.3
Diffstat (limited to 'personal/zfs/build')
-rwxr-xr-x | personal/zfs/build | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/personal/zfs/build b/personal/zfs/build index 52cf826..49955e5 100755 --- a/personal/zfs/build +++ b/personal/zfs/build @@ -1,33 +1,21 @@ #!/bin/sh -e -# Build script originally taken from github.com/jedavies-dev/kiss-zfs -# Patched to work with the latest kernel, better directory management etc. - -sed -i 's/CDDL/GPL/g' META ./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 \ - --enable-linux-builtin \ - --with-linux="/usr/lib/modules/${KERNEL_VERSION:-$(uname -r)}/build" + --disable-nls -make +make CCLD="${CC:-cc} -all-static" make DESTDIR="$1" install -cd module -make -make DESTDIR="$1/usr" install - -# Holy hell zfs is insistent on not installing files where I want them to be -# installed. -mv "$1/lib/udev" "$1/usr/lib" -mv "$1/sbin/mount.zfs" "$1/usr/bin/mount.zfs" -rm -r "$1/sbin" "$1/lib" - +# Remove unrequired files rm -rf "$1/usr/share/zfs/zfs-tests" \ "$1/usr/lib/dracut" \ "$1/usr/share/initramfs-tools" - |