Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2015 14:16:19 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399908 - head/security/openvpn-devel
Message-ID:  <201510211416.t9LEGJ7f086695@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Wed Oct 21 14:16:18 2015
New Revision: 399908
URL: https://svnweb.freebsd.org/changeset/ports/399908

Log:
  Update to 201541. [1]
  
  Convert to options helpers.
  
  PR:		203823 [1]
  Submitted by:	maintainer
  Sponsored by:	Absolight

Modified:
  head/security/openvpn-devel/Makefile
  head/security/openvpn-devel/distinfo

Modified: head/security/openvpn-devel/Makefile
==============================================================================
--- head/security/openvpn-devel/Makefile	Wed Oct 21 13:22:53 2015	(r399907)
+++ head/security/openvpn-devel/Makefile	Wed Oct 21 14:16:18 2015	(r399908)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	openvpn
-DISTVERSION=	201523
-PORTREVISION=	1
+DISTVERSION=	201541
 CATEGORIES=	security net
 MASTER_SITES=	ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/ \
 		ftp://ftp2.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/
@@ -16,7 +15,6 @@ LICENSE=	GPLv2
 
 WRKSRC=		${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}
 
-
 CONFLICTS_INSTALL=	openvpn-[0-9]* openvpn-beta-[0-9]*
 GNU_CONFIGURE=		yes
 USES=			libtool pkgconfig shebangfix tar:xz
@@ -46,15 +44,16 @@ PKCS11_CONFIGURE_ENABLE=	pkcs11
 
 PW_SAVE_CONFIGURE_ENABLE=	password-save
 
-.include <bsd.port.options.mk>
+POLARSSL_LIB_DEPENDS=	libmbedtls.so.9:${PORTSDIR}/security/polarssl13
+POLARSSL_CONFIGURE_ON=	--with-crypto-library=polarssl
+POLARSSL_USE_OFF=	openssl=yes
+POLARSSL_CONFIGURE_OFF+=--with-crypto-library=openssl
 
-.if ${PORT_OPTIONS:MPOLARSSL}
-LIB_DEPENDS+=	libmbedtls.so.9:${PORTSDIR}/security/polarssl13
-CONFIGURE_ARGS+=--with-crypto-library=polarssl
-.else
-USE_OPENSSL=	yes
-CONFIGURE_ARGS+=--with-crypto-library=openssl
-.endif
+LZO_LIB_DEPENDS=	liblzo2.so:${PORTSDIR}/archivers/lzo2
+LZO_CONFIGURE_ENABLE=	lzo
+
+SNAPPY_LIB_DEPENDS=	libsnappy.so:${PORTSDIR}/archivers/snappy
+SNAPPY_CONFIGURE_ENABLE=	snappy
 
 USE_RC_SUBR=	openvpn
 USE_LDCONFIG=	${PREFIX}/lib
@@ -65,18 +64,6 @@ SUB_FILES=	pkg-message
 CFLAGS+=	-DLOG_OPENVPN=${LOG_OPENVPN}
 .endif
 
-.if ${PORT_OPTIONS:MLZO}
-LIB_DEPENDS+=	liblzo2.so:${PORTSDIR}/archivers/lzo2
-.else
-CONFIGURE_ARGS+=--disable-lzo
-.endif
-
-.if ${PORT_OPTIONS:MSNAPPY}
-LIB_DEPENDS+=	libsnappy.so:${PORTSDIR}/archivers/snappy
-.else
-CONFIGURE_ARGS+=--disable-snappy
-.endif
-
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
@@ -103,15 +90,15 @@ post-install:
 		${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn/plugins/openvpn-plugin-auth-pam.so
 		${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn/plugins/openvpn-plugin-down-root.so
 		${MKDIR} ${STAGEDIR}${PREFIX}/include
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
 		${MKDIR} ${STAGEDIR}${DOCSDIR}/
 .for i in AUTHORS ChangeLog PORTS
 		${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
 .endfor
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
+
+post-install-EXAMPLES-on:
 		(cd ${WRKSRC}/sample && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}/)
 		${CHMOD} ${BINMODE} ${STAGEDIR}${EXAMPLESDIR}/sample-scripts/*
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/openvpn-devel/distinfo
==============================================================================
--- head/security/openvpn-devel/distinfo	Wed Oct 21 13:22:53 2015	(r399907)
+++ head/security/openvpn-devel/distinfo	Wed Oct 21 14:16:18 2015	(r399908)
@@ -1,2 +1,2 @@
-SHA256 (openvpn-201523.tar.xz) = 9a20fd20f206d9cec1abdba04e31de1a434f8340a4c237c2c3ed9424aa5a3584
-SIZE (openvpn-201523.tar.xz) = 851852
+SHA256 (openvpn-201541.tar.xz) = df34b42268a082d9f4d221f80e7a90e6aee4b633b3784820e53f726f459d1ba3
+SIZE (openvpn-201541.tar.xz) = 865264



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510211416.t9LEGJ7f086695>