]> git.pld-linux.org Git - packages/collectd.git/blob - collectd.spec
6da7ac9cf3325c591f342b3c45839064687ea5b1
[packages/collectd.git] / collectd.spec
1 # TODO:
2 # - lm_sensors subpackage
3 # - initscripts for local/client/server mode (subpackage ?)
4 # - package contrib scripts as %doc
5 # - put every plugin into subpackages
6 # - Current plugins status:
7 #    apache  . . . . . . yes
8 #    apcups  . . . . . . yes
9 #    apple_sensors . . . no
10 #    ascent  . . . . . . yes
11 #    battery . . . . . . yes
12 #    cpu . . . . . . . . yes
13 #    cpufreq . . . . . . yes
14 #    csv . . . . . . . . yes
15 #    df  . . . . . . . . yes
16 #    disk  . . . . . . . yes
17 #    dns . . . . . . . . yes
18 #    email . . . . . . . yes
19 #    entropy . . . . . . yes
20 #    exec  . . . . . . . yes
21 #    hddtemp . . . . . . yes
22 #    interface . . . . . yes
23 #    iptables  . . . . . yes
24 #    ipmi  . . . . . . . no
25 #    ipvs  . . . . . . . no (ip_vs.h not found)
26 #    irq . . . . . . . . yes
27 #    libvirt . . . . . . no
28 #    load  . . . . . . . yes
29 #    logfile . . . . . . yes
30 #    mbmon . . . . . . . yes
31 #    memcached . . . . . yes
32 #    memory  . . . . . . yes
33 #    multimeter  . . . . yes
34 #    mysql . . . . . . . yes
35 #    netlink . . . . . . yes
36 #    network . . . . . . yes
37 #    nfs . . . . . . . . yes
38 #    nginx . . . . . . . yes
39 #    ntpd  . . . . . . . yes
40 #    nut . . . . . . . . no
41 #    perl  . . . . . . . no (needs libperl)
42 #    ping  . . . . . . . yes
43 #    powerdns  . . . . . yes
44 #    processes . . . . . yes
45 #    rrdtool . . . . . . yes
46 #    sensors . . . . . . yes
47 #    serial  . . . . . . yes
48 #    snmp  . . . . . . . yes
49 #    swap  . . . . . . . yes
50 #    syslog  . . . . . . yes
51 #    tail  . . . . . . . yes
52 #    tape  . . . . . . . no
53 #    tcpconns  . . . . . yes
54 #    teamspeak2  . . . . yes
55 #    unixsock  . . . . . yes
56 #    users . . . . . . . yes
57 #    uuid  . . . . . . . yes
58 #    vmem  . . . . . . . yes
59 #    vserver . . . . . . yes
60 #    wireless  . . . . . yes
61 #    xmms  . . . . . . . yes
62
63 Summary:        Collects system information in RRD files
64 Summary(pl.UTF-8):      Zbieranie informacji o systemie w plikach RRD
65 Name:           collectd
66 Version:        4.4.0
67 Release:        0.3
68 License:        GPL v2
69 Group:          Daemons
70 Source0:        http://collectd.org/files/%{name}-%{version}.tar.gz
71 # Source0-md5:  a677ddcad97fdb3cdd09efac4842b11d
72 Source1:        %{name}.conf
73 Source2:        %{name}.init
74 URL:            http://collectd.org/
75 BuildRequires:  OpenIPMI-devel
76 BuildRequires:  autoconf
77 BuildRequires:  automake
78 BuildRequires:  curl-devel
79 BuildRequires:  iptables-devel
80 BuildRequires:  libnetlink-devel
81 BuildRequires:  liboping-devel
82 BuildRequires:  libpcap-devel
83 BuildRequires:  libstatgrab-devel >= 0.12
84 BuildRequires:  libtool
85 BuildRequires:  mysql-devel
86 BuildRequires:  perl-devel
87 BuildRequires:  rpmbuild(macros) >= 1.268
88 BuildRequires:  rrdtool-devel
89 BuildRequires:  xmms-devel
90 Requires(post,preun):   /sbin/chkconfig
91 Requires:       rc-scripts
92 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
93
94 %description
95 collectd is a small daemon which collects system information every 10
96 seconds and writes the results in an RRD-file.
97
98 In contrast to most similar software, collectd is not a script but
99 written in plain C for performance and portability. As a daemon it
100 stays in memory, so there is no need to start up a heavy interpreter
101 every time new values should be logged. This allows collectd to have a
102 10 second resolution while being nice to the system.
103
104 %description -l pl.UTF-8
105 collectd to mały demon zbierający co 10 sekund informacje o systemie i
106 zapisujący wyniki do pliku RRD.
107
108 W odróżnieniu od innych podobnych programów collectd nie jest
109 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
110 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
111 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
112 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
113 sekund i nie obciążać zbytnio systemu.
114
115 %package ascent
116 Summary:        ascent-plugin for collectd
117 Summary(pl_PL.UTF-8):   Wtyczka ascent dla collectd
118 Group:          Daemons
119 Requires:       %{name} = %{version}-%{release}
120
121 %description ascent
122 ascent plugin for collectd.
123
124 %package apache
125 Summary:        apache-plugin for collectd
126 Summary(pl_PL.UTF-8):   Wtyczka apache dla collectd
127 Group:          Daemons
128 Requires:       %{name} = %{version}-%{release}
129
130 %description apache
131 This plugin collectd data provided by Apache's `mod_status'.
132
133 %description apache -l pl.UTF-8
134 Wtyczka collectd zbierająca informacje udostępniane przez moduł
135 'mod_status' Apacha.
136
137 %package collection
138 Summary:        Web script for collectiond
139 Summary(pl_PL.UTF-8):   Web script for collectiond
140 Group:          Applications/WWW
141 Requires:       %{name} = %{version}-%{release}
142
143 %description collection
144 Web script for collectiond
145
146 %package dns
147 Summary:        dns-plugin for collectd
148 Summary(pl_PL.UTF-8):   Wtyczka dns dla collectd
149 Group:          Daemons
150 Requires:       %{name} = %{version}-%{release}
151
152 %description dns
153 dns plugin for collectd.
154
155 %package hddtemp
156 Summary:        hddtemp-plugin for collectd
157 Summary(pl_PL.UTF-8):   Wtyczka hddtemp dla collectd
158 Group:          Daemons
159 Requires:       %{name} = %{version}-%{release}
160
161 %description hddtemp
162 hddtemp plugin for collectd.
163
164 %package mysql
165 Summary:        mysql-plugin for collectd
166 Summary(pl_PL.UTF-8):   Moduł mysql dla collectd.
167 Group:          Daemons
168 Requires:       %{name} = %{version}-%{release}
169
170 %description mysql
171 MySQL querying plugin. This plugins provides data of issued commands,
172 called handlers and database traffic.
173
174 %description mysql -l pl.UTF-8
175 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
176 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
177
178 %package nginx
179 Summary:        nginx-plugin for collectd
180 Summary(pl_PL.UTF-8):   Wtyczka nginx dla collectd
181 Group:          Daemons
182 Requires:       %{name} = %{version}-%{release}
183
184 %description nginx
185 nginx plugin for collectd.
186
187 %package ping
188 Summary:        ping-plugin for collectd
189 Summary(pl_PL.UTF-8):   Wtyczka ping dla collectd
190 Group:          Daemons
191 Requires:       %{name} = %{version}-%{release}
192
193 %description ping
194 ping plugin for collectd.
195
196 %package rrdtool
197 Summary:        rrdtool-plugin for collectd
198 Summary(pl_PL.UTF-8):   Wtyczka rrdtool dla collectd
199 Group:          Daemons
200 Requires:       %{name} = %{version}-%{release}
201 Requires:       rrdtool
202
203 %description rrdtool
204 RRDTOOL plugin for collectd.
205
206 %package sensors
207 Summary:        sensors-plugin for collectd
208 Summary(pl_PL.UTF-8):   Wtyczka sensors dla collectd
209 Group:          Daemons
210 Requires:       %{name} = %{version}-%{release}
211
212 %description sensors
213 This plugin collectd data provided by hardware sensors.
214
215 %package snmp
216 Summary:        snmp-plugin for collectd
217 Summary(pl_PL.UTF-8):   Wtyczka snmp dla collectd
218 Group:          Daemons
219 Requires:       %{name} = %{version}-%{release}
220
221 %description snmp
222 snmp plugin for collectd.
223
224 %package uuid
225 Summary:        uuid-plugin for collectd
226 Summary(pl_PL.UTF-8):   Wtyczka uuid dla collectd
227 Group:          Daemons
228 Requires:       %{name} = %{version}-%{release}
229
230 %description uuid
231 This plugin collectd UUID data.
232
233 %package xmms
234 Summary:        xmms-plugin for collectd
235 Summary(pl_PL.UTF-8):   Wtyczka xmms dla collectd
236 Group:          Daemons
237 Requires:       %{name} = %{version}-%{release}
238 Requires:       xmms-libs
239
240 %description xmms
241 This plugin collectd data provided by XMMS.
242
243 %prep
244 %setup -q
245
246 %build
247 %{__libtoolize}
248 %{__aclocal}
249 %{__autoconf}
250 %{__autoheader}
251 %{__automake}
252 %configure \
253         --with-libstatgrab=/usr \
254         --with-lm-sensors=/usr \
255         --with-libmysql=/usr
256 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
257
258 %install
259 rm -rf $RPM_BUILD_ROOT
260
261 %{__make} install \
262         DESTDIR=$RPM_BUILD_ROOT
263
264 install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}}
265 install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
266 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
267 #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
268 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
269 install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
270 install contrib/collection.conf $RPM_BUILD_ROOT%{_sysconfdir}
271 install contrib/collection.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
272 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
273 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
274
275 %clean
276 rm -rf $RPM_BUILD_ROOT
277
278 %post
279 /sbin/chkconfig --add %{name}
280 %service %{name} restart
281
282 %preun
283 if [ "$1" = "0" ]; then
284         %service -q %{name} stop
285         /sbin/chkconfig --del %{name}
286 fi
287
288 %files
289 %defattr(644,root,root,755)
290 %doc AUTHORS ChangeLog README TODO contrib
291
292 %attr(755,root,root) %{_sbindir}/collectd
293 %attr(755,root,root) %{_sbindir}/collectdmon
294 %attr(755,root,root) %{_bindir}/collectd-nagios
295 %dir %{_libdir}/%{name}
296 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
297 #%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
298 %attr(755,root,root) %{_libdir}/%{name}/battery.so
299 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
300 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
301 %attr(755,root,root) %{_libdir}/%{name}/csv.so
302 %attr(755,root,root) %{_libdir}/%{name}/df.so
303 %attr(755,root,root) %{_libdir}/%{name}/disk.so
304 %attr(755,root,root) %{_libdir}/%{name}/email.so
305 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
306 %attr(755,root,root) %{_libdir}/%{name}/exec.so
307 %attr(755,root,root) %{_libdir}/%{name}/interface.so
308 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
309 %attr(755,root,root) %{_libdir}/%{name}/irq.so
310 %attr(755,root,root) %{_libdir}/%{name}/load.so
311 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
312 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
313 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
314 %attr(755,root,root) %{_libdir}/%{name}/memory.so
315 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
316 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
317 %attr(755,root,root) %{_libdir}/%{name}/network.so
318 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
319 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
320 #%attr(755,root,root) %{_libdir}/%{name}/perl.so
321 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
322 %attr(755,root,root) %{_libdir}/%{name}/processes.so
323 %attr(755,root,root) %{_libdir}/%{name}/serial.so
324 %attr(755,root,root) %{_libdir}/%{name}/swap.so
325 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
326 %attr(755,root,root) %{_libdir}/%{name}/tail.so
327 #%attr(755,root,root) %{_libdir}/%{name}/tape.so
328 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
329 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
330 #%attr(755,root,root) %{_libdir}/%{name}/traffic.so
331 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
332 %attr(755,root,root) %{_libdir}/%{name}/users.so
333 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
334 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
335 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
336 %{_libdir}/%{name}/types.db
337
338 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
339
340 %attr(754,root,root) /etc/rc.d/init.d/%{name}
341
342 %{_mandir}/man1/collectd.1*
343 %{_mandir}/man1/collectd-nagios.1*
344 %{_mandir}/man5/collectd.conf.5*
345 %{_mandir}/man5/collectd-email.5*
346 %{_mandir}/man5/collectd-exec.5*
347 %{_mandir}/man5/collectd-perl.5*
348 %{_mandir}/man5/collectd-snmp.5*
349 %{_mandir}/man5/collectd-unixsock.5*
350 %{_mandir}/man1/collectdmon.1*
351 %{_mandir}/man5/types.db.5*
352 %{_var}/log/collectd.log
353 %dir %{_var}/lib/%{name}
354
355 ########## PLUGINS:
356 %files ascent
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
359
360 %files apache
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/%{name}/apache.so
363
364 %files collection
365 %defattr(644,root,root,755)
366 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/collection.conf
367 %attr(755,root,root) /home/services/httpd/cgi-bin/collection.cgi
368
369 %files dns
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/%{name}/dns.so
372
373 %files hddtemp
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
376
377 %files mysql
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
380
381 %files nginx
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
384
385 %files ping
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/%{name}/ping.so
388
389 %files rrdtool
390 %defattr(644,root,root,755)
391 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
392
393 %files sensors
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
396
397 %files snmp
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
400
401 %files uuid
402 %defattr(644,root,root,755)
403 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
404
405 %files xmms
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/%{name}/xmms.so
This page took 0.056492 seconds and 2 git commands to generate.