summaryrefslogtreecommitdiffstats
path: root/security/openvpn-devel/Makefile
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-04-21 14:04:41 +0000
committerjylefort <jylefort@FreeBSD.org>2005-04-21 14:04:41 +0000
commit131eaa43e66b5054b57b5fc44a7e6caaf6594be7 (patch)
treebaaf70b89a3e98728f1ddc0d6deb0038e3a4fa0f /security/openvpn-devel/Makefile
parent5dfdec4d3b3fc2da87411c96f729075435c78428 (diff)
downloadFreeBSD-ports-131eaa43e66b5054b57b5fc44a7e6caaf6594be7.zip
FreeBSD-ports-131eaa43e66b5054b57b5fc44a7e6caaf6594be7.tar.gz
Update to 2.0
PR: ports/80082 Submitted by: Matthias Andree <matthias.andree@gmx.de> (maintainer) Approved by: adamw (mentor, implicit)
Diffstat (limited to 'security/openvpn-devel/Makefile')
-rw-r--r--security/openvpn-devel/Makefile34
1 files changed, 19 insertions, 15 deletions
diff --git a/security/openvpn-devel/Makefile b/security/openvpn-devel/Makefile
index ea12350..af6f794 100644
--- a/security/openvpn-devel/Makefile
+++ b/security/openvpn-devel/Makefile
@@ -6,42 +6,46 @@
#
PORTNAME= openvpn
-PORTVERSION= 1.6.0
+DISTVERSION= 2.0
CATEGORIES= security
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
- http://osdn.dl.sourceforge.net/sourceforge/${PORTNAME}/
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= http://openvpn.net/release/
MAINTAINER= matthias.andree@gmx.de
COMMENT= Secure IP/Ethernet tunnel daemon
LIB_DEPENDS= lzo.1:${PORTSDIR}/archivers/lzo
-CONFLICTS= openvpn-devel-*
-
GNU_CONFIGURE= yes
USE_OPENSSL= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-lzo-lib=${LOCALBASE}/lib \
- --with-lzo-headers=${LOCALBASE}/include \
- --prefix=${PREFIX}
+ --with-lzo-headers=${LOCALBASE}/include
MAN8= openvpn.8
+# self-tests here
+post-build:
+ ( set -e ; cd ${WRKSRC} && \
+ ./openvpn --genkey --secret key && \
+ ./openvpn --test-crypto --secret key && ${RM} key )
+ ( set -e ; cd ${WRKSRC} && { \
+ ./openvpn --config sample-config-files/loopback-server & \
+ ./openvpn --config sample-config-files/loopback-client ; \
+ wait ; })
+
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/openvpn.sh.sample \
${PREFIX}/etc/rc.d/openvpn.sh.sample
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}
.for docs in AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL NEWS \
PORTS README
- @${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
-.endfor
-.for dirs in easy-rsa sample-config-files sample-scripts
- @${MKDIR} ${DOCSDIR}/${dirs}
- @${INSTALL_DATA} ${WRKSRC}/${dirs}/* ${DOCSDIR}/${dirs}
+ ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
- @${CAT} ${PKGMESSAGE}
+ ( cd ${WRKSRC} \
+ && ${FIND} easy-rsa sample-config-files sample-scripts -depth \
+ | ${GREP} -v easy-rsa/Windows \
+ | ${CPIO} -pdmu ${DOCSDIR} )
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud