From owner-svn-ports-all@freebsd.org Tue Mar 13 00:10:34 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9298EA4A1BC; Tue, 13 Mar 2018 00:10:34 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 411307B80B; Tue, 13 Mar 2018 00:10:34 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 22A9712937; Tue, 13 Mar 2018 00:10:34 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2D0AYDD013759; Tue, 13 Mar 2018 00:10:34 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2D0AXM2013757; Tue, 13 Mar 2018 00:10:33 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201803130010.w2D0AXM2013757@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Tue, 13 Mar 2018 00:10:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r464331 - head/security/openvpn X-SVN-Group: ports-head X-SVN-Commit-Author: mandree X-SVN-Commit-Paths: head/security/openvpn X-SVN-Commit-Revision: 464331 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2018 00:10:34 -0000 Author: mandree Date: Tue Mar 13 00:10:33 2018 New Revision: 464331 URL: https://svnweb.freebsd.org/changeset/ports/464331 Log: Update to new upstream bugfix release 2.4.5. Change summary: Changelog: While here, add a sanity check that traps inconsistent linkage, if, for instance, the PKCS#11 helper has been built with a different OPENSSL library version than OpenVPN. Modified: head/security/openvpn/Makefile head/security/openvpn/distinfo Modified: head/security/openvpn/Makefile ============================================================================== --- head/security/openvpn/Makefile Mon Mar 12 22:16:44 2018 (r464330) +++ head/security/openvpn/Makefile Tue Mar 13 00:10:33 2018 (r464331) @@ -2,8 +2,8 @@ # $FreeBSD$ PORTNAME= openvpn -DISTVERSION= 2.4.4 -PORTREVISION?= 2 +DISTVERSION= 2.4.5 +PORTREVISION?= 0 CATEGORIES= security net MASTER_SITES= https://swupdate.openvpn.net/community/releases/ \ https://build.openvpn.net/downloads/releases/ @@ -109,6 +109,22 @@ post-configure: ${REINPLACE_CMD} '/^CFLAGS =/s/$$/ -fPIC/' \ ${WRKSRC}/src/plugins/auth-pam/Makefile \ ${WRKSRC}/src/plugins/down-root/Makefile + +.include + +.if ${PORT_OPTIONS:MMBEDTLS} +_tlslibs=libmbedtls libmbedx509 libmbedcrypto +.else +# OpenSSL +_tlslibs=libssl libcrypto +.endif + +# sanity check that we don't inherit incompatible SSL libs through, +# for instance, pkcs11-helper: +post-build: + @a=$$(LC_ALL=C ldd -f '%o\n' ${WRKSRC}/src/openvpn/openvpn \ + | ${SORT} -u) ; set -- $$(for i in ${_tlslibs} ; do ${PRINTF} '%s\n' "$$a" | ${GREP} $${i}.so | wc -l ; done | ${SORT} -u) ;\ + if test "$$*" != "1" ; then ${ECHO_CMD} >&2 "${.CURDIR} FAILED: either of ${_tlslibs} libraries linked multiple times" ; ${PRINTF} '%s\n' "$$a"; ${RM} ${BUILD_COOKIE} ; exit 1 ; fi post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn/plugins/openvpn-plugin-auth-pam.so Modified: head/security/openvpn/distinfo ============================================================================== --- head/security/openvpn/distinfo Mon Mar 12 22:16:44 2018 (r464330) +++ head/security/openvpn/distinfo Tue Mar 13 00:10:33 2018 (r464331) @@ -1,3 +1,3 @@ -TIMESTAMP = 1506531327 -SHA256 (openvpn-2.4.4.tar.xz) = 96cd1b8fe1e8cb2920f07c3fd3985faea756e16fdeebd11d3e146d5bd2b04a80 -SIZE (openvpn-2.4.4.tar.xz) = 924172 +TIMESTAMP = 1520895770 +SHA256 (openvpn-2.4.5.tar.xz) = 43c0a363a332350f620d1cd93bb431e082bedbc93d4fb872f758650d53c1d29e +SIZE (openvpn-2.4.5.tar.xz) = 942696