net-analyzer/netdata: Add fcaps for xenstat.plugin
authorCraig Andrews <candrews@gentoo.org>
Sun, 3 Nov 2019 17:42:56 +0000 (12:42 -0500)
committerCraig Andrews <candrews@gentoo.org>
Sun, 3 Nov 2019 17:43:24 +0000 (12:43 -0500)
Bug: https://github.com/gentoo/gentoo/pull/13515
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Craig Andrews <candrews@gentoo.org>
net-analyzer/netdata/netdata-9999.ebuild

index 183c7fd636cab09640dbe08ee567c0c50805ff59..5bf3bf1042d3a5caa4faed01a52bca81183cc287 100644 (file)
@@ -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
+}