1 |
commit: 8fe407c41bc92207ef7e061e902a7a209870c82f |
2 |
Author: Craig Andrews <candrews <AT> integralblue <DOT> com> |
3 |
AuthorDate: Mon Aug 1 00:30:34 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 00:44:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fe407c4 |
7 |
|
8 |
net-analyzer/netdata: set fcaps on /usr/libexec/netdata/plugins.d/apps.plugin |
9 |
|
10 |
Gentoo-bug: 590168 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/1989 |
12 |
|
13 |
.../netdata/{netdata-1.2.0.ebuild => netdata-1.2.0-r1.ebuild} | 6 +++++- |
14 |
net-analyzer/netdata/netdata-9999.ebuild | 6 +++++- |
15 |
2 files changed, 10 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/netdata-1.2.0.ebuild b/net-analyzer/netdata/netdata-1.2.0-r1.ebuild |
18 |
similarity index 91% |
19 |
rename from net-analyzer/netdata/netdata-1.2.0.ebuild |
20 |
rename to net-analyzer/netdata/netdata-1.2.0-r1.ebuild |
21 |
index 93b70ba..ad8fb33 100644 |
22 |
--- a/net-analyzer/netdata/netdata-1.2.0.ebuild |
23 |
+++ b/net-analyzer/netdata/netdata-1.2.0-r1.ebuild |
24 |
@@ -4,7 +4,7 @@ |
25 |
|
26 |
EAPI=6 |
27 |
|
28 |
-inherit linux-info systemd user |
29 |
+inherit linux-info systemd user fcaps |
30 |
|
31 |
if [[ ${PV} == "9999" ]] ; then |
32 |
EGIT_REPO_URI="git://github.com/firehol/${PN}.git" |
33 |
@@ -44,6 +44,10 @@ DEPEND="${RDEPEND} |
34 |
: ${NETDATA_USER:=netdata} |
35 |
: ${NETDATA_GROUP:=netdata} |
36 |
|
37 |
+FILECAPS=( |
38 |
+ 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
39 |
+) |
40 |
+ |
41 |
pkg_setup() { |
42 |
linux-info_pkg_setup |
43 |
|
44 |
|
45 |
diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild |
46 |
index 93b70ba..ad8fb33 100644 |
47 |
--- a/net-analyzer/netdata/netdata-9999.ebuild |
48 |
+++ b/net-analyzer/netdata/netdata-9999.ebuild |
49 |
@@ -4,7 +4,7 @@ |
50 |
|
51 |
EAPI=6 |
52 |
|
53 |
-inherit linux-info systemd user |
54 |
+inherit linux-info systemd user fcaps |
55 |
|
56 |
if [[ ${PV} == "9999" ]] ; then |
57 |
EGIT_REPO_URI="git://github.com/firehol/${PN}.git" |
58 |
@@ -44,6 +44,10 @@ DEPEND="${RDEPEND} |
59 |
: ${NETDATA_USER:=netdata} |
60 |
: ${NETDATA_GROUP:=netdata} |
61 |
|
62 |
+FILECAPS=( |
63 |
+ 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
64 |
+) |
65 |
+ |
66 |
pkg_setup() { |
67 |
linux-info_pkg_setup |