46 lines
1.2 KiB
Makefile
Raw Normal View History

2014-04-18 19:08:12 +00:00
# $OpenBSD: Makefile,v 1.51 2014/04/18 19:08:12 espie Exp $
COMMENT= easy-to-use, robust, and highly configurable VPN
2014-01-09 22:42:43 +00:00
DISTNAME= openvpn-2.3.2
CATEGORIES= net security
HOMEPAGE= http://openvpn.net/
2012-01-12 08:15:30 +00:00
# GPLv2 only
PERMIT_PACKAGE_CDROM= Yes
2012-01-12 08:15:30 +00:00
WANTLIB += c crypto ssl lzo2
MASTER_SITES= http://swupdate.openvpn.net/community/releases/
2010-11-19 22:31:32 +00:00
LIB_DEPENDS= archivers/lzo2
SEPARATE_BUILD= Yes
2012-01-12 08:15:30 +00:00
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-password-save
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
SAMPLES_DIR= ${PREFIX}/share/examples/openvpn
# not enabled yet; OpenVPN's PolarSSL support currently requires 1.2 API
#FLAVORS= polarssl
#FLAVOR?=
2014-04-18 19:08:12 +00:00
#.if ${FLAVOR:Mpolarssl}
#LIB_DEPENDS+= security/polarssl
#WANTLIB+= polarssl
#CONFIGURE_ARGS+= --with-crypto-library=polarssl
#.endif
post-install:
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/sample-config-files \
${SAMPLES_DIR}/sample-keys ${SAMPLES_DIR}/sample-scripts
find ${WRKSRC}/sample/sample-config-files/ -type f \! -name "*.orig" \
-exec ${INSTALL_DATA} {} ${SAMPLES_DIR}/sample-config-files \;
${INSTALL_DATA} ${WRKSRC}/sample/sample-keys/* ${SAMPLES_DIR}/sample-keys
${INSTALL_DATA} ${WRKSRC}/sample/sample-scripts/* ${SAMPLES_DIR}/sample-scripts
.include <bsd.port.mk>