blob: af73a7b6d027d6e64eff26797a6b71e2b6330099 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
Summary: Linux real time system monitoring, over the web
Name: @PACKAGE_NAME@
Version: @PACKAGE_RPM_VERSION@
Release: @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
License: GPLv2+
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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Linux real time system monitoring, over the web!
%pre
getent group netdata > /dev/null || groupadd -r netdata
getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/nologin -d / netdata
%global ovirt_create_user_engine \
%_ovirt_create_user %{engine_user} %{engine_uid} %{engine_group} %{engine_gid} "%{ovirt_user_description}" %{engine_state}
%prep
%setup -q -n %{name}-@PACKAGE_VERSION@
%build
%configure \
--docdir="%{_docdir}/%{name}-%{version}" \
--enable-plugin-plugin-nfacct \
--with-zlib \
--with-math \
--with-user=netdata \
%{?conf}
make %{?_smp_mflags}
%install
rm -rf "%{buildroot}"
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
find "%{buildroot}" -name .keep -exec rm {} \;
%files
%attr(4755, root, root) %{_libexecdir}/%{name}/plugins.d/apps.plugin
%attr(-, netdata, netdata) %dir %{_localstatedir}/cache/%{name}/
%attr(-, netdata, netdata) %dir %{_localstatedir}/log/%{name}/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_libexecdir}/%{name}/
%{_sysconfdir}/%{name}/
%changelog
* Sun Nov 15 2015 Alon Bar-Lev <alonbl@redhat.com> - 1.0.0-1
- Initial add.
|