summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-11-01 23:27:54 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-11-01 23:27:54 +0200
commit86ab940589ae305364ab29d0044f736d25f1b63d (patch)
tree9830b56cb6b970e3ba2a592bfc935767b930b68a /netdata.spec.in
parent4f0ca78b868b37c6dce58235c6ef3bf453026599 (diff)
add cgroup-network and freeipmi.plugin to netdata.spec
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index eef2a08962..f6baa5f004 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -9,6 +9,7 @@
# Conditional build:
%bcond_without systemd # systemd
%bcond_with nfacct # build with nfacct plugin
+%bcond_with freeipmi # build with freeipmi plugin
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1140
%else
@@ -98,6 +99,11 @@ Requires: libmnl
Requires: libnetfilter_acct
%endif
+%if %{with freeipmi}
+BuildRequires: freeipmi-devel
+Requires: freeipmi
+%endif
+
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
Requires(post): libcap
@@ -124,6 +130,7 @@ happened, on your systems and applications.
--with-zlib \
--with-math \
%{?with_nfacct:--enable-plugin-nfacct} \
+ %{?with_freeipmi:--enable-plugin-freeipmi} \
--with-user=netdata
%{__make} %{?_smp_mflags}
@@ -187,6 +194,16 @@ rm -rf "${RPM_BUILD_ROOT}"
%caps(cap_dac_read_search,cap_sys_ptrace=ep) %attr(0555,root,root) %{_libexecdir}/%{name}/plugins.d/apps.plugin
+# cgroup-network detects the network interfaces of CGROUPs
+# it must be able to use setns() and run cgroup-network-helper.sh as root
+# the helper script reads /proc/PID/fdinfo/* files, runs virsh, etc.
+%caps(cap_setuid=ep) %attr(4555,root,root) %{_libexecdir}/%{name}/plugins.d/cgroup-network
+%attr(0555,root,root) %{_libexecdir}/%{name}/plugins.d/cgroup-network-helper.sh
+
+%if %{with freeipmi}
+%caps(cap_setuid=ep) %attr(4555,root,root) %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin
+%endif
+
%attr(0700,netdata,netdata) %dir %{_localstatedir}/cache/%{name}
%attr(0700,netdata,netdata) %dir %{_localstatedir}/log/%{name}
%attr(0700,netdata,netdata) %dir %{_localstatedir}/lib/%{name}