SPECS: collectd.spec - put plugins which are linked with external libs int...
blues
blues at pld-linux.org
Fri May 23 15:41:25 CEST 2008
Author: blues Date: Fri May 23 13:41:25 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- put plugins which are linked with external libs into separate packages
---- Files affected:
SPECS:
collectd.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SPECS/collectd.spec
diff -u SPECS/collectd.spec:1.15 SPECS/collectd.spec:1.16
--- SPECS/collectd.spec:1.15 Fri May 23 13:37:21 2008
+++ SPECS/collectd.spec Fri May 23 15:41:20 2008
@@ -1,18 +1,72 @@
# $Revision$, $Date$
# TODO:
# - lm_sensors subpackage
-# - perl (plugin and bindings) subpackage
-# - hddtemp subpackage
# - initscripts for local/client/server mode (subpackage ?)
# - collection CGI script
# - package contrib scripts as %doc
-# - build nut, iptables and other plugins
-# - fix building perl plugin
+# - put every plugin into subpackages
+# - Current plugins status:
+# apache . . . . . . yes
+# apcups . . . . . . yes
+# apple_sensors . . . no
+# ascent . . . . . . yes
+# battery . . . . . . yes
+# cpu . . . . . . . . yes
+# cpufreq . . . . . . yes
+# csv . . . . . . . . yes
+# df . . . . . . . . yes
+# disk . . . . . . . yes
+# dns . . . . . . . . yes
+# email . . . . . . . yes
+# entropy . . . . . . yes
+# exec . . . . . . . yes
+# hddtemp . . . . . . yes
+# interface . . . . . yes
+# iptables . . . . . yes
+# ipmi . . . . . . . no
+# ipvs . . . . . . . no (ip_vs.h not found)
+# irq . . . . . . . . yes
+# libvirt . . . . . . no
+# load . . . . . . . yes
+# logfile . . . . . . yes
+# mbmon . . . . . . . yes
+# memcached . . . . . yes
+# memory . . . . . . yes
+# multimeter . . . . yes
+# mysql . . . . . . . yes
+# netlink . . . . . . yes
+# network . . . . . . yes
+# nfs . . . . . . . . yes
+# nginx . . . . . . . yes
+# ntpd . . . . . . . yes
+# nut . . . . . . . . no
+# perl . . . . . . . no (needs libperl)
+# ping . . . . . . . yes
+# powerdns . . . . . yes
+# processes . . . . . yes
+# rrdtool . . . . . . yes
+# sensors . . . . . . yes
+# serial . . . . . . yes
+# snmp . . . . . . . yes
+# swap . . . . . . . yes
+# syslog . . . . . . yes
+# tail . . . . . . . yes
+# tape . . . . . . . no
+# tcpconns . . . . . yes
+# teamspeak2 . . . . yes
+# unixsock . . . . . yes
+# users . . . . . . . yes
+# uuid . . . . . . . yes
+# vmem . . . . . . . yes
+# vserver . . . . . . yes
+# wireless . . . . . yes
+# xmms . . . . . . . yes
+
Summary: Collects system information in RRD files
Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
Name: collectd
Version: 4.4.0
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Daemons
Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
@@ -23,14 +77,18 @@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: curl-devel
+BuildRequires: iptables-devel
BuildRequires: libnetlink-devel
-BuildRequires: libstatgrab-devel >= 0.12
+# External package needed (http://verplant.org/liboping/)
+#BuildRequires: liboping-devel
BuildRequires: libpcap-devel
+BuildRequires: libstatgrab-devel >= 0.12
BuildRequires: libtool
BuildRequires: mysql-devel
BuildRequires: perl-devel
BuildRequires: rpmbuild(macros) >= 1.228
BuildRequires: rrdtool-devel
+BuildRequires: xmms-devel
Requires(post,preun): /sbin/chkconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,6 +113,15 @@
zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
sekund i nie obciążać zbytnio systemu.
+%package ascent
+Summary: ascent-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description ascent
+ascent plugin for collectd.
+
%package apache
Summary: apache-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
@@ -68,6 +135,24 @@
Wtyczka collectd zbierająca informacje udostępniane przez moduł
'mod_status' Apacha.
+%package dns
+Summary: dns-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description dns
+dns plugin for collectd.
+
+%package hddtemp
+Summary: hddtemp-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description hddtemp
+hddtemp plugin for collectd.
+
%package mysql
Summary: mysql-plugin for collectd
Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
@@ -82,6 +167,62 @@
Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
+%package nginx
+Summary: nginx-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description nginx
+nginx plugin for collectd.
+
+%package rrdtool
+Summary: rrdtool-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+Requires: rrdtool
+
+%description rrdtool
+RRDTOOL plugin for collectd.
+
+%package sensors
+Summary: sensors-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description sensors
+This plugin collectd data provided by hardware sensors.
+
+%package snmp
+Summary: snmp-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description snmp
+snmp plugin for collectd.
+
+%package uuid
+Summary: uuid-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description uuid
+This plugin collectd UUID data.
+
+%package xmms
+Summary: xmms-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+Requires: xmms-libs
+
+%description xmms
+This plugin collectd data provided by XMMS.
+
%prep
%setup -q
@@ -133,18 +274,15 @@
%dir %{_libdir}/%{name}
%attr(755,root,root) %{_libdir}/%{name}/apcups.so
#%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
-%attr(755,root,root) %{_libdir}/%{name}/ascent.so
%attr(755,root,root) %{_libdir}/%{name}/battery.so
%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
%attr(755,root,root) %{_libdir}/%{name}/cpu.so
%attr(755,root,root) %{_libdir}/%{name}/csv.so
%attr(755,root,root) %{_libdir}/%{name}/df.so
%attr(755,root,root) %{_libdir}/%{name}/disk.so
-%attr(755,root,root) %{_libdir}/%{name}/dns.so
%attr(755,root,root) %{_libdir}/%{name}/email.so
%attr(755,root,root) %{_libdir}/%{name}/entropy.so
%attr(755,root,root) %{_libdir}/%{name}/exec.so
-%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
%attr(755,root,root) %{_libdir}/%{name}/interface.so
%attr(755,root,root) %{_libdir}/%{name}/iptables.so
%attr(755,root,root) %{_libdir}/%{name}/irq.so
@@ -157,17 +295,12 @@
%attr(755,root,root) %{_libdir}/%{name}/netlink.so
%attr(755,root,root) %{_libdir}/%{name}/network.so
%attr(755,root,root) %{_libdir}/%{name}/nfs.so
-%attr(755,root,root) %{_libdir}/%{name}/nginx.so
%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
#%attr(755,root,root) %{_libdir}/%{name}/perl.so
%attr(755,root,root) %{_libdir}/%{name}/ping.so
%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
%attr(755,root,root) %{_libdir}/%{name}/processes.so
-%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
-#%attr(755,root,root) %{_libdir}/%{name}/sensors.so
-%attr(755,root,root) %{_libdir}/%{name}/sensors.so
%attr(755,root,root) %{_libdir}/%{name}/serial.so
-%attr(755,root,root) %{_libdir}/%{name}/snmp.so
%attr(755,root,root) %{_libdir}/%{name}/swap.so
%attr(755,root,root) %{_libdir}/%{name}/syslog.so
%attr(755,root,root) %{_libdir}/%{name}/tail.so
@@ -176,12 +309,10 @@
%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
#%attr(755,root,root) %{_libdir}/%{name}/traffic.so
%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
-%attr(755,root,root) %{_libdir}/%{name}/uuid.so
%attr(755,root,root) %{_libdir}/%{name}/users.so
%attr(755,root,root) %{_libdir}/%{name}/vmem.so
%attr(755,root,root) %{_libdir}/%{name}/vserver.so
%attr(755,root,root) %{_libdir}/%{name}/wireless.so
-%attr(755,root,root) %{_libdir}/%{name}/xmms.so
%{_libdir}/%{name}/types.db
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
@@ -202,21 +333,60 @@
%{_var}/log/collectd.log
%dir %{_var}/lib/%{name}
+########## PLUGINS:
+%files ascent
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/ascent.so
%files apache
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/apache.so
+%files dns
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/dns.so
+
+%files hddtemp
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
+
%files mysql
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/mysql.so
+%files nginx
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/nginx.so
+
+%files rrdtool
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
+
+%files sensors
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/sensors.so
+
+%files snmp
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/snmp.so
+
+%files uuid
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/uuid.so
+
+%files xmms
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/xmms.so
+
%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.16 2008-05-23 13:41:20 blues
+- put plugins which are linked with external libs into separate packages
+
Revision 1.15 2008-05-23 11:37:21 luzik
- updated to 4.4.0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/collectd.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list