net-dns/bind-tools: Add caps use flag (kill automagic)
authorMikle Kolyada <zlogene@gentoo.org>
Thu, 22 Aug 2019 19:20:49 +0000 (22:20 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Thu, 22 Aug 2019 19:21:35 +0000 (22:21 +0300)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
net-dns/bind-tools/bind-tools-9.14.4.ebuild
net-dns/bind-tools/bind-tools-9.15.2.ebuild

index 1185d42883640ba77429d29abde4c677097733b8..f96ea235fc5249a9585732011b886f528867dbef 100644 (file)
@@ -17,10 +17,11 @@ SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.gz"
 LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
 SLOT="0"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc gssapi idn ipv6 libedit libressl readline ssl xml"
+IUSE="caps doc gssapi idn ipv6 libedit libressl readline ssl xml"
 # no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
 
-CDEPEND="
+COMMON_DEPEND="
+       caps? ( sys-libs/libcap )
        ssl? (
                !libressl? ( dev-libs/openssl:0= )
                libressl? ( dev-libs/libressl:0= )
@@ -32,11 +33,13 @@ CDEPEND="
        !libedit? (
                readline? ( sys-libs/readline:0= )
        )"
-DEPEND="${CDEPEND}
-       virtual/pkgconfig"
-RDEPEND="${CDEPEND}
+DEPEND="${COMMON_DEPEND}"
+
+RDEPEND="${COMMON_EPEND}
        !<net-dns/bind-9.10.2"
 
+BDEPEND="virtual/pkgconfig"
+
 S="${WORKDIR}/${MY_P}"
 
 # bug 479092, requires networking
@@ -71,6 +74,7 @@ src_configure() {
                $(use_with xml libxml2)
                $(use_with gssapi)
                $(use_with readline)
+               $(use_enable caps linux-caps)
        )
 
        # bug 607400
index 5602d1fded9f73eae27cc204c65437a97d3cabef..46ab17b3d09f2fb1bc0dd9868ec715fc682f6d54 100644 (file)
@@ -17,10 +17,11 @@ SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${MY_P}.tar.gz"
 LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
 SLOT="0"
 KEYWORDS=""
-IUSE="doc gssapi idn ipv6 libedit libressl readline ssl xml"
+IUSE="caps doc gssapi idn ipv6 libedit libressl readline ssl xml"
 # no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
 
-CDEPEND="
+COMMON_DEPEND="
+       caps? ( sys-libs/libcap )
        ssl? (
                !libressl? ( dev-libs/openssl:0= )
                libressl? ( dev-libs/libressl:0= )
@@ -32,11 +33,14 @@ CDEPEND="
        !libedit? (
                readline? ( sys-libs/readline:0= )
        )"
-DEPEND="${CDEPEND}
-       virtual/pkgconfig"
-RDEPEND="${CDEPEND}
+
+DEPEND="${COMMON_DEPEND}"
+
+RDEPEND="${COMMON_DEPEND}
        !<net-dns/bind-9.10.2"
 
+BDEPEND="virtual/pkgconfig"
+
 S="${WORKDIR}/${MY_P}"
 
 # bug 479092, requires networking
@@ -69,6 +73,7 @@ src_configure() {
                $(use_with xml libxml2)
                $(use_with gssapi)
                $(use_with readline)
+               $(use_enable caps linux-caps)
        )
 
        # bug 607400