diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-22 17:18:59 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-22 17:19:26 +0200 |
commit | 867ad9fde2dfa82b478b3ba2070b982b17b28c91 (patch) | |
tree | 1024f49a17f5b0e3e7345f1dda92d89784097c92 /pkg/thirdparty/openvpn/build_openvpn.sh | |
parent | c946a550c956567627bf4c6e8a1951ebf95c7ada (diff) |
[pkg] build openvpn 2.4.3
- Resolves: #8946
Diffstat (limited to 'pkg/thirdparty/openvpn/build_openvpn.sh')
-rwxr-xr-x | pkg/thirdparty/openvpn/build_openvpn.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkg/thirdparty/openvpn/build_openvpn.sh b/pkg/thirdparty/openvpn/build_openvpn.sh index 121674f..b62ebad 100755 --- a/pkg/thirdparty/openvpn/build_openvpn.sh +++ b/pkg/thirdparty/openvpn/build_openvpn.sh @@ -25,8 +25,8 @@ mkdir -p $SRC LZO="lzo-2.10" ZLIB="zlib-1.2.11" -MBEDTLS="mbedtls-2.4.2" -OPENVPN="openvpn-2.4.2" +MBEDTLS="mbedtls-2.5.1" +OPENVPN="openvpn-2.4.3" WGET="wget --prefer-family=IPv4" DEST=$BASE/install @@ -37,8 +37,6 @@ CXXFLAGS=$CFLAGS CONFIGURE="./configure --prefix=/install" MAKE="make -j2" -echo "DEST" $DEST - ######## #################################################################### # ZLIB # #################################################################### @@ -122,7 +120,7 @@ function build_openvpn() cd $OPENVPN MBEDTLS_CFLAGS=-I$BASE/install/usr/local/include/ \ - MBEDTLS_LIBS="$DEST/usr/local/lib/libmbedtls.a $DEST/usr/local/lib/libmbedcrypto.a $DEST/usr/local/lib/libmbedx509.a" \ + MBEDTLS_LIBS="$DEST/usr/local/lib/libmbedtls.a $DEST/usr/local/lib/libmbedcrypto.a $DEST/usr/local/lib/libmbedx509.a" \ LDFLAGS=$LDFLAGS \ CPPFLAGS=$CPPFLAGS \ CFLAGS="$CFLAGS -I$BASE/install/usr/local/include" \ @@ -135,14 +133,17 @@ function build_openvpn() $MAKE LIBS="-all-static -lz -llzo2" make install DESTDIR=$BASE/openvpn + mkdir $BASE/sbin/ + cp $BASE/openvpn/install/sbin/openvpn $BASE/sbin/$OPENVPN + strip $BASE/sbin/$OPENVPN } function build_all() { - build_zlib - build_lzo2 - build_mbedtls - build_openvpn + build_zlib + build_lzo2 + build_mbedtls + build_openvpn } function main() |