commit: 6d89c833628bb825e31e94489e12da601f54bb4b
Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
AuthorDate: Fri Apr 23 16:26:25 2021 +0000
Commit: Zamarin Arthur <arthurzam+gentoo <AT> gmail <DOT> com>
CommitDate: Fri Apr 23 16:26:25 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d89c833
sys-process/iotop-c: add NET_ADMIN capability to binary
Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>
sys-process/iotop-c/{iotop-c-1.17.ebuild => iotop-c-1.17-r1.ebuild} | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys-process/iotop-c/iotop-c-1.17.ebuild
b/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
similarity index 89%
rename from sys-process/iotop-c/iotop-c-1.17.ebuild
rename to sys-process/iotop-c/iotop-c-1.17-r1.ebuild
index 033feb534..d33361f8b 100644
--- a/sys-process/iotop-c/iotop-c-1.17.ebuild
+++ b/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit fcaps
+
DESCRIPTION="top utility for IO (C port)"
HOMEPAGE="https://github.com/Tomas-M/iotop"
SRC_URI="https://github.com/Tomas-M/iotop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -18,6 +20,10 @@ BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/iotop-${PV}"
+FILECAPS=(
+ cap_net_admin=eip usr/bin/iotop
+)
+
src_compile() {
emake V=1
}