apt install build-essential automake libtool apt install pkg-config zlib1g-dev uuid-dev libblkid-dev libudev-dev libssl-dev
first, make sure you’ve got git, nmap and curl up and running, as well as all the built-time deps, and finally the kernel source and headers
slackpkg install kernel-headers kernel-source
check youi’re good with ssl and shit
nmap -p 443 github.com curl -I https://github.com/
check kernel headers and source are in da place
uname -r ls -lhF /boot/vmlinuz-* ls -lF /lib/modules/`uname -r`/build
grab and build the latest release
tag=zfs-2.4.0-rc4
#wget https://github.com/openzfs/zfs/archive/refs/tags/$tag.tar.gz
wget https://github.com/openzfs/zfs/releases/download/$tag/$tag.tar.gz
tar xzf $tag.tar.gz
cd $tag/
./autogen.sh
./configure --help | less
./configure --disable-systemd --enable-sysvinit --disable-nls \
--sysconfdir=/etc --localstatedir=/var \
--enable-linux-experimental
grep ^proc /proc/cpuinfo
export MAKEFLAGS=-j4
#make clean
time make >/dev/null && echo BUILT
# pro5s 6m44.185s / 6m46.636s / 6m42.308s
# single core kvm guest 11m41.277s
# asusboard 4m0.210s
make install >/dev/null && echo INSTALLED
ldconfig
find /lib/modules/ | grep zfs
depmod -a
modprobe zfs
dmesg | grep ZFS
echo zfs >> /etc/modules
echo /sbin/modprobe zfs >> /etc/rc.d/rc.modules.local