commit dbcc502dc422d7aaa692095140e2d08c2aff25e5
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Apr 5 20:52:12 2016 +0300

    new, version 1.0.0
    
    based on .spec.in from package dist

 netdata.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
---
diff --git a/netdata.spec b/netdata.spec
new file mode 100644
index 0000000..a60e006
--- /dev/null
+++ b/netdata.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without systemd         # systemd
+%bcond_with    nfacct          # build with nfacct plugin
+
+Summary:       Linux real time system monitoring, over the web
+Name:          netdata
+Version:       1.0.0
+Release:       0.1
+License:       GPL v2+
+Group:         Applications/System
+Source0:       
https://github.com/firehol/netdata/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 53a432f8849da6bd49b0853dd79551c5
+URL:           http://netdata.firehol.org/
+BuildRequires: libmnl-devel
+%{?with_nfacct:BuildRequires:  libnetfilter_acct-devel}
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+netdata is the fastest way to visualize metrics. It is a resource
+efficient, highly optimized system for collecting and visualizing any
+type of realtime timeseries data, from CPU usage, disk activity, SQL
+queries, API calls, web site visitors, etc.
+
+netdata tries to visualize the truth of now, in its greatest detail,
+so that you can get insights of what is happening now and what just
+happened, on your systems and applications.
+
+%prep
+%setup -q
+
+%build
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --with-zlib \
+       --with-math \
+       %{__enable_disable nfacct plugin-nfacct} \
+       --with-user=netdata
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT/var/{cache,log}/netdata/.keep
+
+install -d $RPM_BUILD_ROOT%{systemdunitdir}
+cp -p system/netdata-systemd $RPM_BUILD_ROOT%{systemdunitdir}/netdata.service
+
+%if 0
+%pre
+%groupadd -r netdata
+%useradd -r -g netdata -c netdata -s /sbin/nologin -d / netdata
+
+%post
+%systemd_post netdata.service
+
+%preun
+%systemd_preun netdata.service
+
+%postun
+%systemd_postun_with_restart netdata.service
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
+%attr(755,root,root) %{_sbindir}/%{name}
+%{_datadir}/%{name}
+%{_libexecdir}/%{name}
+%{systemdunitdir}/netdata.service
+%attr(755,netdata,netdata) %dir %{_localstatedir}/cache/%{name}
+%attr(755,netdata,netdata) %dir %{_localstatedir}/log/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/netdata.git/commitdiff/dbcc502dc422d7aaa692095140e2d08c2aff25e5

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to