# perl . . . . . . . no (needs libperl)
# tape . . . . . . . no ?
# - logrotate file for logfile plugin
+# - %desc -l pl for plugins
#
# Conditional build:
%bcond_without dns # ???
Summary: Collects system information in RRD files
Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
Name: collectd
-Version: 4.5.1
-Release: 2.1
+Version: 4.5.2
+Release: 1
License: GPL v2
Group: Daemons
Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: ab900d15662859b8793abf99eda15c29
+# Source0-md5: 464f44da322f78dcc9c12eeb52d3ad8d
Source1: %{name}.conf
Source2: %{name}.init
Source3: %{name}-http.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: curl-devel
+BuildRequires: hal-devel
%{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4}
BuildRequires: libesmtp-devel
BuildRequires: libnetlink-devel
BuildRequires: libpcap-devel
BuildRequires: libstatgrab-devel >= 0.12
BuildRequires: libtool
+BuildRequires: libxml2-devel
BuildRequires: lm_sensors-devel
BuildRequires: mysql-devel
BuildRequires: nut-devel
BuildRequires: perl-devel
+BuildRequires: postgresql-devel
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: rrdtool-devel
BuildRequires: net-snmp-devel
Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _pkglibdir /var/lib/%{name}
-%define _webapps /etc/webapps
-%define _webapp %{name}
-%define _webappdir %{_webapps}/%{_webapp}
-%define _appdir %{_datadir}/%{_webapp}
+%define _pkglibdir %{_sharedstatedir}/%{name}
+%define _webapps /etc/webapps
+%define _webapp %{name}
+%define _webappdir %{_webapps}/%{_webapp}
+%define _appdir %{_datadir}/%{_webapp}
%description
collectd is a small daemon which collects system information every 10
battery's voltage.
%package collection
-Summary: Web script for collectiond
-Summary(pl_PL.UTF-8): Web script for collectiond
+Summary: Web script for collectd
+Summary(pl_PL.UTF-8): Web script for collectd
Group: Applications/WWW
Requires: %{name} = %{version}-%{release}
Requires: perl(CGI)
Requires: perl(RRDs)
Requires: perl(URI::Escape)
Requires: webserver(cgi)
-# It might be not the best choice:
-Suggests: fonts-TTF-RedHat-liberation
+Suggests: fonts-TTF-DejaVu
%description collection
-Web script for collectiond
+Web script for collectd.
%package cpu
Summary: cpu-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
Group: Daemons
Requires: %{name} = %{version}-%{release}
+Suggests: hddtemp-hddtempd
%description hddtemp
Temperature of harddisks. The temperatures are provided via S.M.A.R.T. and
%triggerun collection -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%triggerin -- lighttpd
+%triggerin collection -- lighttpd
%webapp_register lighttpd %{_webapp}
-%triggerun -- lighttpd
+%triggerun collection -- lighttpd
%webapp_unregister lighttpd %{_webapp}
%files