From: Craig Andrews Date: Mon, 1 Aug 2016 00:30:34 +0000 (-0400) Subject: net-analyzer/netdata: set fcaps on /usr/libexec/netdata/plugins.d/apps.plugin X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8fe407c41bc92207ef7e061e902a7a209870c82f;p=gentoo.git net-analyzer/netdata: set fcaps on /usr/libexec/netdata/plugins.d/apps.plugin Gentoo-bug: 590168 Closes: https://github.com/gentoo/gentoo/pull/1989 --- 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 93b70ba211ab..ad8fb3303138 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 93b70ba211ab..ad8fb3303138 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