Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148318407
D23190.id67316.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D23190.id67316.diff
View Options
Index: head/security/openvpn/Makefile
===================================================================
--- head/security/openvpn/Makefile
+++ head/security/openvpn/Makefile
@@ -35,11 +35,11 @@
CPPFLAGS+= -DPLUGIN_LIBDIR=\\\"${PREFIX}/lib/openvpn/plugins\\\"
OPTIONS_DEFINE= PKCS11 EASYRSA DOCS EXAMPLES X509ALTUSERNAME \
- TEST LZ4 SMALL TUNNELBLICK
-OPTIONS_DEFAULT= EASYRSA OPENSSL TEST LZ4
+ TEST LZ4 LZO SMALL TUNNELBLICK
+OPTIONS_DEFAULT= EASYRSA OPENSSL TEST LZ4 LZO
OPTIONS_SINGLE= SSL
OPTIONS_SINGLE_SSL= OPENSSL MBEDTLS
-PKCS11_DESC= Use security/pkcs11-helper
+PKCS11_DESC= Use security/pkcs11-helper (OpenSSL only)
EASYRSA_DESC= Install security/easy-rsa RSA helper package
MBEDTLS_DESC= SSL/TLS via mbedTLS (lacks TLS v1.3)
TUNNELBLICK_DESC= Tunnelblick XOR scramble patch (READ HELP!)
@@ -56,20 +56,23 @@
TUNNELBLICK_EXTRA_PATCHES= ${FILESDIR}/extra-tunnelblick-openvpn_xorpatch
X509ALTUSERNAME_CONFIGURE_ENABLE= x509-alt-username
-
X509ALTUSERNAME_PREVENTS= MBEDTLS
X509ALTUSERNAME_PREVENTS_MSG= OpenVPN ${DISTVERSION} cannot use --x509-username-field with mbedTLS. Disable X509ALTUSERNAME, or use OpenSSL instead
OPENSSL_USES= ssl
OPENSSL_CONFIGURE_ON= --with-crypto-library=openssl
-LZ4_CONFIGURE_OFF= --disable-lz4
-
-SMALL_CONFIGURE_ON= --enable-small
-
MBEDTLS_LIB_DEPENDS= libmbedtls.so:security/mbedtls
MBEDTLS_CONFIGURE_ON= --with-crypto-library=mbedtls
+LZO_CONFIGURE_ENABLE= lzo
+LZO_LIB_DEPENDS+= liblzo2.so:archivers/lzo2
+
+LZ4_CONFIGURE_ENABLE= lz4
+LZ4_LIB_DEPENDS+= liblz4.so:archivers/liblz4
+
+SMALL_CONFIGURE_ENABLE= small
+
USE_RC_SUBR= openvpn
SUB_FILES= pkg-message openvpn-client
@@ -78,16 +81,25 @@
CFLAGS+= -DLOG_OPENVPN=${LOG_OPENVPN}
.endif
-LIB_DEPENDS+= liblzo2.so:archivers/lzo2
-
-LZ4_LIB_DEPENDS+= liblz4.so:archivers/liblz4
-
PORTDOCS= *
PORTEXAMPLES= *
TEST_ALL_TARGET= check
TEST_TEST_TARGET_OFF= check
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMBEDTLS}
+_tlslibs=libmbedtls libmbedx509 libmbedcrypto
+.else
+# OpenSSL
+_tlslibs=libssl libcrypto
+.endif
+
+.if ! ${PORT_OPTIONS:MLZ4} && ! ${PORT_OPTIONS:MLZO}
+CONFIGURE_ARGS+= --enable-comp-stub
+.endif
+
pre-configure:
.ifdef (LOG_OPENVPN)
@${ECHO} "Building with LOG_OPENVPN=${LOG_OPENVPN}"
@@ -104,15 +116,6 @@
${REINPLACE_CMD} '/^CFLAGS =/s/$$/ -fPIC/' \
${WRKSRC}/src/plugins/auth-pam/Makefile \
${WRKSRC}/src/plugins/down-root/Makefile
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMBEDTLS}
-_tlslibs=libmbedtls libmbedx509 libmbedcrypto
-.else
-# OpenSSL
-_tlslibs=libssl libcrypto
-.endif
# sanity check that we don't inherit incompatible SSL libs through,
# for instance, pkcs11-helper:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 18, 3:45 AM (17 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29876416
Default Alt Text
D23190.id67316.diff (2 KB)
Attached To
Mode
D23190: secure/openvpn: Make lzo compression optional
Attached
Detach File
Event Timeline
Log In to Comment