Merge pull request #32 from VincentSit/patch-2

Fix a compilation error in l2tp.sh
This commit is contained in:
Teddysun 2018-11-24 11:41:59 +09:00 committed by GitHub
commit f7a0c4abc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ export PATH
#=======================================================================#
cur_dir=`pwd`
libreswan_filename="libreswan-3.20"
libreswan_filename="libreswan-3.27"
download_root_url="http://dl.teddysun.com/files"
rootness(){
@ -421,7 +421,12 @@ compile_install(){
tar -zxf ${libreswan_filename}.tar.gz
cd ${cur_dir}/l2tp/${libreswan_filename}
echo "WERROR_CFLAGS =" > Makefile.inc.local
cat > Makefile.inc.local <<'EOF'
WERROR_CFLAGS =
USE_DNSSEC = false
USE_DH31 = false
USE_GLIBC_KERN_FLIP_HEADERS = true
EOF
make programs && make install
/usr/local/sbin/ipsec --version >/dev/null 2>&1