Gentoo Archives: gentoo-commits

From: Zamarin Arthur <arthurzam+gentoo@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-process/iotop-c/
Date: Fri, 23 Apr 2021 16:33:14
Message-Id: 1619195185.6d89c833628bb825e31e94489e12da601f54bb4b.arthurzam@gentoo
1 commit: 6d89c833628bb825e31e94489e12da601f54bb4b
2 Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 23 16:26:25 2021 +0000
4 Commit: Zamarin Arthur <arthurzam+gentoo <AT> gmail <DOT> com>
5 CommitDate: Fri Apr 23 16:26:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d89c833
7
8 sys-process/iotop-c: add NET_ADMIN capability to binary
9
10 Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>
11
12 sys-process/iotop-c/{iotop-c-1.17.ebuild => iotop-c-1.17-r1.ebuild} | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 diff --git a/sys-process/iotop-c/iotop-c-1.17.ebuild b/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
16 similarity index 89%
17 rename from sys-process/iotop-c/iotop-c-1.17.ebuild
18 rename to sys-process/iotop-c/iotop-c-1.17-r1.ebuild
19 index 033feb534..d33361f8b 100644
20 --- a/sys-process/iotop-c/iotop-c-1.17.ebuild
21 +++ b/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
22 @@ -3,6 +3,8 @@
23
24 EAPI=7
25
26 +inherit fcaps
27 +
28 DESCRIPTION="top utility for IO (C port)"
29 HOMEPAGE="https://github.com/Tomas-M/iotop"
30 SRC_URI="https://github.com/Tomas-M/iotop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
31 @@ -18,6 +20,10 @@ BDEPEND="virtual/pkgconfig"
32
33 S="${WORKDIR}/iotop-${PV}"
34
35 +FILECAPS=(
36 + cap_net_admin=eip usr/bin/iotop
37 +)
38 +
39 src_compile() {
40 emake V=1
41 }