openbsd-ports/net/openvpn/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

56 lines
1.3 KiB
Makefile

COMMENT= easy-to-use, robust, and highly configurable VPN
DISTNAME= openvpn-2.5.8
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
MASTER_SITES= https://swupdate.openvpn.org/community/releases/
BUILD_DEPENDS= textproc/py-docutils,python3
LIB_DEPENDS= archivers/lzo2 \
archivers/lz4
TEST_DEPENDS= devel/cmocka
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
DEBUG_PACKAGES= ${BUILD_PACKAGES}
FLAVORS= mbedtls
FLAVOR?=
.if ${FLAVOR:Mmbedtls}
# If you run openvpn--mbedtls you'll have to build it yourself
PERMIT_PACKAGE= mbedtls Apache 2 license incompatible with GPLv2
LIB_DEPENDS+= security/polarssl
CONFIGURE_ARGS+= --with-crypto-library=mbedtls
WANTLIB += mbedcrypto mbedtls mbedx509 pthread
.else
WANTLIB += crypto ssl
.endif
SAMPLES_DIR= ${PREFIX}/share/examples/openvpn
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}/{} ';'
.include <bsd.port.mk>