sys-apps/ethtool: Add "netlink" USE flag
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 18 May 2020 09:13:28 +0000 (11:13 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 18 May 2020 09:14:05 +0000 (11:14 +0200)
Thanks-to: Thomas Masper <thomas.masper@gmail.com>
Closes: https://bugs.gentoo.org/723292
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/ethtool/ethtool-5.6-r1.ebuild [moved from sys-apps/ethtool/ethtool-5.6.ebuild with 81% similarity]
sys-apps/ethtool/metadata.xml

similarity index 81%
rename from sys-apps/ethtool/ethtool-5.6.ebuild
rename to sys-apps/ethtool/ethtool-5.6-r1.ebuild
index 11b54c8996863c300f07ed1183f84fcc0daa322a..804cce9dde3e52cba5a5aca4ceafac38b5fcacb1 100644 (file)
@@ -10,5 +10,11 @@ SRC_URI="https://www.kernel.org/pub/software/network/ethtool/${P}.tar.xz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+netlink"
 
 DEPEND="app-arch/xz-utils"
+RDEPEND="netlink? ( net-libs/libmnl )"
+
+src_configure() {
+       econf $(use_enable netlink)
+}
index 760ac849b6bc6ef8f68dad9acdc70493eadf4a6c..81acd210e0ed28f8eb375a4c70dc5db7843cd886 100644 (file)
@@ -5,6 +5,9 @@
        <email>base-system@gentoo.org</email>
        <name>Gentoo Base System</name>
 </maintainer>
+<use>
+       <flag name="netlink">Enable netlink interface via <pkg>net-libs/libmnl</pkg></flag>
+</use>
 <longdescription lang="en">
        ethtool is a Linux utility for controlling network drivers and hardware,
        particularly for wired Ethernet devices. It can be used to: