Cleanup
This commit is contained in:
parent
3bf17a75db
commit
bd291e91a1
@ -169,7 +169,6 @@ install_libreswan() {
|
|||||||
cd "libreswan-$SWAN_VER" || exit 1
|
cd "libreswan-$SWAN_VER" || exit 1
|
||||||
sed -i '1c\#!/sbin/openrc-run' /etc/init.d/ipsec
|
sed -i '1c\#!/sbin/openrc-run' /etc/init.d/ipsec
|
||||||
service ipsec stop >/dev/null 2>&1
|
service ipsec stop >/dev/null 2>&1
|
||||||
sed -i '28s/stdlib\.h/sys\/types.h/' include/fd.h
|
|
||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS=-w -s
|
WERROR_CFLAGS=-w -s
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
|
@ -191,7 +191,7 @@ cat > Makefile.inc.local <<'EOF'
|
|||||||
WERROR_CFLAGS=-w -s
|
WERROR_CFLAGS=-w -s
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
EOF
|
EOF
|
||||||
if [ "$SWAN_VER" = "3.32" ] || ! grep -qs 'VERSION_CODENAME=' /etc/os-release; then
|
if [ "$SWAN_VER" = "3.32" ]; then
|
||||||
cat >> Makefile.inc.local <<'EOF'
|
cat >> Makefile.inc.local <<'EOF'
|
||||||
USE_DH31=false
|
USE_DH31=false
|
||||||
USE_NSS_AVA_COPY=true
|
USE_NSS_AVA_COPY=true
|
||||||
|
@ -282,7 +282,6 @@ install_libreswan() {
|
|||||||
if [ "$check_result" = 0 ]; then
|
if [ "$check_result" = 0 ]; then
|
||||||
bigecho "Compiling and installing Libreswan, please wait..."
|
bigecho "Compiling and installing Libreswan, please wait..."
|
||||||
cd "libreswan-$SWAN_VER" || exit 1
|
cd "libreswan-$SWAN_VER" || exit 1
|
||||||
sed -i '28s/stdlib\.h/sys\/types.h/' include/fd.h
|
|
||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS=-w -s
|
WERROR_CFLAGS=-w -s
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
|
@ -349,14 +349,6 @@ USE_DH2=true
|
|||||||
USE_NSS_KDF=false
|
USE_NSS_KDF=false
|
||||||
FINALNSSDIR=/etc/ipsec.d
|
FINALNSSDIR=/etc/ipsec.d
|
||||||
EOF
|
EOF
|
||||||
if ! grep -qs 'VERSION_CODENAME=' /etc/os-release; then
|
|
||||||
cat >> Makefile.inc.local <<'EOF'
|
|
||||||
USE_DH31=false
|
|
||||||
USE_NSS_AVA_COPY=true
|
|
||||||
USE_NSS_IPSEC_PROFILE=false
|
|
||||||
USE_GLIBC_KERN_FLIP_HEADERS=true
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
if ! grep -qs IFLA_XFRM_LINK /usr/include/linux/if_link.h; then
|
if ! grep -qs IFLA_XFRM_LINK /usr/include/linux/if_link.h; then
|
||||||
echo "USE_XFRM_INTERFACE_IFLA_HEADER=true" >> Makefile.inc.local
|
echo "USE_XFRM_INTERFACE_IFLA_HEADER=true" >> Makefile.inc.local
|
||||||
fi
|
fi
|
||||||
@ -680,7 +672,7 @@ VPN client setup: https://vpnsetup.net/clients
|
|||||||
EOF
|
EOF
|
||||||
if [ ! -e /dev/ppp ]; then
|
if [ ! -e /dev/ppp ]; then
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
WARNING: /dev/ppp is missing, and IPsec/L2TP mode may not work.
|
Warning: /dev/ppp is missing, and IPsec/L2TP mode may not work.
|
||||||
Please use IKEv2 or IPsec/XAuth mode to connect.
|
Please use IKEv2 or IPsec/XAuth mode to connect.
|
||||||
Debian 11/10 users, see https://vpnsetup.net/debian10
|
Debian 11/10 users, see https://vpnsetup.net/debian10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user