2019-11-05 12:52:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# 2019-11-05, Nico Schottelius
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
version=4.0.6
|
|
|
|
|
2019-11-25 13:48:53 +00:00
|
|
|
cat <<EOF
|
|
|
|
Required for building:
|
|
|
|
|
|
|
|
Devuan:
|
|
|
|
- dkms
|
|
|
|
- kernel headers for current kernel
|
|
|
|
|
|
|
|
Alpine:
|
|
|
|
|
|
|
|
apk add build-base libnl3-dev iptables-dev argp-standalone
|
|
|
|
|
|
|
|
Compiling on alpine requires:
|
|
|
|
|
|
|
|
LDFLAGS=-largp
|
|
|
|
LDFLAGS=-largp ./configure
|
|
|
|
LDFLAGS=-largp make
|
|
|
|
make install
|
|
|
|
EOF
|
|
|
|
|
2019-11-05 12:52:50 +00:00
|
|
|
wget -c https://github.com/NICMx/Jool/releases/download/v${version}/jool-${version}.tar.gz
|
|
|
|
tar xfz jool-${version}.tar.gz
|
|
|
|
|
|
|
|
# 1. kernel module
|
|
|
|
dkms install jool-${version}
|
|
|
|
|
|
|
|
# 2. user space
|
|
|
|
cd jool-${version}
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
|
|
# add openrc script for alpine
|