2018-04-24 17:32:43 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.90 2018/04/24 17:32:43 jca Exp $
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2007-07-27 21:20:29 +00:00
|
|
|
COMMENT= easy-to-use, robust, and highly configurable VPN
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2018-04-24 17:32:43 +00:00
|
|
|
DISTNAME= openvpn-2.4.6
|
2003-11-25 17:27:50 +00:00
|
|
|
CATEGORIES= net security
|
|
|
|
|
2016-11-18 16:19:29 +00:00
|
|
|
HOMEPAGE= https://openvpn.net/index.php/open-source/
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2016-11-29 10:10:44 +00:00
|
|
|
MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org>
|
|
|
|
|
2012-01-12 08:15:30 +00:00
|
|
|
# GPLv2 only
|
2003-11-25 17:27:50 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2010-07-12 22:07:37 +00:00
|
|
|
|
2017-10-18 19:24:44 +00:00
|
|
|
WANTLIB += c lz4 lzo2
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2017-09-29 16:36:23 +00:00
|
|
|
MASTER_SITES= https://swupdate.openvpn.org/community/releases/
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2017-02-06 10:22:35 +00:00
|
|
|
LIB_DEPENDS= archivers/lzo2 \
|
|
|
|
archivers/lz4
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2012-03-29 13:38:12 +00:00
|
|
|
SEPARATE_BUILD= Yes
|
2012-01-12 08:15:30 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2017-02-06 10:22:35 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
|
2017-10-26 08:22:36 +00:00
|
|
|
|
|
|
|
FLAVORS= mbedtls
|
2017-10-18 19:24:44 +00:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:Mmbedtls}
|
|
|
|
LIB_DEPENDS+= security/polarssl
|
|
|
|
CONFIGURE_ARGS+= --with-crypto-library=mbedtls
|
|
|
|
WANTLIB += mbedcrypto mbedtls mbedx509 pthread
|
|
|
|
.else
|
|
|
|
WANTLIB += crypto ssl
|
|
|
|
.endif
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2017-10-18 19:24:44 +00:00
|
|
|
SAMPLES_DIR= ${PREFIX}/share/examples/openvpn
|
2014-04-18 11:54:32 +00:00
|
|
|
|
2003-11-25 17:27:50 +00:00
|
|
|
post-install:
|
2017-02-06 10:22:35 +00:00
|
|
|
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}/{} ';'
|
2003-11-25 17:27:50 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|