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>
This commit is contained in:
Lars Wendler
2020-05-18 11:13:28 +02:00
parent 87c8bb6551
commit 84ad1eca5c
2 changed files with 9 additions and 0 deletions

View 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)
}

View 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: