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