2014-04-18 19:08:12 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.51 2014/04/18 19:08:12 espie 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
|
|
|
|
2014-01-09 22:42:43 +00:00
|
|
|
DISTNAME= openvpn-2.3.2
|
2003-11-25 17:27:50 +00:00
|
|
|
CATEGORIES= net security
|
|
|
|
|
2005-05-01 21:28:49 +00:00
|
|
|
HOMEPAGE= http://openvpn.net/
|
2003-11-25 17:27:50 +00:00
|
|
|
|
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
|
|
|
|
2012-01-12 08:15:30 +00:00
|
|
|
WANTLIB += c crypto ssl lzo2
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2010-11-10 13:50:04 +00:00
|
|
|
MASTER_SITES= http://swupdate.openvpn.net/community/releases/
|
2003-11-25 17:27:50 +00:00
|
|
|
|
2010-11-19 22:31:32 +00:00
|
|
|
LIB_DEPENDS= archivers/lzo2
|
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
|
|
|
|
2013-04-20 16:22:55 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-password-save
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2003-11-25 17:27:50 +00:00
|
|
|
|
|
|
|
SAMPLES_DIR= ${PREFIX}/share/examples/openvpn
|
|
|
|
|
2014-04-18 11:54:32 +00:00
|
|
|
# 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
|
2014-04-18 11:54:32 +00:00
|
|
|
|
2003-11-25 17:27:50 +00:00
|
|
|
post-install:
|
2013-04-20 16:22:55 +00:00
|
|
|
${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
|
2003-11-25 17:27:50 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|