3 %bcond_without systemd # systemd
4 %bcond_without nfacct # build with nfacct plugin
6 %if 0%{?fedora} || 0%{?rhel} >= 7
11 Summary: Linux real time system monitoring, over the web
13 Version: @PACKAGE_RPM_VERSION@
14 Release: @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
16 Group: Applications/System
17 Source0: http://firehol.org/download/netdata/releases/v@PACKAGE_VERSION@/%{name}-@PACKAGE_VERSION@.tar.xz
18 URL: http://netdata.firehol.org/
19 BuildRequires: pkgconfig
21 BuildRequires: zlib-devel
23 BuildRequires: libmnl-devel
24 BuildRequires: libnetfilter_acct-devel
27 BuildRequires: systemd
28 Requires(post): systemd
29 Requires(preun): systemd
30 Requires(postun): systemd
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 netdata is the fastest way to visualize metrics. It is a resource
36 efficient, highly optimized system for collecting and visualizing any
37 type of realtime timeseries data, from CPU usage, disk activity, SQL
38 queries, API calls, web site visitors, etc.
40 netdata tries to visualize the truth of now, in its greatest detail,
41 so that you can get insights of what is happening now and what just
42 happened, on your systems and applications.
45 %setup -q -n %{name}-@PACKAGE_VERSION@
49 --docdir=%{_docdir}/%{name}-%{version} \
52 %{?with_nfacct:--enable-plugin-nfacct} \
54 %{__make} %{?_smp_mflags}
57 rm -rf $RPM_BUILD_ROOT
58 %{__make} %{?_smp_mflags} install \
59 DESTDIR=$RPM_BUILD_ROOT
61 find $RPM_BUILD_ROOT -name .keep | xargs rm
64 install -d $RPM_BUILD_ROOT%{_unitdir}
65 install -m 644 -p system/netdata.service $RPM_BUILD_ROOT%{_unitdir}/netdata.service
69 getent group netdata > /dev/null || groupadd -r netdata
70 getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/nologin -d / netdata
74 %systemd_post netdata.service
77 %systemd_preun netdata.service
80 %systemd_postun_with_restart netdata.service
84 rm -rf $RPM_BUILD_ROOT
87 %attr(-,netdata,netdata) %dir %{_localstatedir}/cache/%{name}
88 %attr(-,netdata,netdata) %dir %{_localstatedir}/log/%{name}
89 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
90 %dir %{_sysconfdir}/%{name}
91 %{?with_systemd:%{_unitdir}/netdata.service}
93 %{_libexecdir}/%{name}
97 * Tue Mar 22 2016 Costa Tsaousis <costa@tsaousis.gr> - 1.0.0-1
98 - First public release.
99 * Sun Nov 15 2015 Alon Bar-Lev <alonbl@redhat.com> - 0.0.0-1