SPECS: collectd.spec (NEW) - initial release (NFY) created from ...
wiget
wiget at pld-linux.org
Mon Feb 6 14:22:19 CET 2006
Author: wiget Date: Mon Feb 6 13:22:19 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial release (NFY)
created from template.spec
---- Files affected:
SPECS:
collectd.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/collectd.spec
diff -u /dev/null SPECS/collectd.spec:1.1
--- /dev/null Mon Feb 6 14:22:19 2006
+++ SPECS/collectd.spec Mon Feb 6 14:22:13 2006
@@ -0,0 +1,116 @@
+# $Revision$, $Date$
+# 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*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/02/06 13:22:13 wiget
+- initial release (NFY)
+ created from template.spec
+
================================================================
More information about the pld-cvs-commit
mailing list