]> git.pld-linux.org Git - packages/collectd.git/blob - collectd.spec
- more plugin configuration into separate configs
[packages/collectd.git] / collectd.spec
1 # TODO:
2 # - lm_sensors subpackage
3 # - package contrib scripts as %doc
4 # - put every plugin into subpackages
5 # - Current plugins status:
6 #    apache  . . . . . . yes
7 #    apcups  . . . . . . yes
8 #    apple_sensors . . . no             (obvious)
9 #    ascent  . . . . . . yes
10 #    battery . . . . . . yes
11 #    cpu . . . . . . . . yes
12 #    cpufreq . . . . . . yes
13 #    csv . . . . . . . . yes
14 #    df  . . . . . . . . yes
15 #    disk  . . . . . . . yes
16 #    dns . . . . . . . . yes
17 #    email . . . . . . . yes
18 #    entropy . . . . . . yes
19 #    exec  . . . . . . . yes
20 #    hddtemp . . . . . . yes
21 #    interface . . . . . yes
22 #    iptables  . . . . . yes
23 #    ipmi  . . . . . . . yes
24 #    ipvs  . . . . . . . no             (ip_vs.h not found - llh to be fixed)
25 #    irq . . . . . . . . yes
26 #    libvirt . . . . . . no             (requires library)
27 #    load  . . . . . . . yes
28 #    logfile . . . . . . yes
29 #    mbmon . . . . . . . yes
30 #    memcached . . . . . yes
31 #    memory  . . . . . . yes
32 #    multimeter  . . . . no
33 #    mysql . . . . . . . yes
34 #    netlink . . . . . . yes
35 #    network . . . . . . yes
36 #    nfs . . . . . . . . yes
37 #    nginx . . . . . . . yes
38 #    ntpd  . . . . . . . yes
39 #    nut . . . . . . . . yes
40 #    perl  . . . . . . . no             (needs libperl)
41 #    ping  . . . . . . . yes
42 #    powerdns  . . . . . yes
43 #    processes . . . . . yes
44 #    rrdtool . . . . . . yes
45 #    sensors . . . . . . yes
46 #    serial  . . . . . . yes
47 #    snmp  . . . . . . . yes
48 #    swap  . . . . . . . yes
49 #    syslog  . . . . . . yes
50 #    tail  . . . . . . . yes
51 #    tape  . . . . . . . no             ?
52 #    tcpconns  . . . . . yes
53 #    teamspeak2  . . . . yes
54 #    unixsock  . . . . . yes
55 #    users . . . . . . . yes
56 #    uuid  . . . . . . . yes
57 #    vmem  . . . . . . . yes
58 #    vserver . . . . . . yes
59 #    wireless  . . . . . yes
60 #    xmms  . . . . . . . yes
61 #
62 # Conditional build:
63 %bcond_without  dns             # ???
64 %bcond_without  ipmi            # ipmi plugin package
65 %bcond_without  iptables        # iptables plugin
66 %bcond_with     multimeter      # multimeter plugin
67 %bcond_without  netlink         # netlink plugin
68 #
69 #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637
70 %ifarch %{x8664}
71 %undefine with_iptables
72 %undefine with_netlink
73 %endif
74 Summary:        Collects system information in RRD files
75 Summary(pl.UTF-8):      Zbieranie informacji o systemie w plikach RRD
76 Name:           collectd
77 Version:        4.5.0
78 Release:        5.2
79 License:        GPL v2
80 Group:          Daemons
81 Source0:        http://collectd.org/files/%{name}-%{version}.tar.gz
82 # Source0-md5:  f73dbadc8dca136b98c0f96567e0f78c
83 Source1:        %{name}.conf
84 Source2:        %{name}.init
85 Source3:        %{name}-http.conf
86 Source10:       %{name}-ascent.conf
87 Source11:       %{name}-apache.conf
88 Source12:       %{name}-dns.conf
89 Source13:       %{name}-hddtemp.conf
90 Source14:       %{name}-ipmi.conf
91 Source15:       %{name}-mysql.conf
92 Source16:       %{name}-nginx.conf
93 Source17:       %{name}-notify_desktop.conf
94 Source18:       %{name}-notify_email.conf
95 Source19:       %{name}-nut.conf
96 Source20:       %{name}-ping.conf
97 Source21:       %{name}-postgresql.conf
98 Source22:       %{name}-powerdns.conf
99 Source23:       %{name}-rrdtool.conf
100 Source24:       %{name}-sensors.conf
101 Source25:       %{name}-snmp.conf
102 Source26:       %{name}-uuid.conf
103 Source27:       %{name}-xmms.conf
104 Source28:       %{name}-tcpconns.conf
105 Source29:       %{name}-teamspeak2.conf
106 Source30:       %{name}-thermal.conf
107 Source31:       %{name}-unixsock.conf
108 Source32:       %{name}-users.conf
109 Source33:       %{name}-vmem.conf
110 Source34:       %{name}-vserver.conf
111 Source35:       %{name}-wireless.conf
112 URL:            http://collectd.org/
113 BuildRequires:  OpenIPMI-devel
114 BuildRequires:  autoconf
115 BuildRequires:  automake
116 BuildRequires:  curl-devel
117 BuildRequires:  iptables-devel >= 1.4.1.1-4
118 BuildRequires:  libesmtp-devel
119 BuildRequires:  libnetlink-devel
120 BuildRequires:  libnotify-devel
121 BuildRequires:  liboping-devel
122 BuildRequires:  libpcap-devel
123 BuildRequires:  libstatgrab-devel >= 0.12
124 BuildRequires:  libtool
125 BuildRequires:  lm_sensors-devel
126 BuildRequires:  mysql-devel
127 BuildRequires:  nut-devel
128 BuildRequires:  perl-devel
129 BuildRequires:  rpmbuild(macros) >= 1.268
130 BuildRequires:  rrdtool-devel
131 BuildRequires:  net-snmp-devel
132 BuildRequires:  xmms-devel
133 Requires(post,preun):   /sbin/chkconfig
134 Requires:       rc-scripts
135 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
136
137 %define         _pkglibdir      /var/lib/%{name}
138 %define         _webapps        /etc/webapps 
139 %define         _webapp         %{name}
140 %define         _webappdir      %{_webapps}/%{_webapp}
141 %define         _appdir         %{_datadir}/%{_webapp}
142
143 %description
144 collectd is a small daemon which collects system information every 10
145 seconds and writes the results in an RRD-file.
146
147 In contrast to most similar software, collectd is not a script but
148 written in plain C for performance and portability. As a daemon it
149 stays in memory, so there is no need to start up a heavy interpreter
150 every time new values should be logged. This allows collectd to have a
151 10 second resolution while being nice to the system.
152
153 %description -l pl.UTF-8
154 collectd to mały demon zbierający co 10 sekund informacje o systemie i
155 zapisujący wyniki do pliku RRD.
156
157 W odróżnieniu od innych podobnych programów collectd nie jest
158 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
159 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
160 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
161 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
162 sekund i nie obciążać zbytnio systemu.
163
164 %package ascent
165 Summary:        ascent-plugin for collectd
166 Summary(pl_PL.UTF-8):   Wtyczka ascent dla collectd
167 Group:          Daemons
168 Requires:       %{name} = %{version}-%{release}
169
170 %description ascent
171 ascent plugin for collectd.
172
173 %package apache
174 Summary:        apache-plugin for collectd
175 Summary(pl_PL.UTF-8):   Wtyczka apache dla collectd
176 Group:          Daemons
177 Requires:       %{name} = %{version}-%{release}
178
179 %description apache
180 This plugin collectd data provided by Apache's `mod_status'.
181
182 %description apache -l pl.UTF-8
183 Wtyczka collectd zbierająca informacje udostępniane przez moduł
184 'mod_status' Apacha.
185
186 %package collection
187 Summary:        Web script for collectiond
188 Summary(pl_PL.UTF-8):   Web script for collectiond
189 Group:          Applications/WWW
190 Requires:       %{name} = %{version}-%{release}
191
192 %description collection
193 Web script for collectiond
194
195 %package dns
196 Summary:        dns-plugin for collectd
197 Summary(pl_PL.UTF-8):   Wtyczka dns dla collectd
198 Group:          Daemons
199 Requires:       %{name} = %{version}-%{release}
200 Requires:       perl-rrdtool
201
202 %description dns
203 dns plugin for collectd.
204
205 %package hddtemp
206 Summary:        hddtemp-plugin for collectd
207 Summary(pl_PL.UTF-8):   Wtyczka hddtemp dla collectd
208 Group:          Daemons
209 Requires:       %{name} = %{version}-%{release}
210
211 %description hddtemp
212 hddtemp plugin for collectd.
213
214 %package ipmi
215 Summary:        ipmi-plugin for collectd
216 Summary(pl_PL.UTF-8):   Wtyczka ipmi dla collectd
217 Group:          Daemons
218 Requires:       %{name} = %{version}-%{release}
219
220 %description ipmi
221 ipmi plugin for collectd.
222
223 %description ipmi -l pl.UTF-8
224 Wtyczka ipmi dla collectd.
225
226 %package mysql
227 Summary:        mysql-plugin for collectd
228 Summary(pl_PL.UTF-8):   Moduł mysql dla collectd.
229 Group:          Daemons
230 Requires:       %{name} = %{version}-%{release}
231
232 %description mysql
233 MySQL querying plugin. This plugins provides data of issued commands,
234 called handlers and database traffic.
235
236 %description mysql -l pl.UTF-8
237 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
238 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
239
240 %package nginx
241 Summary:        nginx-plugin for collectd
242 Summary(pl_PL.UTF-8):   Wtyczka nginx dla collectd
243 Group:          Daemons
244 Requires:       %{name} = %{version}-%{release}
245
246 %description nginx
247 nginx plugin for collectd.
248
249 %package notify_desktop
250 Summary:        notify_desktop for collectd
251 Summary(pl_PL.UTF-8):   Wtyczka notify_desktop dla collectd
252 Group:          Daemons
253 Requires:       %{name} = %{version}-%{release}
254
255 %description notify_desktop
256 notify_desktop plugin for collectd.
257
258 %package notify_email
259 Summary:        notify_email for collectd
260 Summary(pl_PL.UTF-8):   Wtyczka notify_email dla collectd
261 Group:          Daemons
262 Requires:       %{name} = %{version}-%{release}
263
264 %description notify_email
265 notify_email plugin for collectd.
266
267 %package nut
268 Summary:        nut-plugin for collectd
269 Summary(pl_PL.UTF-8):   Wtyczka nut dla collectd
270 Group:          Daemons
271 Requires:       %{name} = %{version}-%{release}
272
273 %description nut
274 nut plugin for collectd.
275
276 %package ping
277 Summary:        ping-plugin for collectd
278 Summary(pl_PL.UTF-8):   Wtyczka ping dla collectd
279 Group:          Daemons
280 Requires:       %{name} = %{version}-%{release}
281
282 %description ping
283 ping plugin for collectd.
284
285 %package postgresql
286 Summary:        mysql-plugin for collectd
287 Summary(pl_PL.UTF-8):   Moduł postgresql dla collectd.
288 Group:          Daemons
289 Requires:       %{name} = %{version}-%{release}
290
291 %description postgresql
292 PostgreSQL querying plugin. This plugins provides data of issued commands,
293 called handlers and database traffic.
294
295 %description postgresql -l pl.UTF-8
296 Moduł odpytujący PostgreSQL. Wtyczka udostępnia dane o wydawanych
297 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
298
299 %package powerdns
300 Summary:        powerdns-plugin for collectd
301 Summary(pl_PL.UTF-8):   Wtyczka powerdns dla collectd
302 Group:          Daemons
303 Requires:       %{name} = %{version}-%{release}
304
305 %description powerdns
306 powerdns plugin for collectd.
307
308 %package rrdtool
309 Summary:        rrdtool-plugin for collectd
310 Summary(pl_PL.UTF-8):   Wtyczka rrdtool dla collectd
311 Group:          Daemons
312 Requires:       %{name} = %{version}-%{release}
313 Requires:       rrdtool
314
315 %description rrdtool
316 RRDTOOL plugin for collectd.
317
318 %package sensors
319 Summary:        sensors-plugin for collectd
320 Summary(pl_PL.UTF-8):   Wtyczka sensors dla collectd
321 Group:          Daemons
322 Requires:       %{name} = %{version}-%{release}
323
324 %description sensors
325 This plugin collectd data provided by hardware sensors.
326
327 %package snmp
328 Summary:        snmp-plugin for collectd
329 Summary(pl_PL.UTF-8):   Wtyczka snmp dla collectd
330 Group:          Daemons
331 Requires:       %{name} = %{version}-%{release}
332
333 %description snmp
334 snmp plugin for collectd.
335
336 %package uuid
337 Summary:        uuid-plugin for collectd
338 Summary(pl_PL.UTF-8):   Wtyczka uuid dla collectd
339 Group:          Daemons
340 Requires:       %{name} = %{version}-%{release}
341
342 %description uuid
343 This plugin collectd UUID data.
344
345 %package xmms
346 Summary:        xmms-plugin for collectd
347 Summary(pl_PL.UTF-8):   Wtyczka xmms dla collectd
348 Group:          Daemons
349 Requires:       %{name} = %{version}-%{release}
350 Requires:       xmms-libs
351
352 %description xmms
353 This plugin collectd data provided by XMMS.
354
355 %prep
356 %setup -q
357
358 cat >> collection.conf <<'EOF'
359 datadir: "/var/lib/collectd/"
360 libdir: "/usr/lib/collectd/"
361 EOF
362
363 %build
364 %{__libtoolize}
365 %{__aclocal}
366 %{__autoconf}
367 %{__autoheader}
368 %{__automake}
369
370 %configure \
371         --with-libstatgrab=/usr \
372         --with-lm-sensors=/usr \
373         --with-libmysql=/usr \
374         --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \
375         --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \
376         --%{?with_dns:en}%{!?with_dns:dis}able-dns \
377         --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \
378         --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \
379         --disable-ipvs
380
381
382 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
383         BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
384         BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread"
385
386 %install
387 rm -rf $RPM_BUILD_ROOT
388 install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
389         $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir}}
390
391 %{__make} install \
392         DESTDIR=$RPM_BUILD_ROOT
393
394 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
395 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
396
397 # Web frontend:
398 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
399 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
400 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
401 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
402
403 ### Configs instalation ###
404 # Example config in sources: src/collectd.conf
405 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
406 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/ascent.conf
407 install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/apache.conf
408 install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/dns.conf
409 install %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/hddtemp.conf
410 install %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/ipmi.conf
411 install %{SOURCE15} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/mysql.conf
412 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/nginx.conf
413 install %{SOURCE17} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/notify_desktop.conf
414 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/notify_email.conf
415 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/nut.conf
416 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/ping.conf
417 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/postgresql.conf
418 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/powerdns.conf
419 install %{SOURCE23} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
420 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/sensors.conf
421 install %{SOURCE25} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/snmp.conf
422 install %{SOURCE26} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/uuid.conf
423 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/xmms.conf
424 install %{SOURCE28} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/tcpconns.conf
425 install %{SOURCE29} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/teamspeak2.conf
426 install %{SOURCE30} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/thermal.conf
427 install %{SOURCE31} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/unixsock.conf
428 install %{SOURCE32} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/users.conf
429 install %{SOURCE33} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/vmem.conf
430 install %{SOURCE34} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/vserver.conf
431 install %{SOURCE35} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/wireless.conf
432
433 # Cleanups:
434 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
435
436 %clean
437 rm -rf $RPM_BUILD_ROOT
438
439 %post
440 /sbin/chkconfig --add %{name}
441 %service %{name} restart
442
443 %preun
444 if [ "$1" = "0" ]; then
445         %service -q %{name} stop
446         /sbin/chkconfig --del %{name}
447 fi
448
449 %triggerin collection -- apache1 < 1.3.37-3, apache1-base
450 %webapp_register apache %{_webapp}
451
452 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
453 %webapp_unregister apache %{_webapp}
454
455 %triggerin collection -- apache < 2.2.0, apache-base
456 %webapp_register httpd %{_webapp}
457
458 %triggerun collection -- apache < 2.2.0, apache-base
459 %webapp_unregister httpd %{_webapp}
460
461 %files
462 %defattr(644,root,root,755)
463 %doc AUTHORS ChangeLog README TODO contrib
464 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
465 %dir %{_sysconfdir}/%{name}.d
466 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
467 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
468 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
469 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
470 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
471 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
472 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
473 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
474 %attr(755,root,root) %{_sbindir}/collectd
475 %attr(755,root,root) %{_sbindir}/collectdmon
476 %attr(755,root,root) %{_bindir}/collectd-nagios
477
478 %dir %{_libdir}/%{name}
479 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
480 #%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
481 %attr(755,root,root) %{_libdir}/%{name}/battery.so
482 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
483 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
484 %attr(755,root,root) %{_libdir}/%{name}/csv.so
485 %attr(755,root,root) %{_libdir}/%{name}/df.so
486 %attr(755,root,root) %{_libdir}/%{name}/disk.so
487 %attr(755,root,root) %{_libdir}/%{name}/email.so
488 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
489 %attr(755,root,root) %{_libdir}/%{name}/exec.so
490 %attr(755,root,root) %{_libdir}/%{name}/filecount.so
491 %attr(755,root,root) %{_libdir}/%{name}/interface.so
492 %if %{with iptables}
493 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
494 %endif
495 # Disabled - requires fixed libc-headers or whole kernel source.
496 # It was marked as disabled in status message on top.
497 #%attr(755,root,root) %{_libdir}/%{name}/ipvs.so
498 %attr(755,root,root) %{_libdir}/%{name}/irq.so
499 %attr(755,root,root) %{_libdir}/%{name}/load.so
500 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
501 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
502 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
503 %attr(755,root,root) %{_libdir}/%{name}/memory.so
504 %if %{with multimeter}
505 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
506 %endif
507 %if %{with netlink}
508 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
509 %endif
510 %attr(755,root,root) %{_libdir}/%{name}/network.so
511 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
512 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
513 #%attr(755,root,root) %{_libdir}/%{name}/perl.so
514 %attr(755,root,root) %{_libdir}/%{name}/processes.so
515 %attr(755,root,root) %{_libdir}/%{name}/serial.so
516 %attr(755,root,root) %{_libdir}/%{name}/swap.so
517 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
518 %attr(755,root,root) %{_libdir}/%{name}/tail.so
519 #%attr(755,root,root) %{_libdir}/%{name}/tape.so
520 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
521 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
522 %attr(755,root,root) %{_libdir}/%{name}/thermal.so
523 #%attr(755,root,root) %{_libdir}/%{name}/traffic.so
524 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
525 %attr(755,root,root) %{_libdir}/%{name}/users.so
526 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
527 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
528 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
529 %{_libdir}/%{name}/types.db
530
531 %attr(754,root,root) /etc/rc.d/init.d/%{name}
532
533 %{_mandir}/man1/collectd.1*
534 %{_mandir}/man1/collectd-nagios.1*
535 %{_mandir}/man5/collectd.conf.5*
536 %{_mandir}/man5/collectd-email.5*
537 %{_mandir}/man5/collectd-exec.5*
538 %{_mandir}/man5/collectd-perl.5*
539 %{_mandir}/man5/collectd-snmp.5*
540 %{_mandir}/man5/collectd-unixsock.5*
541 %{_mandir}/man1/collectdmon.1*
542 %{_mandir}/man5/types.db.5*
543 %{_var}/log/collectd.log
544 %dir %{_var}/lib/%{name}
545
546 ########## PLUGINS:
547 %files ascent
548 %defattr(644,root,root,755)
549 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
550 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
551
552 %files apache
553 %defattr(644,root,root,755)
554 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
555 %attr(755,root,root) %{_libdir}/%{name}/apache.so
556
557 %files collection
558 %defattr(644,root,root,755)
559 %dir %{_webappdir}
560 %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
561 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
562 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
563 %dir %{_appdir}
564 %dir %{_appdir}/cgi-bin
565 %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
566
567 %files dns
568 %defattr(644,root,root,755)
569 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
570 %attr(755,root,root) %{_libdir}/%{name}/dns.so
571
572 %files hddtemp
573 %defattr(644,root,root,755)
574 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
575 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
576
577 %if %{with ipmi}
578 %files ipmi
579 %defattr(644,root,root,755)
580 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
581 %attr(755,root,root) %{_libdir}/%{name}/ipmi.so
582 %endif
583
584 %files mysql
585 %defattr(644,root,root,755)
586 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
587 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
588
589 %files nginx
590 %defattr(644,root,root,755)
591 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
592 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
593
594 %files notify_desktop
595 %defattr(644,root,root,755)
596 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
597 %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
598
599 %files notify_email
600 %defattr(644,root,root,755)
601 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
602 %attr(755,root,root) %{_libdir}/%{name}/notify_email.so
603
604 %files nut
605 %defattr(644,root,root,755)
606 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
607 %attr(755,root,root) %{_libdir}/%{name}/nut.so
608
609 %files ping
610 %defattr(644,root,root,755)
611 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
612 %attr(755,root,root) %{_libdir}/%{name}/ping.so
613
614 %files postgresql
615 %defattr(644,root,root,755)
616 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
617 %attr(755,root,root) %{_libdir}/%{name}/postgresql.so
618
619 %files powerdns
620 %defattr(644,root,root,755)
621 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
622 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
623
624 %files rrdtool
625 %defattr(644,root,root,755)
626 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
627 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
628
629 %files sensors
630 %defattr(644,root,root,755)
631 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
632 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
633
634 %files snmp
635 %defattr(644,root,root,755)
636 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
637 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
638
639 %files uuid
640 %defattr(644,root,root,755)
641 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
642 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
643
644 %files xmms
645 %defattr(644,root,root,755)
646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
647 %attr(755,root,root) %{_libdir}/%{name}/xmms.so
This page took 0.085947 seconds and 3 git commands to generate.