swap plugin: Converted to the new plugin interface.
[collectd.git] / collectd.spec
1 Summary:        Statistics collection daemon for filling RRD files.
2 Name:           collectd
3 Version:        3.10.0
4 Release:        1
5 Source:         http://collectd.org/files/%{name}-%{version}.tar.gz
6 License:        GPL
7 Group:          System Environment/Daemons
8 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
9 BuildPrereq:    lm_sensors-devel, mysql-devel, rrdtool-devel
10 Requires:       rrdtool
11 Packager:       Florian octo Forster <octo@verplant.org>
12 Vendor:         Florian octo Forster <octo@verplant.org>
13
14 %description
15 collectd is a small daemon written in C for performance.  It reads various
16 system  statistics  and updates  RRD files,  creating  them if neccessary.
17 Since the daemon doesn't need to startup every time it wants to update the
18 files it's very fast and easy on the system. Also, the statistics are very
19 fine grained since the files are updated every 10 seconds.
20
21 %package apache
22 Summary:        apache-plugin for collectd.
23 Group:          System Environment/Daemons
24 Requires:       collectd = %{version}, libcurl3
25 %description apache
26 This plugin collectd data provided by Apache's `mod_status'.
27
28 %package mysql
29 Summary:        mysql-module for collectd.
30 Group:          System Environment/Daemons
31 Requires:       collectd = %{version}, mysql
32 %description mysql
33 MySQL  querying  plugin.  This plugins  provides data of  issued commands,
34 called handlers and database traffic.
35
36 %package sensors
37 Summary:        libsensors-module for collectd.
38 Group:          System Environment/Daemons
39 Requires:       collectd = %{version}, lm_sensors
40 %description sensors
41 This  plugin  for  collectd  provides  querying  of sensors  supported  by
42 lm_sensors.
43
44 %prep
45 rm -rf $RPM_BUILD_ROOT
46 %setup
47
48 %build
49 ./configure --prefix=%{_prefix} --sbindir=%{_sbindir} --mandir=%{_mandir} --libdir=%{_libdir}
50 make
51
52 %install
53 make install DESTDIR=$RPM_BUILD_ROOT
54 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
55 cp contrib/collectd.conf $RPM_BUILD_ROOT/etc/collectd.conf
56 cp contrib/init.d-rh7 $RPM_BUILD_ROOT/etc/rc.d/init.d/collectd
57 mkdir -p $RPM_BUILD_ROOT/var/lib/collectd
58 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
59 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(-,root,root)
66 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
67 %doc contrib
68 %config /etc/collectd.conf
69 %attr(0755,root,root) /etc/rc.d/init.d/collectd
70 %attr(0755,root,root) %{_sbindir}/collectd
71 %attr(0444,root,root) %{_mandir}/man1/*
72 %attr(0444,root,root) %{_mandir}/man5/*
73 %attr(0444,root,root) %{_libdir}/%{name}/apcups.so*
74 %attr(0444,root,root) %{_libdir}/%{name}/apple_sensors.so*
75 %attr(0444,root,root) %{_libdir}/%{name}/battery.so*
76 %attr(0444,root,root) %{_libdir}/%{name}/cpu.so*
77 %attr(0444,root,root) %{_libdir}/%{name}/cpufreq.so*
78 %attr(0444,root,root) %{_libdir}/%{name}/df.so*
79 %attr(0444,root,root) %{_libdir}/%{name}/disk.so*
80 %attr(0444,root,root) %{_libdir}/%{name}/hddtemp.so*
81 %attr(0444,root,root) %{_libdir}/%{name}/load.so*
82 %attr(0444,root,root) %{_libdir}/%{name}/memory.so*
83 %attr(0444,root,root) %{_libdir}/%{name}/multimeter.so*
84 %attr(0444,root,root) %{_libdir}/%{name}/nfs.so*
85 %attr(0444,root,root) %{_libdir}/%{name}/ntpd.so*
86 %attr(0444,root,root) %{_libdir}/%{name}/ping.so*
87 %attr(0444,root,root) %{_libdir}/%{name}/processes.so*
88 %attr(0444,root,root) %{_libdir}/%{name}/serial.so*
89 %attr(0444,root,root) %{_libdir}/%{name}/swap.so*
90 %attr(0444,root,root) %{_libdir}/%{name}/tape.so*
91 %attr(0444,root,root) %{_libdir}/%{name}/traffic.so*
92 %attr(0444,root,root) %{_libdir}/%{name}/users.so*
93 %attr(0444,root,root) %{_libdir}/%{name}/vserver.so*
94 %attr(0444,root,root) %{_libdir}/%{name}/wireless.so*
95 %dir /var/lib/collectd
96
97 %files apache
98 %attr(0444,root,root) %{_libdir}/%{name}/apache.so*
99
100 %files mysql
101 %attr(0444,root,root) %{_libdir}/%{name}/mysql.so*
102
103 %files sensors
104 %attr(0444,root,root) %{_libdir}/%{name}/sensors.so*
105
106 %changelog
107 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
108 - New upstream version
109
110 * Tue Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
111 - New upstream version
112
113 * Tue Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
114 - New upstream version
115
116 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
117 - New upstream version
118
119 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
120 - New upstream version
121
122 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
123 - New upstream version
124
125 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
126 - New upstream version
127 - Added the `apache' package.
128
129 * Thu Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
130 - New upstream version
131
132 * Thu Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
133 - New upstream version
134
135 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
136 - New upstream version
137
138 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
139 - Include `tape.so' so the build doesn't terminate because of missing files..
140 - New upstream version
141
142 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
143 - New upstream version
144
145 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
146 - New upstream version
147 - Removed the extra `hddtemp' package
148
149 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
150 - New upstream version
151
152 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
153 - New upstream version
154
155 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
156 - New upstream version
157 - Added config file, `collectd.conf(5)', `df.so'
158 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
159
160 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
161 - New upstream version
162
163 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
164 - New upstream version
165
166 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
167 - New upstream version
168
169 * Tue Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
170 - New upstream version
171 - Added statement to remove the `*.la' files. This fixes a problem when
172   `Unpackaged files terminate build' is in effect.
173 - Added `processes.so*' to the main package
174
175 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
176 - New upstream version
177 - Added package `collectd-hddtemp'
178
179 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
180 - New upstream version
181 - Split the package into `collectd' and `collectd-sensors'
182
183 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
184 - New upstream version
185
186 * Mon Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
187 - New upstream version
188
189 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
190 - New upstream version
191
192 * Sun Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
193 - New upstream version
194
195 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
196 - New upstream version
197
198 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
199 - New upstream version
200
201 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
202 - New upstream version
203
204 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
205 - New upstream version
206
207 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
208 - Built on RedHat 7.3