kiss-repository

personal kiss repository
git clone git://git.ckyln.com/~cem/kiss-repository.git
Log | Files | Refs | Submodules | README | LICENSE

build (818B)


      1 #!/bin/sh -e
      2 # Build script originally taken from github.com/jedavies-dev/kiss-zfs
      3 # Patched to work with the latest kernel, better directory management etc.
      4 
      5 sed -i 's/CDDL/GPL/g' META
      6 
      7 ./configure \
      8     --prefix=/usr \
      9     --sysconfdir=/etc \
     10     --sbindir=/usr/bin \
     11     --disable-systemd \
     12     --disable-sysvinit \
     13     --disable-nls \
     14     --enable-linux-builtin \
     15     --with-linux="/usr/lib/modules/${KERNEL_VERSION:-$(uname -r)}/build"
     16 
     17 make
     18 make DESTDIR="$1" install
     19 
     20 cd module
     21 make
     22 make DESTDIR="$1/usr" install
     23 
     24 # Holy hell zfs is insistent on not installing files where I want them to be
     25 # installed.
     26 mv "$1/lib/udev" "$1/usr/lib"
     27 mv "$1/sbin/mount.zfs" "$1/usr/bin/mount.zfs"
     28 rm -r "$1/sbin" "$1/lib"
     29 
     30 rm -rf "$1/usr/share/zfs/zfs-tests" \
     31        "$1/usr/lib/dracut" \
     32        "$1/usr/share/initramfs-tools"
     33