Build ZFS and LINSTOR

ZFS

https://zfsonlinux.org/

Set up our environment variables for the package name. Configure the build to be located in /usr.
MYPKG=zfs-2.3.1
CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCFLAGS" ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var
Build
make -j $MYTHREADS
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo make install-strip DESTDIR=/root/installs/${MYPKG}-${MYARCH}
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz

DRBD

https://linbit.com/drbd/

Set up our environment variables for the package name.
MYPKG=drbd-9.2.13
Build
make -j $MYTHREADS
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo make install DESTDIR=/root/installs/${MYPKG}-${MYARCH}
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz

drbd-utils

UPDATED

https://zfsonlinux.org/

Set up our environment variables for the package name. Configure the build to be located in /usr.
MYPKG=drbd-utils-9.30.0
MYPKG=drbd-utils-9.31.0
CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCFLAGS" ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var --without-manual
Build
make -j $MYTHREADS
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo make install DESTDIR=/root/installs/${MYPKG}-${MYARCH}
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz

AT THIS POINT, JAVA 17 NEEDS TO BE ON THE BUILD COMPUTER


linstor-server (2m)

UPDATED

Set up our environment variables for the package name. Configure the build to be located in /usr.
MYPKG=linstor-server-1.30.4
MYPKG=linstor-server-1.31.0
Install the prerequisite protocol buffer compiler
./gradlew getProtoc
Build
./gradlew assemble
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo tar -xf build/distributions/linstor-server-1.31.0.tar -C /root/installs/${MYPKG}-${MYARCH}
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}/usr/share
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz

python_linstore

UPDATED

Set up our environment variables for the package name. Configure the build to be located in /usr.
MYPKG=python_linstor-1.25.1
MYPKG=python_linstor-1.25.3
Build
python3 setup.py build
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo python3 setup.py install --prefix=/root/installs/${MYPKG}-${MYARCH}
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}/usr
sudo mv /root/installs/${MYPKG}-${MYARCH}/lib /root/installs/${MYPKG}-${MYARCH}/usr/lib64
sudo mv /root/installs/${MYPKG}-${MYARCH}/bin /root/installs/${MYPKG}-${MYARCH}/usr/bin
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz