From 373d486ffec236b3d0fafb8cf826f31329f497b6 Mon Sep 17 00:00:00 2001 From: Artur Frysiak Date: Mon, 6 Feb 2006 13:22:13 +0000 Subject: [PATCH] - initial release (NFY) created from template.spec Changed files: collectd.spec -> 1.1 --- collectd.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 collectd.spec diff --git a/collectd.spec b/collectd.spec new file mode 100644 index 0000000..8fe6e7f --- /dev/null +++ b/collectd.spec @@ -0,0 +1,104 @@ +# TODO: +# - mysql subpackage +# - lm_sensors subpackage +# - hddtemp subpackage +# - initscripts for local/network mode (subpackage ?) +# - initscripts for server mode (subpackage ?) +# - collection CGI script +# - package contrib scripts as %doc +Summary: Collects system information in rrd files +Name: collectd +Version: 3.7.1 +Release: 0.1 +License: GPL v2 +Group: Unknow +Source0: http://verplant.org/collectd/files/%{name}-%{version}.tar.gz +# Source0-md5: dc2120fad388e5fc8bc486b4fcadc68e +URL: http://verplant.org/collectd/ +BuildRequires: rpmbuild(macros) >= 1.228 +Requires(post,preun): /sbin/chkconfig +BuildRequires: libstatgrab-devel >= 0.12 +BuildRequires: autoconf +BuildRequires: automake +#BuildRequires: intltool +BuildRequires: libtool +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +collectd is a small daemon which collects system information every 10 seconds +and writes the results in an RRD-file. + +In contrast to most similar software, collectd is not a script but written in +plain C for performance and portability. As a daemon it stays in memory, so +there is no need to start up a heavy interpreter every time new values should +be logged. This allows collectd to have a 10 second resolution while being nice +to the system. + +%prep +%setup -q + +%build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --with-libstatgrab=/usr \ + --with-lm-sensors=/usr \ + --with-libmysql=/usr \ +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install %{SOURCE2} $RPM_BUILD_ROOT/etc/collectd.conf + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add %{name} +%service %{name} restart + +%preun +if [ "$1" = "0" ]; then + %service -q %{name} stop + /sbin/chkconfig --del %{name} +fi + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog README TODO + +%attr(755,root,root) %{_sbindir}/collectd +%dir %{_libdir}/%{name} +%attr(755,root,root) %{_libdir}/%{name}/battery.so +%attr(755,root,root) %{_libdir}/%{name}/cpu.so +%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so +%attr(755,root,root) %{_libdir}/%{name}/df.so +%attr(755,root,root) %{_libdir}/%{name}/disk.so +%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so +%attr(755,root,root) %{_libdir}/%{name}/load.so +%attr(755,root,root) %{_libdir}/%{name}/memory.so +%attr(755,root,root) %{_libdir}/%{name}/mysql.so +%attr(755,root,root) %{_libdir}/%{name}/nfs.so +%attr(755,root,root) %{_libdir}/%{name}/ping.so +%attr(755,root,root) %{_libdir}/%{name}/processes.so +%attr(755,root,root) %{_libdir}/%{name}/sensors.so +%attr(755,root,root) %{_libdir}/%{name}/serial.so +%attr(755,root,root) %{_libdir}/%{name}/swap.so +%attr(755,root,root) %{_libdir}/%{name}/tape.so +%attr(755,root,root) %{_libdir}/%{name}/traffic.so +%attr(755,root,root) %{_libdir}/%{name}/users.so + +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf + +#%attr(754,root,root) /etc/rc.d/init.d/%{name} +#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} + +%{_mandir}/man1/collectd.1* +%{_mandir}/man5/collectd.conf.5* -- 2.43.0