mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
8ada241bab
Exposing a code path a path hidden upstream behind !LIBRESSL_VERSION_NUMBER. Issue reported and fix tested by landry@, ok tb@
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
COMMENT= easy-to-use, robust, and highly configurable VPN
|
|
|
|
DISTNAME= openvpn-2.7.4
|
|
REVISION= 0
|
|
|
|
CATEGORIES= net security
|
|
|
|
HOMEPAGE= https://openvpn.net/index.php/open-source/
|
|
|
|
MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org>
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c lz4 lzo2
|
|
|
|
SITES= https://swupdate.openvpn.org/community/releases/ \
|
|
https://build.openvpn.net/downloads/releases/
|
|
|
|
# Uses C11
|
|
COMPILER= base-clang ports-gcc
|
|
COMPILER_LANGS= c
|
|
|
|
BUILD_DEPENDS= textproc/py-docutils
|
|
LIB_DEPENDS= archivers/lzo2 \
|
|
archivers/lz4
|
|
TEST_DEPENDS= devel/cmocka
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
|
|
SOFTHSM2_UTIL=no
|
|
CONFIGURE_ARGS= --with-openssl-engine=no
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
|
|
FLAVORS= mbedtls
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mmbedtls}
|
|
LIB_DEPENDS+= security/mbedtls>=3.6.5
|
|
CONFIGURE_ARGS+= --with-crypto-library=mbedtls
|
|
WANTLIB += mbedcrypto mbedtls mbedx509 pthread
|
|
.else
|
|
# ensure 'pkcs11-providers .../p11-kit-proxy.so' as default
|
|
BUILD_DEPENDS+= security/p11-kit
|
|
LIB_DEPENDS+= security/pkcs11-helper
|
|
CONFIGURE_ARGS+= --enable-pkcs11
|
|
WANTLIB += crypto pkcs11-helper ssl
|
|
.endif
|
|
|
|
SAMPLES_DIR= ${PREFIX}/share/examples/openvpn
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/distro/dns-scripts/resolvconf_file-dns-updown.sh
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/sample/; \
|
|
find sample-config-files sample-keys sample-scripts -type d \
|
|
-exec ${INSTALL_DATA_DIR} ${SAMPLES_DIR}/{} ';' ; \
|
|
find sample-config-files sample-keys sample-scripts -type f \
|
|
'(' ! -name '*.orig' -a ! -name '.gitignore' ')' \
|
|
-exec ${INSTALL_DATA} {} ${SAMPLES_DIR}/{} ';'
|
|
${INSTALL_SCRIPT} ${FILESDIR}/resolvd-dns-updown.sh \
|
|
${PREFIX}/libexec/openvpn/dns-updown.resolvd
|
|
|
|
.include <bsd.port.mk>
|