ungleich-tools/jool-get-build-install.sh

45 lines
667 B
Bash
Raw Normal View History

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:
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
2019-11-05 12:57:32 +00:00
Build requirements devuan:
- dkms
- kernel headers for current kernel
apt install libnl-genl-3-dev libxtables-dev
2019-11-05 12:57:32 +00:00
2019-11-25 13:48:53 +00:00
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