]> arthur.barton.de Git - netdata.git/commitdiff
spec: disable nfacct plugin on rhel
authorAlon Bar-Lev <alon.barlev@gmail.com>
Sat, 2 Apr 2016 16:19:13 +0000 (19:19 +0300)
committerAlon Bar-Lev <alon.barlev@gmail.com>
Sat, 2 Apr 2016 20:11:22 +0000 (23:11 +0300)
Thanks-To: sketch242 <github@rednsx.org>
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
netdata.spec.in

index 2fcf48340c12aa893767456c159ccb12be2516fc..53841acdd46550cd3162cc9f60dcd9a230efa1dc 100644 (file)
@@ -7,11 +7,13 @@ URL:          http://firehol.org
 Source:                %{name}-@PACKAGE_VERSION@.tar.bz2
 
 BuildRequires: libmnl-devel
-BuildRequires: libnetfilter_acct-devel
 BuildRequires: zlib-devel
 Requires:      libmnl
-Requires:      libnetfilter_acct
 Requires:      zlib
+%if !0%{?rhel}
+BuildRequires: libnetfilter_acct-devel
+Requires:      libnetfilter_acct
+%endif
 
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -32,10 +34,12 @@ getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/n
 %build
 %configure \
        --docdir="%{_docdir}/%{name}-%{version}" \
-       --enable-plugin-nfacct \
        --with-zlib \
        --with-math \
        --with-user=netdata \
+%if !0%{?rhel}
+       --enable-plugin-nfacct \
+%endif
        %{?conf}
 make %{?_smp_mflags}