OpenVPN port, "exec" was added to route(8) which provides the same support in a more general way. use a command like this instead: "route -T <table#> exec openvpn -daemon ..."
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.45 2013/04/23 09:31:33 sthen Exp $
|
|
|
|
COMMENT= easy-to-use, robust, and highly configurable VPN
|
|
|
|
DISTNAME= openvpn-2.3.1
|
|
CATEGORIES= net security
|
|
REVISION= 1
|
|
|
|
HOMEPAGE= http://openvpn.net/
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c crypto ssl lzo2
|
|
|
|
MASTER_SITES= http://swupdate.openvpn.net/community/releases/
|
|
|
|
LIB_DEPENDS= archivers/lzo2
|
|
|
|
SEPARATE_BUILD= Yes
|
|
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
|
|
|
|
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>
|