Add new version
- Add support for upgrading to new Libreswan version 3.25 - "USE_GLIBC_KERN_FLIP_HEADERS = true" is required for compilation - Fixes #412
This commit is contained in:
parent
0c151515fe
commit
41ce696f08
@ -47,10 +47,6 @@ if [ -z "$SWAN_VER" ]; then
|
|||||||
exiterr "Libreswan version 'SWAN_VER' not specified."
|
exiterr "Libreswan version 'SWAN_VER' not specified."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SWAN_VER" = "3.25" ]; then
|
|
||||||
exiterr "Libreswan 3.25 is not yet supported."
|
|
||||||
fi
|
|
||||||
|
|
||||||
ipsec_ver="$(/usr/local/sbin/ipsec --version 2>/dev/null)"
|
ipsec_ver="$(/usr/local/sbin/ipsec --version 2>/dev/null)"
|
||||||
if ! printf '%s' "$ipsec_ver" | grep -q "Libreswan"; then
|
if ! printf '%s' "$ipsec_ver" | grep -q "Libreswan"; then
|
||||||
exiterr "This script requires Libreswan already installed."
|
exiterr "This script requires Libreswan already installed."
|
||||||
@ -168,6 +164,7 @@ sed -i '/docker-targets\.mk/d' Makefile
|
|||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS =
|
WERROR_CFLAGS =
|
||||||
USE_DNSSEC = false
|
USE_DNSSEC = false
|
||||||
|
USE_GLIBC_KERN_FLIP_HEADERS = true
|
||||||
EOF
|
EOF
|
||||||
if [ "$(packaging/utils/lswan_detect.sh init)" = "systemd" ]; then
|
if [ "$(packaging/utils/lswan_detect.sh init)" = "systemd" ]; then
|
||||||
apt-get -yq install libsystemd-dev || exiterr2
|
apt-get -yq install libsystemd-dev || exiterr2
|
||||||
|
@ -38,10 +38,6 @@ if [ -z "$SWAN_VER" ]; then
|
|||||||
exiterr "Libreswan version 'SWAN_VER' not specified."
|
exiterr "Libreswan version 'SWAN_VER' not specified."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SWAN_VER" = "3.25" ]; then
|
|
||||||
exiterr "Libreswan 3.25 is not yet supported."
|
|
||||||
fi
|
|
||||||
|
|
||||||
ipsec_ver="$(/usr/local/sbin/ipsec --version 2>/dev/null)"
|
ipsec_ver="$(/usr/local/sbin/ipsec --version 2>/dev/null)"
|
||||||
if ! printf '%s' "$ipsec_ver" | grep -q "Libreswan"; then
|
if ! printf '%s' "$ipsec_ver" | grep -q "Libreswan"; then
|
||||||
exiterr "This script requires Libreswan already installed."
|
exiterr "This script requires Libreswan already installed."
|
||||||
@ -170,6 +166,7 @@ sed -i '/docker-targets\.mk/d' Makefile
|
|||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS =
|
WERROR_CFLAGS =
|
||||||
USE_DNSSEC = false
|
USE_DNSSEC = false
|
||||||
|
USE_GLIBC_KERN_FLIP_HEADERS = true
|
||||||
EOF
|
EOF
|
||||||
NPROCS="$(grep -c ^processor /proc/cpuinfo)"
|
NPROCS="$(grep -c ^processor /proc/cpuinfo)"
|
||||||
[ -z "$NPROCS" ] && NPROCS=1
|
[ -z "$NPROCS" ] && NPROCS=1
|
||||||
|
Loading…
Reference in New Issue
Block a user