diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-03 16:42:32 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-03 16:42:32 +0200 |
commit | deb4b2518e55ca3550dcffccf5af4f1bdc2b264d (patch) | |
tree | 33757bb76cd783ed7b3fc31749d34a4d255cd046 /netdata.spec.in | |
parent | 547d4e9cf289d36abafcebf4c02b966afa31e349 (diff) |
do not attempt to find cgroup-network on older distros; fixes #3169
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index cd8ef6d33c..87c44dae56 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -10,10 +10,12 @@ %bcond_without systemd # systemd %bcond_with nfacct # build with nfacct plugin %bcond_with freeipmi # build with freeipmi plugin +%bcond_with netns # build with netns support (cgroup-network) %if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1140 %else %undefine with_systemd +%undefine with_netns %endif %if %{with systemd} @@ -194,11 +196,13 @@ rm -rf "${RPM_BUILD_ROOT}" %caps(cap_dac_read_search,cap_sys_ptrace=ep) %attr(0555,root,root) %{_libexecdir}/%{name}/plugins.d/apps.plugin +%if %{with netns} # 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 +%endif %if %{with freeipmi} %caps(cap_setuid=ep) %attr(4555,root,root) %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin @@ -227,10 +231,10 @@ rm -rf "${RPM_BUILD_ROOT}" * Sun Dec 17 2017 Costa Tsaousis <costa@tsaousis.gr> - 1.9.0-1 Please check full changelog at github. https://github.com/firehol/netdata/releases -* Mon Sep 17 2017 Costa Tsaousis <costa@tsaousis.gr> - 1.8.0-1 +* Sun Sep 17 2017 Costa Tsaousis <costa@tsaousis.gr> - 1.8.0-1 This is mainly a bugfix release. Please check full changelog at github. -* Mon Jul 16 2017 Costa Tsaousis <costa@tsaousis.gr> - 1.7.0-1 +* Sun Jul 16 2017 Costa Tsaousis <costa@tsaousis.gr> - 1.7.0-1 - netdata is now a fully featured statsd server - new installation options - metrics streaming and replication improvements |