From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 503E31395E2 for ; Sat, 3 Dec 2016 02:48:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5092DE0B75; Sat, 3 Dec 2016 02:48:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C310E0B75 for ; Sat, 3 Dec 2016 02:48:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BFDB341375 for ; Sat, 3 Dec 2016 02:48:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26EC124A9 for ; Sat, 3 Dec 2016 02:48:42 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1480733289.70af2daa2ec4edcd2ffa173b8aef77f6de288a3d.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/openvpn/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/openvpn/openvpn-9999.ebuild X-VCS-Directories: net-misc/openvpn/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 70af2daa2ec4edcd2ffa173b8aef77f6de288a3d X-VCS-Branch: master Date: Sat, 3 Dec 2016 02:48:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6025de8a-23bc-4d79-8ed5-1745026d9fda X-Archives-Hash: 5d09c6903bd394c0c46017ce7db33927 commit: 70af2daa2ec4edcd2ffa173b8aef77f6de288a3d Author: Patrick McLean gentoo org> AuthorDate: Sat Dec 3 02:47:54 2016 +0000 Commit: Patrick McLean gentoo org> CommitDate: Sat Dec 3 02:48:09 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70af2daa net-misc/openvpn: Sync 9999 ebuild with 2.4 changes Package-Manager: portage-2.3.2 net-misc/openvpn/openvpn-9999.ebuild | 62 +++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/net-misc/openvpn/openvpn-9999.ebuild b/net-misc/openvpn/openvpn-9999.ebuild index bbaf8aa..f084a32 100644 --- a/net-misc/openvpn/openvpn-9999.ebuild +++ b/net-misc/openvpn/openvpn-9999.ebuild @@ -2,74 +2,90 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -inherit multilib autotools flag-o-matic user linux-info git-2 +inherit autotools flag-o-matic user systemd linux-info git-r3 DESCRIPTION="Robust and highly flexible tunneling application compatible with many OSes" EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git" +EGIT_SUBMODULES=(-cmocka) HOMEPAGE="http://openvpn.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="examples down-root iproute2 libressl +lzo pam passwordsave pkcs11 +plugins polarssl selinux socks +ssl static systemd userland_BSD" + +IUSE="down-root examples inotify iproute2 libressl lz4 +lzo mbedtls pam" +IUSE+=" pkcs11 +plugins polarssl selinux +ssl static systemd test userland_BSD" REQUIRED_USE="static? ( !plugins !pkcs11 ) - polarssl? ( ssl !libressl ) - pkcs11? ( ssl ) - !plugins? ( !pam !down-root )" + lzo? ( !lz4 ) + pkcs11? ( ssl ) + mbedtls? ( ssl !libressl ) + pkcs11? ( ssl ) + !plugins? ( !pam !down-root )" -DEPEND=" +CDEPEND=" kernel_linux? ( - iproute2? ( sys-apps/iproute2[-minimal] ) !iproute2? ( sys-apps/net-tools ) + iproute2? ( sys-apps/iproute2[-minimal] ) + !iproute2? ( sys-apps/net-tools ) ) pam? ( virtual/pam ) ssl? ( - !polarssl? ( - !libressl? ( >=dev-libs/openssl-0.9.7:* ) + !mbedtls? ( + !libressl? ( >=dev-libs/openssl-0.9.8:* ) libressl? ( dev-libs/libressl ) ) - polarssl? ( >=net-libs/polarssl-1.3.8 ) + mbedtls? ( net-libs/mbedtls ) ) - lzo? ( >=dev-libs/lzo-1.07 ) + lzo? ( app-arch/lz4 ) pkcs11? ( >=dev-libs/pkcs11-helper-1.11 ) systemd? ( sys-apps/systemd )" -RDEPEND="${DEPEND} - selinux? ( sec-policy/selinux-openvpn ) -" +DEPEND="${CDEPEND} + test? ( dev-util/cmocka )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-openvpn )" CONFIG_CHECK="~TUN" +PATCHES=( + "${FILESDIR}/${PN}-external-cmocka.patch" +) + pkg_setup() { linux-info_pkg_setup } src_prepare() { + default eautoreconf } src_configure() { - use static && LDFLAGS="${LDFLAGS} -Xcompiler -static" - local myconf - use polarssl && myconf="--with-crypto-library=polarssl" + use static && append-ldflags -Xcompiler -static econf \ - ${myconf} \ - --docdir="${EPREFIX}/usr/share/doc/${PF}" \ --with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \ - $(use_enable passwordsave password-save) \ - $(use_enable ssl) \ + $(usex mbedtls 'with-crypto-library' 'mbedtls' '' '') \ + $(use_enable inotify async-push) \ $(use_enable ssl crypto) \ + $(use_enable lz4) \ $(use_enable lzo) \ $(use_enable pkcs11) \ $(use_enable plugins) \ $(use_enable iproute2) \ - $(use_enable socks) \ $(use_enable pam plugin-auth-pam) \ $(use_enable down-root plugin-down-root) \ + $(use_enable test tests) \ $(use_enable systemd) } +src_test() { + make check || die "top-level tests failed" + pushd tests/unit_tests > /dev/null || die + make check || die "unit tests failed" + popd > /dev/null || die +} + src_install() { default find "${ED}/usr" -name '*.la' -delete