commit: 8fe407c41bc92207ef7e061e902a7a209870c82f Author: Craig Andrews <candrews <AT> integralblue <DOT> com> AuthorDate: Mon Aug 1 00:30:34 2016 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Mon Aug 1 00:44:45 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fe407c4
net-analyzer/netdata: set fcaps on /usr/libexec/netdata/plugins.d/apps.plugin Gentoo-bug: 590168 Closes: https://github.com/gentoo/gentoo/pull/1989 .../netdata/{netdata-1.2.0.ebuild => netdata-1.2.0-r1.ebuild} | 6 +++++- net-analyzer/netdata/netdata-9999.ebuild | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/net-analyzer/netdata/netdata-1.2.0.ebuild b/net-analyzer/netdata/netdata-1.2.0-r1.ebuild similarity index 91% rename from net-analyzer/netdata/netdata-1.2.0.ebuild rename to net-analyzer/netdata/netdata-1.2.0-r1.ebuild index 93b70ba..ad8fb33 100644 --- a/net-analyzer/netdata/netdata-1.2.0.ebuild +++ b/net-analyzer/netdata/netdata-1.2.0-r1.ebuild @@ -4,7 +4,7 @@ EAPI=6 -inherit linux-info systemd user +inherit linux-info systemd user fcaps if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="git://github.com/firehol/${PN}.git" @@ -44,6 +44,10 @@ DEPEND="${RDEPEND} : ${NETDATA_USER:=netdata} : ${NETDATA_GROUP:=netdata} +FILECAPS=( + 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' +) + pkg_setup() { linux-info_pkg_setup diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild index 93b70ba..ad8fb33 100644 --- a/net-analyzer/netdata/netdata-9999.ebuild +++ b/net-analyzer/netdata/netdata-9999.ebuild @@ -4,7 +4,7 @@ EAPI=6 -inherit linux-info systemd user +inherit linux-info systemd user fcaps if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="git://github.com/firehol/${PN}.git" @@ -44,6 +44,10 @@ DEPEND="${RDEPEND} : ${NETDATA_USER:=netdata} : ${NETDATA_GROUP:=netdata} +FILECAPS=( + 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' +) + pkg_setup() { linux-info_pkg_setup
