-# TODO:
-# - package contrib scripts as %doc
-# - perl modules with Collectd classes package to separate package
-# - Disabled modules:
-# apple_sensors . . . no (obvious)
-# ipvs . . . . . . . no (ip_vs.h not found - llh to be fixed)
-# libvirt . . . . . . no (requires library)
-# multimeter . . . . no ?
-# onewire . . . . . . no (needs libowfs)
-# perl . . . . . . . no (buggy perl: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467072)
-# rrdcached . . . . . no (requires rrdtool >= 1.4.0)
-# tape . . . . . . . no ?
-# - logrotate file for logfile plugin
-# - %desc -l pl for plugins
-#
# Conditional build:
%bcond_without curl # apache, ascent, bind, curl and nginx plugins
%bcond_without dns # DNS plugin
Summary: Collects system information in RRD files
Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
Name: collectd
-Version: 4.6.2
+Version: 4.7.0
Release: 2
License: GPL v2
Group: Daemons
-Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: 9eee46a6330780d6e6b41155b159f4f9
+Source0: http://collectd.org/files/%{name}-%{version}.tar.bz2
+# Source0-md5: 8740670913a7740f976122f3070e592b
Source1: %{name}.conf
Source2: %{name}.init
Source3: %{name}-http.conf
Source10: %{name}-df.conf
Source11: %{name}-rrdtool.conf
Patch0: %{name}-collection.patch
+Patch1: %{name}-as_needed.patch
URL: http://collectd.org/
%{?with_ipmi:BuildRequires: OpenIPMI-devel >= 2.0.14-3}
BuildRequires: autoconf
%description collection
Web script for collectd.
+%package conntrack
+Summary: conntrack-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka conntrack dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description conntrack
+The conntrack-plugin collects the connection tracking table size.
+
%package cpu
Summary: cpu-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka cpu dla collectd
sessions of a web server or simply the number of files in your home
directory.
+%package fscache
+Summary: fscache-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka fscache dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description fscache
+The fscache-plugin collects statistics about Linux file-system based caching
+framework.
+
%package hddtemp
Summary: hddtemp-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
running, sleeping, zombies, etc.). In addition to that, it can select
detailed statistics about selected processes, grouped by name.
+%package protocols
+Summary: protocols-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka protocols dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description protocols
+The protocols-plugin provides information about network protocols, such as
+IP, TCP and UDP.
+
%package rrdtool
Summary: rrdtool-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
%description syslog
Syslog plugin for collectd.
+%package table
+Summary: table-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka table dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description table
+The table-plugin provides parsing for table-like structured files,
+such as many files beneath /proc.
+
%package target_notification
Summary: target_notification-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka target_notification dla collectd
polls interesting global and virtual server data. The plugin can query only
one physical server but unlimited virtual servers.
+%package ted
+Summary: ted-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka ted dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description ted
+The TED-plugin reads power consumption measurements from “The Energy Detective”
+(TED).
+
%package thermal
Summary: thermal-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd
other applications, such as monitoring, or submit externally collected
values to collectd.
+%package uptime
+Summary: uptime-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka uptime dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description uptime
+The uptime-plugin can collect the server's uptime.
+
%package users
Summary: users-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka users dla collectd
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
%module_scripts ascent
%module_scripts battery
%module_scripts bind
-%module_scripts cpufreq
+%module_scripts conntrack
%module_scripts cpu
+%module_scripts cpufreq
%module_scripts csv
%module_scripts curl
%module_scripts dbi
%module_scripts entropy
%module_scripts exec
%module_scripts filecount
+%module_scripts fscache
%module_scripts hddtemp
%module_scripts interface
%module_scripts ipmi
%module_scripts postgresql
%module_scripts powerdns
%module_scripts processes
+%module_scripts protocols
%module_scripts rrdtool
%module_scripts sensors
%module_scripts serial
%module_scripts snmp
%module_scripts swap
%module_scripts syslog
+%module_scripts table
%module_scripts tail
%module_scripts target_notification
%module_scripts target_replace
%module_scripts target_set
%module_scripts tcpconns
%module_scripts teamspeak2
+%module_scripts ted
%module_scripts thermal
%module_scripts unixsock
+%module_scripts uptime
%module_scripts users
%module_scripts uuid
%module_scripts vmem
%endif
%endif
+%files conntrack
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/conntrack.conf
+%attr(755,root,root) %{_libdir}/%{name}/conntrack.so
+
%files cpu
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
%attr(755,root,root) %{_libdir}/%{name}/filecount.so
+%files fscache
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/fscache.conf
+%attr(755,root,root) %{_libdir}/%{name}/fscache.so
+
%files hddtemp
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
%attr(755,root,root) %{_libdir}/%{name}/processes.so
+%files protocols
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/protocols.conf
+%attr(755,root,root) %{_libdir}/%{name}/protocols.so
+
%if %{with rrd}
%files rrdtool
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
%attr(755,root,root) %{_libdir}/%{name}/syslog.so
+%files table
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/table.conf
+%attr(755,root,root) %{_libdir}/%{name}/table.so
+
%files tail
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
%attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
+%files ted
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ted.conf
+%attr(755,root,root) %{_libdir}/%{name}/ted.so
+
%files thermal
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
%{_mandir}/man5/collectd-unixsock.5*
+%files uptime
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uptime.conf
+%attr(755,root,root) %{_libdir}/%{name}/uptime.so
+
%files users
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf