net-misc/openvpn: Sync live ebuild
authorManuel Rüger <mrueg@gentoo.org>
Fri, 13 May 2016 21:45:55 +0000 (23:45 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 13 May 2016 21:46:06 +0000 (23:46 +0200)
Package-Manager: portage-2.2.28

net-misc/openvpn/openvpn-9999.ebuild

index bcfcb96158c6e4431adb0ed8abf1d251a91860e8..bbaf8aa1312137522c1187ffe438599ec0bebe2c 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=5
 
-inherit multilib autotools flag-o-matic user git-2
+inherit multilib autotools flag-o-matic user linux-info git-2
 
 DESCRIPTION="Robust and highly flexible tunneling application compatible with many OSes"
 EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git"
@@ -13,10 +13,11 @@ HOMEPAGE="http://openvpn.net/"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="examples down-root iproute2 +lzo pam passwordsave pkcs11 +plugins polarssl selinux socks +ssl static systemd userland_BSD"
+IUSE="examples down-root iproute2 libressl +lzo pam passwordsave pkcs11 +plugins polarssl selinux socks +ssl static systemd userland_BSD"
 
 REQUIRED_USE="static? ( !plugins !pkcs11 )
-                       polarssl? ( ssl )
+                       polarssl? ( ssl !libressl )
+                       pkcs11? ( ssl )
                        !plugins? ( !pam !down-root )"
 
 DEPEND="
@@ -25,7 +26,11 @@ DEPEND="
        )
        pam? ( virtual/pam )
        ssl? (
-               !polarssl? ( >=dev-libs/openssl-0.9.7 ) polarssl? ( >=net-libs/polarssl-1.2.10 )
+               !polarssl? (
+                       !libressl? ( >=dev-libs/openssl-0.9.7:* )
+                       libressl? ( dev-libs/libressl )
+               )
+               polarssl? ( >=net-libs/polarssl-1.3.8 )
        )
        lzo? ( >=dev-libs/lzo-1.07 )
        pkcs11? ( >=dev-libs/pkcs11-helper-1.11 )
@@ -34,6 +39,12 @@ RDEPEND="${DEPEND}
        selinux? ( sec-policy/selinux-openvpn )
 "
 
+CONFIG_CHECK="~TUN"
+
+pkg_setup()  {
+       linux-info_pkg_setup
+}
+
 src_prepare() {
        eautoreconf
 }