diff options
-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.xml | 3 |
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: |