From: Craig Andrews Date: Sun, 3 Nov 2019 17:42:56 +0000 (-0500) Subject: net-analyzer/netdata: Add fcaps for xenstat.plugin X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e071290a0c5ba61ad4d1e8f9d43b43be1e5a70eb;p=gentoo.git net-analyzer/netdata: Add fcaps for xenstat.plugin Bug: https://github.com/gentoo/gentoo/pull/13515 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Craig Andrews --- diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild index 183c7fd636ca..5bf3bf1042d3 100644 --- a/net-analyzer/netdata/netdata-9999.ebuild +++ b/net-analyzer/netdata/netdata-9999.ebuild @@ -121,3 +121,9 @@ src_install() { insinto /etc/netdata doins system/netdata.conf } + +pkg_postinst() { + if use xen ; then + fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' + fi +}