# $Id$ # Authority: dag %{?el3:%define _without_lmsensors 1} Summary: Statistics collection daemon for filling RRD files Name: collectd Version: 4.9.0 Release: 1%{?dist} License: GPL Group: System Environment/Daemons URL: http://collectd.org/ Source: http://collectd.org/files/collectd-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: mysql-devel BuildRequires: perl BuildRequires: perl-rrdtool BuildRequires: rrdtool-devel BuildRequires: which %{!?_without_lmsensors:BuildRequires: lm_sensors-devel} Obsoletes: collectd-apache <= %{version}-%{release} Provides: collectd-apache = %{version}-%{release} Obsoletes: collectd-mysql <= %{version}-%{release} Provides: collectd-mysql = %{version}-%{release} Obsoletes: collectd-sensors <= %{version}-%{release} Provides: collectd-sensors = %{version}-%{release} %description collectd is a small daemon written in C for performance. It reads various system statistics and updates RRD files, creating them if neccessary. Since the daemon doesn't need to startup every time it wants to update the files it's very fast and easy on the system. Also, the statistics are very fine grained since the files are updated every 10 seconds. %package devel Summary: Header files, libraries and development documentation for %{name}. Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup %{__perl} -pi.orig -e 's|-Werror||g' Makefile.in */Makefile.in %build ### FIXME: --with-libmysql support not working %configure \ --disable-static \ --with-libmysql="%{_libdir}/mysql/" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf %{__install} -Dp -m0755 contrib/fedora/init.d-collectd %{buildroot}%{_initrddir}/collectd %{__install} -Dp -m0755 contrib/collection.cgi %{buildroot}%{_localstatedir}/www/cgi-bin/collection.cgi %{__install} -d -m0755 %{buildroot}%{_localstatedir}/lib/collectd/ ### Clean up docs find contrib/ -type f -exec %{__chmod} a-x {} \; %post /sbin/chkconfig --add collectd %preun if [ $1 -eq 0 ]; then /sbin/service collectd stop &>/dev/null || : /sbin/chkconfig --del collectd fi %postun /sbin/service collectd condrestart &>/dev/null || : %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog COPYING INSTALL NEWS README contrib/ %doc %{_mandir}/man1/collectd.1* %doc %{_mandir}/man1/collectdmon.1* %doc %{_mandir}/man1/collectd-nagios.1* %doc %{_mandir}/man3/Collectd::Unixsock.3pm* %doc %{_mandir}/man5/collectd.conf.5* %doc %{_mandir}/man5/collectd-email.5* %doc %{_mandir}/man5/collectd-exec.5* %doc %{_mandir}/man5/collectd-java.5* %doc %{_mandir}/man5/collectd-perl.5* %doc %{_mandir}/man5/collectd-python.5* %doc %{_mandir}/man5/collectd-snmp.5* %doc %{_mandir}/man5/collectd-unixsock.5* %doc %{_mandir}/man5/types.db.5* %config(noreplace) %{_sysconfdir}/collectd.conf %config %{_initrddir}/collectd %{_bindir}/collectd-nagios %{_datadir}/collectd/ %{_libdir}/collectd/ %{_libdir}/libcollectdclient.so.* %{_localstatedir}/www/cgi-bin/collection.cgi %{_sbindir}/collectd %{_sbindir}/collectdmon %dir %{_localstatedir}/lib/collectd/ %{perl_sitelib}/Collectd.pm %{perl_sitelib}/Collectd/ %exclude %{perl_archlib} %exclude %{perl_sitearch} %files devel %defattr(-, root, root, 0755) %{_includedir}/collectd/ %{_libdir}/libcollectdclient.so %{_libdir}/pkgconfig/libcollectdclient.pc %exclude %{_libdir}/collectd/*.la %exclude %{_libdir}/libcollectdclient.la %changelog * Sat Dec 26 2009 Dag Wieers - 4.9.0-1 - Updated to release 4.9.0. * Thu Sep 24 2009 Dag Wieers - 4.8.0-1 - Updated to release 4.8.0. * Wed Jul 29 2009 Dag Wieers - 4.7.2-1 - Updated to release 4.7.2. * Sun Jul 12 2009 Dag Wieers - 4.7.1-1 - Updated to release 4.7.1. * Fri Jul 03 2009 Christoph Maser - 4.6.3-1 - Updated to release 4.6.3. * Mon Mar 23 2009 Dag Wieers - 4.6.2-1 - Updated to release 4.6.2. * Sun Sep 14 2008 Dag Wieers - 4.5.0-1 - Updated to release 4.5.0. * Tue Jul 29 2008 Dag Wieers - 4.4.2-1 - Updated to release 4.4.2. * Sun Apr 27 2008 Dag Wieers - 4.3.3-1 - Updated to release 4.3.3. * Sat Apr 05 2008 Dag Wieers - 4.3.2-1 - Updated to release 4.3.2. * Tue Feb 26 2008 Dag Wieers - 4.3.0-1 - Updated to release 4.3.0. * Tue Dec 18 2007 Dag Wieers - 4.2.2-1 - Updated to release 4.2.2. * Fri Nov 09 2007 Dag Wieers - 4.2.1-1 - Updated to release 4.2.1. * Mon Oct 29 2007 Dag Wieers - 4.2.0-1 - Updated to release 4.2.0. * Mon Oct 29 2007 Dag Wieers - 3.11.5-1 - Initial package. (using DAR)