Skip to content

Commit

Permalink
Update macos openvpn
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Nov 10, 2018
1 parent d64d11c commit a0f39ea
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
Binary file modified openvpn_osx/openvpn
Binary file not shown.
Binary file added openvpn_osx/pkcs11-helper-1.24.tar.bz2
Binary file not shown.
29 changes: 27 additions & 2 deletions tools/build_openvpn.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" OPENSSL_CFLAGS="-I/usr/local/opt/openssl/include" OPENSSL_LIBS="/usr/local/opt/openssl/lib/libssl.a -lz /usr/local/opt/openssl/lib/libcrypto.a -lz" LZO_LIBS="/usr/local/opt/lzo/lib/liblzo2.a" OPTIONAL_LZO_LIBS="/usr/local/opt/lzo/lib/liblzo2.a" ./configure --disable-debug --disable-silent-rules --disable-server --disable-management --disable-plugins --disable-plugin-auth-pam --disable-plugin-down-root --enable-static=yes --disable-shared
make DESTDIR="`pwd`/root/" install
make clean
CFLAGS=" -arch x86_64" \
OPENSSL_CFLAGS="-I/usr/local/opt/openssl/include" \
OPENSSL_SSL_CFLAGS="-I/usr/local/opt/openssl/include" \
OPENSSL_CRYPTO_CFLAGS="-I/usr/local/opt/openssl/include" \
OPENSSL_LIBS="/usr/local/opt/openssl/lib/libssl.a -lz /usr/local/opt/openssl/lib/libcrypto.a -lz" \
OPENSSL_SSL_LIBS="/usr/local/opt/openssl/lib/libssl.a" \
OPENSSL_CRYPTO_LIBS="/usr/local/opt/openssl/lib/libcrypto.a -lz" \
PKCS11_HELPER_CFLAGS="-I`pwd`/../pkcs11-helper/include" \
PKCS11_HELPER_LIBS="-L`pwd`/../pkcs11-helper/lib -lpkcs11-helper" \
LZO_CFLAGS="-I/usr/local/opt/lzo/include" \
LZO_LIBS="/usr/local/opt/lzo/lib/liblzo2.a" \
OPTIONAL_LZO_LIBS="/usr/local/opt/lzo/lib/liblzo2.a" \
LZ4_CFLAGS="-I/usr/local/opt/lz4/include" \
LZ4_LIBS="/usr/local/opt/lz4/lib/liblz4.a" \
./configure \
--disable-debug \
--disable-silent-rules \
--disable-server \
--disable-management \
--disable-plugins \
--disable-plugin-auth-pam \
--disable-plugin-down-root \
--enable-pkcs11 \
--enable-static \
--disable-shared
make DESTDIR="`pwd`/../ovpn/" install
15 changes: 15 additions & 0 deletions tools/build_pkcs11h.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
make clean
CFLAGS=" -arch x86_64" \
OPENSSL_CFLAGS="-I/usr/local/opt/openssl/include" \
OPENSSL_LIBS="-L/usr/local/opt/openssl/lib -lssl -lcrypto -lz" \
./configure --build=x86_64-apple-darwin \
--prefix=`pwd`/../pkcs11-helper \
--enable-static \
--disable-shared \
--disable-slotevent \
--disable-threading \
--disable-crypto-engine-gnutls \
--disable-crypto-engine-nss \
--disable-crypto-engine-mbedtls \
--disable-dependency-tracking
make install

0 comments on commit a0f39ea

Please sign in to comment.