summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-05-18 11:13:28 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-05-18 11:14:05 +0200
commit84ad1eca5c3aada90155f03ee408efa0a2df4b58 (patch)
tree9348f8c6df0b614bf1f3e32e1ca6c6dee3dedd39 /sys-apps/ethtool
parentdev-libs/libuv: DEPEND => BDEPEND (diff)
downloadgentoo-84ad1eca5c3aada90155f03ee408efa0a2df4b58.tar.gz
gentoo-84ad1eca5c3aada90155f03ee408efa0a2df4b58.tar.bz2
gentoo-84ad1eca5c3aada90155f03ee408efa0a2df4b58.zip
sys-apps/ethtool: Add "netlink" USE flag
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>
Diffstat (limited to 'sys-apps/ethtool')
-rw-r--r--sys-apps/ethtool/ethtool-5.6-r1.ebuild (renamed from sys-apps/ethtool/ethtool-5.6.ebuild)6
-rw-r--r--sys-apps/ethtool/metadata.xml3
2 files changed, 9 insertions, 0 deletions
diff --git a/sys-apps/ethtool/ethtool-5.6.ebuild b/sys-apps/ethtool/ethtool-5.6-r1.ebuild
index 11b54c899686..804cce9dde3e 100644
--- a/sys-apps/ethtool/ethtool-5.6.ebuild
+++ b/sys-apps/ethtool/ethtool-5.6-r1.ebuild
@@ -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)
+}
diff --git a/sys-apps/ethtool/metadata.xml b/sys-apps/ethtool/metadata.xml
index 760ac849b6bc..81acd210e0ed 100644
--- a/sys-apps/ethtool/metadata.xml
+++ b/sys-apps/ethtool/metadata.xml
@@ -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: