]> git.pld-linux.org Git - packages/collectd.git/blobdiff - collectd.spec
- rebuild with perl 5.18.0
[packages/collectd.git] / collectd.spec
index 5cce9d59ec5a9a4b42a1bbdfbf3e90dab3e5ce4e..e25129b5e80cd7fbab769d0f793354f94219ccbb 100644 (file)
@@ -1,4 +1,4 @@
-#       $Revision: 1.120 $, $Date: 2012-03-20 18:02:46 $
+#       $Revision: 1.123 $, $Date: 2012-06-05 12:38:02 $
 # TODO:
 # - package contrib scripts as %doc
 # - perl modules with Collectd classes package to separate package
 Summary:       Collects system information in RRD files
 Summary(pl.UTF-8):     Zbieranie informacji o systemie w plikach RRD
 Name:          collectd
-Version:       5.0.2
+Version:       5.1.0
 Release:       4
 License:       GPL v2
 Group:         Daemons
 Source0:       http://collectd.org/files/%{name}-%{version}.tar.bz2
-# Source0-md5: 47f70ae20801f10be355dc8109d696aa
+# Source0-md5: 141570150b4608c0c567330f6f146e0f
 Source1:       %{name}.conf
 Source2:       %{name}.init
 Source3:       %{name}-http.conf
 Source4:       %{name}-lighttpd.conf
+Source5:       %{name}-apache.conf
 Source10:      %{name}-df.conf
 Source11:      %{name}-rrdtool.conf
 Patch0:                %{name}-collection.patch
@@ -96,8 +97,7 @@ BuildRequires:        libdbi-devel
 %{?with_libesmtp:BuildRequires:        libesmtp-devel}
 BuildRequires: libltdl-devel
 BuildRequires: libmemcached-devel
-BuildRequires: libnetlink-devel
-%{?with_netlink:BuildRequires: libnetlink-devel}
+%{?with_netlink:BuildRequires: libnetlink-devel >= 3.0.0}
 %{?with_libvirt:BuildRequires: libnl1-devel}
 %{?with_notify:BuildRequires:  libnotify-devel}
 %{?with_ping:BuildRequires:    liboping-devel}
@@ -263,6 +263,7 @@ Requires:   perl(RRDs)
 Requires:      perl(URI::Escape)
 Requires:      webserver(cgi)
 Suggests:      fonts-TTF-DejaVu
+Conflicts:     apache-base < 2.4.0-1
 
 %description collection
 Web script for collectd.
@@ -279,6 +280,7 @@ Requires:   perl(Regexp::Common)
 Requires:      perl(RRDs)
 Requires:      webserver(cgi)
 Suggests:      fonts-TTF-DejaVu
+Conflicts:     apache-base < 2.4.0-1
 
 %description collection3
 Web script for collectd.
@@ -428,6 +430,16 @@ The Entropy plugin collects the available entropy on a system. Entropy
 is important to generate random numbers, which are used for
 encryption, authorization and similar tasks.
 
+%package ethstat
+Summary:       ethstat-plugin for collectd
+Summary(pl.UTF-8):     Wyczka ethstat dla collectd
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+
+%description ethstat
+The ethstat plugin reads performance statistics directly from ethernet
+cards
+
 %package exec
 Summary:       exec-plugin for collectd
 Summary(pl.UTF-8):     Wtyczka exec dla collectd
@@ -626,6 +638,16 @@ Requires:  %{name} = %{version}-%{release}
 %description mbmon
 The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
 
+%package md
+Summary:       md plugin for collectd
+Summary(pl.UTF-8):     Wtyczka md dla collectd
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+
+%description md
+The md plugin reports the number of disks in various states in Linux
+software RAID devices.
+
 %package memcachec
 Summary:       memcachec-plugin for collectd
 Summary(pl.UTF-8):     Wtyczka memcachec dla collectd
@@ -780,6 +802,16 @@ statistics access is allowed) and extracts :
 - parameters for each NTP server used to sync time: offset,
   dispersion, delay.
 
+%package numa
+Summary:       numa-plugin for collectd
+Summary(pl.UTF-8):     Wtyczka numa dla collectd
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+
+%description numa
+The numa plugin reports statistics of the Non-Uniform Memory
+Access (NUMA) subsystem of Linux.
+
 %package nut
 Summary:       nut-plugin for collectd
 Summary(pl.UTF-8):     Wtyczka nut dla collectd
@@ -1172,6 +1204,23 @@ Requires:        %{name} = %{version}-%{release}
 Collects information about the virtual servers running on a system,
 using Linux-Vserver.
 
+%package write_graphite
+Summary:       write_graphite-plugin for collectd
+Summary(pl.UTF-8):     wtyczka write_graphite dla collectd
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+
+%description write_graphite
+The Write Graphite plugin stores values in Carbon, the storage layer
+of Graphite.
+The plugin aims to be very efficient. It keeps the TCP connection to
+Carbon open in order to minimize the connection handshake overhead. It
+buffers the data in a buffer to send many lines at once, rather than
+generating lots of small network packets. The size of this buffer
+(1428 bytes) is dimensioned so that the buffer as well as the TCP and
+IP header fit into one Ethernet frame and can (hopefully) be delivered
+without fragmentation.
+
 %package write_http
 Summary:       write_http-plugin for collectd
 Summary(pl.UTF-8):     Wtyczka write_http dla collectd
@@ -1216,10 +1265,10 @@ Perl files from Collectd package
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
+%patch3 -p0
 %patch4 -p0
 %patch5 -p1
-%patch6 -p1
+#%patch6 -p1
 
 %build
 %{__libtoolize}
@@ -1283,7 +1332,7 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 # Web frontend:
 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
-install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
+install %{SOURCE5} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
 install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
 
@@ -1352,6 +1401,7 @@ fi
 %module_scripts dns
 %module_scripts email
 %module_scripts entropy
+%module_scripts ethstat
 %module_scripts exec
 %module_scripts filecount
 %module_scripts fscache
@@ -1370,6 +1420,7 @@ fi
 %module_scripts match_timediff
 %module_scripts match_value
 %module_scripts mbmon
+%module_scripts md
 %module_scripts memcachec
 %module_scripts memcached
 %module_scripts memory
@@ -1382,6 +1433,7 @@ fi
 %module_scripts notify_desktop
 %module_scripts notify_email
 %module_scripts ntpd
+%module_scripts numa
 %module_scripts nut
 %module_scripts olsrd
 %module_scripts openvpn
@@ -1418,6 +1470,7 @@ fi
 %module_scripts varnish
 %module_scripts vmem
 %module_scripts vserver
+%module_scripts write_graphite
 %module_scripts write_http
 %module_scripts wireless
 %module_scripts xmms
@@ -1428,10 +1481,10 @@ fi
 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin collection -- apache < 2.2.0, apache-base
+%triggerin collection -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun collection -- apache < 2.2.0, apache-base
+%triggerun collection -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerin collection -- lighttpd
@@ -1612,6 +1665,11 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
 
+%files ethstat
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ethstat.conf
+%attr(755,root,root) %{_libdir}/%{name}/ethstat.so
+
 %files exec
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
@@ -1710,6 +1768,11 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
 
+%files md
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/md.conf
+%attr(755,root,root) %{_libdir}/%{name}/md.so
+
 %files memcachec
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcachec.conf
@@ -1789,6 +1852,11 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
 
+%files numa
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/numa.conf
+%attr(755,root,root) %{_libdir}/%{name}/numa.so
+
 %if %{with ups}
 %files nut
 %defattr(644,root,root,755)
@@ -1971,10 +2039,12 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
 
+%if %{with varnish}
 %files varnish
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/varnish.conf
 %attr(755,root,root) %{_libdir}/%{name}/varnish.so
+%endif
 
 %files vmem
 %defattr(644,root,root,755)
@@ -1991,6 +2061,11 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
 
+%files write_graphite
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/write_graphite.conf
+%attr(755,root,root) %{_libdir}/%{name}/write_graphite.so
+
 %files write_http
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/write_http.conf
This page took 0.11701 seconds and 4 git commands to generate.