50 lines
1.2 KiB
Makefile
Raw Normal View History

2018-04-24 17:32:43 +00:00
# $OpenBSD: Makefile,v 1.90 2018/04/24 17:32:43 jca Exp $
COMMENT= easy-to-use, robust, and highly configurable VPN
2018-04-24 17:32:43 +00:00
DISTNAME= openvpn-2.4.6
CATEGORIES= net security
2016-11-18 16:19:29 +00:00
HOMEPAGE= https://openvpn.net/index.php/open-source/
MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org>
2012-01-12 08:15:30 +00:00
# GPLv2 only
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c lz4 lzo2
MASTER_SITES= https://swupdate.openvpn.org/community/releases/
LIB_DEPENDS= archivers/lzo2 \
archivers/lz4
SEPARATE_BUILD= Yes
2012-01-12 08:15:30 +00:00
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
FLAVORS= mbedtls
FLAVOR?=
.if ${FLAVOR:Mmbedtls}
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>