@cryptotaxi247 / netdata-1 / commits / 68dc76f15

spec: disable nfacct plugin on rhel

Thanks-To: sketch242 <github@rednsx.org> Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>

Alon Bar-Lev committed Apr 2, 2016 at 19:19 UTC 68dc76f15db28dd0cb4874ffa7a4f725b429cadb
1 file changed +7 -3
netdata.spec.in
+7 -3
@@ -7,11 +7,13 @@ URL: http://firehol.org
7 Source: %{name}-@PACKAGE_VERSION@.tar.bz2
8
9 BuildRequires: libmnl-devel
10 -BuildRequires: libnetfilter_acct-devel
10 BuildRequires: zlib-devel
11 Requires: libmnl
13 -Requires: libnetfilter_acct
12 Requires: zlib
13 +%if !0%{?rhel}
14 +BuildRequires: libnetfilter_acct-devel
15 +Requires: libnetfilter_acct
16 +%endif
17
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
@@ -32,10 +34,12 @@ getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/n
34 %build
35 %configure \
36 --docdir="%{_docdir}/%{name}-%{version}" \
35 - --enable-plugin-nfacct \
37 --with-zlib \
38 --with-math \
39 --with-user=netdata \
40 +%if !0%{?rhel}
41 + --enable-plugin-nfacct \
42 +%endif
43 %{?conf}
44 make %{?_smp_mflags}
45