From 84ad1eca5c3aada90155f03ee408efa0a2df4b58 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Mon, 18 May 2020 11:13:28 +0200 Subject: [PATCH] sys-apps/ethtool: Add "netlink" USE flag Thanks-to: Thomas Masper Closes: https://bugs.gentoo.org/723292 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Lars Wendler --- .../ethtool/{ethtool-5.6.ebuild => ethtool-5.6-r1.ebuild} | 6 ++++++ sys-apps/ethtool/metadata.xml | 3 +++ 2 files changed, 9 insertions(+) rename sys-apps/ethtool/{ethtool-5.6.ebuild => ethtool-5.6-r1.ebuild} (81%) diff --git a/sys-apps/ethtool/ethtool-5.6.ebuild b/sys-apps/ethtool/ethtool-5.6-r1.ebuild similarity index 81% rename from sys-apps/ethtool/ethtool-5.6.ebuild rename to 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 @@ base-system@gentoo.org Gentoo Base System + + Enable netlink interface via net-libs/libmnl + ethtool is a Linux utility for controlling network drivers and hardware, particularly for wired Ethernet devices. It can be used to: -- 2.26.2