]> git.pld-linux.org Git - packages/collectd.git/blame - collectd.spec
- up to 4.7.2, rm obsolete as_needed.patch
[packages/collectd.git] / collectd.spec
CommitLineData
34fc103e 1# Conditional build:
1018cae1 2%bcond_without curl # apache, ascent, bind, curl and nginx plugins
7e70ab62
TP
3%bcond_without dns # DNS plugin
4%bcond_without ipmi # IPMI plugin
34fc103e 5%bcond_without iptables # iptables plugin
1018cae1 6%bcond_without libesmtp # notify_email plugin
34fc103e 7%bcond_with multimeter # multimeter plugin
1018cae1 8%bcond_without mysql # MySQL plugin
34fc103e 9%bcond_without netlink # netlink plugin
1018cae1
TP
10%bcond_without notify # notify_desktop plugin
11%bcond_without ping # ping plugin
12%bcond_without psql # PostgreSQL plugin
13%bcond_without rrd # rrdtool and rrdcached plugins
14%bcond_without sensors # sensors plugin
15%bcond_without snmp # SNMP plugin
16%bcond_without ups # nut plugin
17%bcond_without xml # ascent, bind and libvirt plugins
18%bcond_without xmms # XMMS plugin
daff3c99
ER
19
20# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637
4b6e34c7 21%ifarch %{x8664}
22%undefine with_iptables
23%undefine with_netlink
24%endif
daff3c99 25
7df111b4 26Summary: Collects system information in RRD files
322f1351 27Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 28Name: collectd
4a81a8f1 29Version: 4.7.2
30Release: 1
373d486f 31License: GPL v2
81857fc6 32Group: Daemons
d94da88b 33Source0: http://collectd.org/files/%{name}-%{version}.tar.bz2
4a81a8f1 34# Source0-md5: 5018d578cbacdca4e874876dc6275865
f6984413 35Source1: %{name}.conf
ec8f9a12 36Source2: %{name}.init
96376a8d 37Source3: %{name}-http.conf
cdf53ab5 38Source4: %{name}-lighttpd.conf
4929f1a7
PG
39Source10: %{name}-df.conf
40Source11: %{name}-rrdtool.conf
cdf53ab5 41Patch0: %{name}-collection.patch
f6984413 42URL: http://collectd.org/
aedbf1de 43%{?with_ipmi:BuildRequires: OpenIPMI-devel >= 2.0.14-3}
373d486f
AF
44BuildRequires: autoconf
45BuildRequires: automake
1018cae1 46%{?with_curl:BuildRequires: curl-devel}
a833d36c 47BuildRequires: hal-devel
13d220ef 48%{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4}
1f546c2e 49BuildRequires: libdbi-devel
1018cae1 50%{?with_libesmtp:BuildRequires: libesmtp-devel}
1f546c2e 51BuildRequires: libltdl-devel
7e70ab62 52%{?with_netlink:BuildRequires: libnetlink-devel}
1018cae1
TP
53%{?with_notify:BuildRequires: libnotify-devel}
54%{?with_ping:BuildRequires: liboping-devel}
7e70ab62 55%{?with_dns:BuildRequires: libpcap-devel}
8bf13ddb 56BuildRequires: libstatgrab-devel >= 0.12
daff3c99 57BuildRequires: libstdc++-devel
373d486f 58BuildRequires: libtool
1018cae1
TP
59%{?with_xml:BuildRequires: libxml2-devel}
60%{?with_sensors:BuildRequires: lm_sensors-devel}
61%{?with_mysql:BuildRequires: mysql-devel}
daff3c99 62%{?with_snmp:BuildRequires: net-snmp-devel}
1018cae1 63%{?with_ups:BuildRequires: nut-devel}
18e77dbc 64BuildRequires: perl-devel
1018cae1 65%{?with_psql:BuildRequires: postgresql-devel}
c7024cdb 66BuildRequires: rpmbuild(macros) >= 1.268
1018cae1 67%{?with_rrd:BuildRequires: rrdtool-devel}
1018cae1 68%{?with_xmms:BuildRequires: xmms-devel}
7df111b4 69Requires(post,preun): /sbin/chkconfig
c7024cdb 70Requires: rc-scripts
373d486f
AF
71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72
30751942
TP
73%define _pkglibdir %{_sharedstatedir}/%{name}
74%define _webapps /etc/webapps
75%define _webapp %{name}
76%define _webappdir %{_webapps}/%{_webapp}
77%define _appdir %{_datadir}/%{_webapp}
9259a6ab 78
373d486f 79%description
7df111b4
JB
80collectd is a small daemon which collects system information every 10
81seconds and writes the results in an RRD-file.
82
83In contrast to most similar software, collectd is not a script but
84written in plain C for performance and portability. As a daemon it
85stays in memory, so there is no need to start up a heavy interpreter
86every time new values should be logged. This allows collectd to have a
8710 second resolution while being nice to the system.
88
19cbcad3 89%description -l pl.UTF-8
f26b05df 90collectd to mały demon zbierający co 10 sekund informacje o systemie
91i zapisujący wyniki do pliku RRD.
373d486f 92
19cbcad3
JR
93W odróżnieniu od innych podobnych programów collectd nie jest
94skryptem, lecz jest napisany w czystym C z myślą o wydajności i
95przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
f26b05df 96urychamiania ciężkiego interpretera za każdym razem, kiedy powinny
97być zapisane nowe wartości. Dzięki temu collect może mieć
98rozdzielczość 10 sekund i nie obciążać zbytnio systemu.
373d486f 99
b8e7f76a 100%package libs
7e70ab62
TP
101Summary: %{name} libraries
102Summary(pl.UTF-8): Biblioteki %{name}
103Group: Libraries
b8e7f76a
PG
104
105%description libs
106%{name} libraries.
107
108%description libs -l pl.UTF-8
109Biblioteki %{name}.
110
111%package devel
7e70ab62
TP
112Summary: Header files for %{name} libraries
113Summary(pl.UTF-8): Pliki nagłówkowe bibliotek %{name}
114Group: Development/Libraries
115Requires: %{name}-libs = %{version}-%{release}
b8e7f76a
PG
116
117%description devel
118Header files for %{name} libraries.
119
120%description devel -l pl.UTF-8
121Pliki nagłówkowe bibliotek %{name}.
122
80d5b170 123%package static
124Summary: Static files for %{name} libraries
125Summary(pl.UTF-8): Pliki statyczne bibliotek %{name}
126Group: Development/Libraries
127Requires: %{name}-libs = %{version}-%{release}
128
129%description static
130Static files for %{name} libraries.
131
daff3c99 132%description static -l pl.UTF-8
80d5b170 133Pliki statyczne bibliotek %{name}.
134
18e77dbc 135%package apache
273ffc81
JB
136Summary: apache-plugin for collectd
137Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
18e77dbc 138Group: Daemons
273ffc81 139Requires: %{name} = %{version}-%{release}
18e77dbc 140
141%description apache
daff3c99 142This plugin collect data provided by Apache's `mod_status'.
18e77dbc 143
144%description apache -l pl.UTF-8
273ffc81
JB
145Wtyczka collectd zbierająca informacje udostępniane przez moduł
146'mod_status' Apacha.
18e77dbc 147
5e965dc7
PG
148%package apcups
149Summary: APC UPS plugin for collectd
150Summary(pl_PL.UTF-8): Wtyczka APC UPS dla collectd
151Group: Daemons
152Requires: %{name} = %{version}-%{release}
153
154%description apcups
155APC UPS plugin for collectd.
156
157%package ascent
158Summary: ascent-plugin for collectd
159Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
160Group: Daemons
161Requires: %{name} = %{version}-%{release}
162
163%description ascent
164ascent plugin for collectd.
165
166%package battery
167Summary: battery plugin for collectd
168Summary(pl_PL.UTF-8): Wtyczka battery dla collectd
169Group: Daemons
170Requires: %{name} = %{version}-%{release}
171
172%description battery
173This plugin collects the battery's charge, the drawn current and the
174battery's voltage.
175
b8e7f76a
PG
176%package bind
177Summary: bind plugin for collectd
178Summary(pl_PL.UTF-8): Wtyczka bind dla collectd
179Group: Daemons
180Requires: %{name} = %{version}-%{release}
181
182%description bind
daff3c99
ER
183Starting with BIND 9.5.0, the most widely used DNS server software
184provides extensive statistics about queries, responses and lots of
185other information. The bind plugin retrieves this information that's
186encoded in XML and provided via HTTP and submits the values to
187collectd.
b8e7f76a 188
133ab397 189%package collection
30751942
TP
190Summary: Web script for collectd
191Summary(pl_PL.UTF-8): Web script for collectd
5fafedfc 192Group: Applications/WWW
193Requires: %{name} = %{version}-%{release}
cdf53ab5
PG
194Requires: perl(CGI)
195Requires: perl(Data::Dumper)
196Requires: perl(HTML::Entities)
197Requires: perl(RRDs)
198Requires: perl(URI::Escape)
199Requires: webserver(cgi)
16598688 200Suggests: fonts-TTF-DejaVu
5fafedfc 201
133ab397 202%description collection
30751942 203Web script for collectd.
5fafedfc 204
f26b05df 205%package collection3
206Summary: Web script for collectd
207Summary(pl_PL.UTF-8): Web script for collectd
208Group: Applications/WWW
209Requires: %{name} = %{version}-%{release}
210Requires: perl(Config::General)
211Requires: perl(HTML::Entities)
212Requires: perl(RRDs)
213Requires: webserver(cgi)
214Suggests: fonts-TTF-DejaVu
215
216%description collection3
217Web script for collectd.
218
d94da88b 219%package conntrack
220Summary: conntrack-plugin for collectd
221Summary(pl_PL.UTF-8): Wtyczka conntrack dla collectd
222Group: Daemons
223Requires: %{name} = %{version}-%{release}
224
225%description conntrack
226The conntrack-plugin collects the connection tracking table size.
227
5e965dc7
PG
228%package cpu
229Summary: cpu-plugin for collectd
230Summary(pl_PL.UTF-8): Wtyczka cpu dla collectd
231Group: Daemons
232Requires: %{name} = %{version}-%{release}
233
234%description cpu
daff3c99
ER
235The cpu-plugin collects the amount of time spent by the CPU in various
236states, most notably executing user code, executing system code,
237waiting for IO operations and being idle.
5e965dc7
PG
238
239%package cpufreq
240Summary: cpufreq-plugin for collectd
241Summary(pl_PL.UTF-8): Wtyczka cpufreq dla collectd
242Group: Daemons
243Requires: %{name} = %{version}-%{release}
244
245%description cpufreq
246Collects the current CPU's frequency, mostly for mobile computers.
247
248%package csv
249Summary: CSV output plugin for collectd
250Summary(pl_PL.UTF-8): Wtyczka wyjściowa CSV dla collectd
251Group: Daemons
252Requires: %{name} = %{version}-%{release}
253
254%description csv
255CSV output plugin for collectd.
256
b8e7f76a
PG
257%package curl
258Summary: cURL output plugin for collectd
259Summary(pl_PL.UTF-8): Wtyczka wyjściowa cURL dla collectd
260Group: Daemons
261Requires: %{name} = %{version}-%{release}
262
263%description curl
264The curl plugin uses the libcurl to read web pages and the match
265infrastructure (the same code used by the tail plugin) to use regular
266expressions with the received data.
267
268%package dbi
269Summary: dbi plugin for collectd
270Summary(pl_PL.UTF-8): Wtyczka dbi dla collectd
271Group: Daemons
272Requires: %{name} = %{version}-%{release}
273
274%description dbi
daff3c99
ER
275This plugin uses the dbi library to connect to various databases,
276execute SQL statements and read back the results. dbi is an acronym
277for "database interface" in case you were wondering about the name.
278You can configure how each column is to be interpreted and the plugin
279will generate one or more data sets from each row returned according
280to these rules.
b8e7f76a 281
5e965dc7
PG
282%package df
283Summary: df-plugin for collectd
284Summary(pl_PL.UTF-8): Wtyczka df dla collectd
285Group: Daemons
286Requires: %{name} = %{version}-%{release}
287
288%description df
daff3c99
ER
289The df-plugin collects file system usage information, i. e. basically
290how much space on a mounted partition is used and how much is
291available. It's named after and very similar to the df(1) UNIX command
292that's been around forever.
5e965dc7
PG
293
294%package disk
295Summary: disk-plugin for collectd
296Summary(pl_PL.UTF-8): Wtyczka disk dla collectd
297Group: Daemons
298Requires: %{name} = %{version}-%{release}
299
300%description disk
301This plugin collects performance statistics of harddisks and, where
302supported, partitions.
303
8bf13ddb
PG
304%package dns
305Summary: dns-plugin for collectd
306Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
307Group: Daemons
308Requires: %{name} = %{version}-%{release}
3a1b5393 309Requires: perl-rrdtool
ef79d9ea 310
8bf13ddb 311%description dns
daff3c99
ER
312This plugin has a similar functionality to dnstop: It uses libpcap to
313get a copy of all traffic from/to port UDP/53 (that's the DNS port),
314interprets the packets and collects statistics of your DNS traffic.
5e965dc7
PG
315
316%package email
317Summary: email-plugin for collectd
318Summary(pl_PL.UTF-8): Wtyczka email dla collectd
319Group: Daemons
320Requires: %{name} = %{version}-%{release}
321
322%description email
323The email plugin opens an UNIX-socket over which one can submit email
daff3c99
ER
324statistics, such as the number of ``ham'', ``spam'', ``virus'', etc.
325mails received/handled, spam scores and matched spam checks.
5e965dc7
PG
326
327This plugin is intended to be used with the the
daff3c99
ER
328Mail::SpamAssassin::Plugin::Collectd manpage SpamAssassin-plugin which
329is included in contrib/, but is of course not limited to that use.
5e965dc7
PG
330
331%package entropy
332Summary: entropy-plugin for collectd
333Summary(pl_PL.UTF-8): Wtyczka entropy dla collectd
334Group: Daemons
335Requires: %{name} = %{version}-%{release}
336
337%description entropy
338entropy plugin for collectd.
339
340%package exec
341Summary: exec-plugin for collectd
342Summary(pl_PL.UTF-8): Wtyczka exec dla collectd
343Group: Daemons
344Requires: %{name} = %{version}-%{release}
345
346%description exec
347The exec plugin forks of an executable either to receive values or to
348dispatch notifications to the outside world.
349
350%package filecount
351Summary: filecount-plugin for collectd
352Summary(pl_PL.UTF-8): Wtyczka filecount dla collectd
353Group: Daemons
354Requires: %{name} = %{version}-%{release}
355
356%description filecount
daff3c99
ER
357The filecount-plugin does something very simple: Count the number of
358files in a directory and all its subdirectories. This can be used for
359a variety of statistics, for example the queue length of an MTA, the
360number of PHP sessions of a web server or simply the number of files
361in your home directory.
8bf13ddb 362
d94da88b 363%package fscache
364Summary: fscache-plugin for collectd
365Summary(pl_PL.UTF-8): Wtyczka fscache dla collectd
366Group: Daemons
367Requires: %{name} = %{version}-%{release}
368
369%description fscache
daff3c99
ER
370The fscache-plugin collects statistics about Linux file-system based
371caching framework.
d94da88b 372
8bf13ddb
PG
373%package hddtemp
374Summary: hddtemp-plugin for collectd
375Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
376Group: Daemons
377Requires: %{name} = %{version}-%{release}
b73c1be9 378Suggests: hddtemp-hddtempd
8bf13ddb
PG
379
380%description hddtemp
daff3c99
ER
381Temperature of harddisks. The temperatures are provided via S.M.A.R.T.
382and queried by the external hddtemp-daemon.
5e965dc7
PG
383
384%package interface
385Summary: interface-plugin for collectd
386Summary(pl_PL.UTF-8): Wtyczka interface dla collectd
387Group: Daemons
388Requires: %{name} = %{version}-%{release}
389
390%description interface
daff3c99
ER
391The interface-plugin collects information about the traffic (octets),
392packets and errors of interfaces.
5e965dc7
PG
393
394%package iptables
395Summary: iptables-plugin for collectd
396Summary(pl_PL.UTF-8): Wtyczka iptables dla collectd
397Group: Daemons
398Requires: %{name} = %{version}-%{release}
399
400%description iptables
401With this plugin you can gather statistics from your ip_tables based
daff3c99
ER
402packetfilter (aka. firewall). It can collect the byte- and
403packet-counters of selected rules and submit them to collectd. You can
404select rules that should be collected wither by its position (e.g.
405"the fourth rule in the INPUT queue in the filter table") or by its
406comment (using the COMMENT match). This means that depending on your
407firewall layout you can collect certain services (such as the amount
408of web-traffic), source or destination hosts or networks, dropped
409packets and much more.
8bf13ddb 410
87ba198e 411%package ipmi
412Summary: ipmi-plugin for collectd
413Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd
414Group: Daemons
415Requires: %{name} = %{version}-%{release}
416
417%description ipmi
418ipmi plugin for collectd.
419
34fc103e
JB
420%description ipmi -l pl.UTF-8
421Wtyczka ipmi dla collectd.
422
5e965dc7
PG
423%package irq
424Summary: IRQs-plugin for collectd
425Summary(pl_PL.UTF-8): Wtyczka IRQs dla collectd
426Group: Daemons
427Requires: %{name} = %{version}-%{release}
428
429%description irq
430IRQs plugin for collectd.
431
432%package load
433Summary: load-plugin for collectd
434Summary(pl_PL.UTF-8): Wtyczka load dla collectd
435Group: Daemons
436Requires: %{name} = %{version}-%{release}
437
438%description load
439Collects the system load. These numbers give a rough overview over the
440utilization of a machine, though their meaning is mostly overrated.
441
442%package logfile
443Summary: logfile-plugin for collectd
444Summary(pl_PL.UTF-8): Wtyczka logfile dla collectd
445Group: Daemons
446Requires: %{name} = %{version}-%{release}
447
448%description logfile
449Logfile plugin for collectd.
450
b8e7f76a
PG
451%package match_regex
452Summary: match_regex plugin for collectd
453Summary(pl_PL.UTF-8): Wtyczka match_regex dla collectd
454Group: Daemons
455Requires: %{name} = %{version}-%{release}
456
457%description match_regex
458match_regex plugin for collectd.
459
460%package match_timediff
461Summary: match_timediff plugin for collectd
462Summary(pl_PL.UTF-8): Wtyczka match_timediff dla collectd
463Group: Daemons
464Requires: %{name} = %{version}-%{release}
465
466%description match_timediff
467match_timediff plugin for collectd.
468
469%package match_value
470Summary: match_value plugin for collectd
471Summary(pl_PL.UTF-8): Wtyczka match_value dla collectd
472Group: Daemons
473Requires: %{name} = %{version}-%{release}
474
475%description match_value
476match_value plugin for collectd.
477
5e965dc7 478%package mbmon
b8e7f76a 479Summary: mbmon plugin for collectd
5e965dc7
PG
480Summary(pl_PL.UTF-8): Wtyczka mbmon dla collectd
481Group: Daemons
482Requires: %{name} = %{version}-%{release}
483
484%description mbmon
485The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
486
487%package memcached
488Summary: memcached-plugin for collectd
489Summary(pl_PL.UTF-8): Wtyczka memcached dla collectd
490Group: Daemons
491Requires: %{name} = %{version}-%{release}
492
493%description memcached
daff3c99
ER
494The memcached plugin connects to a memcached daemon and collects the
495number of connections and requests handled by the daemon, the CPU
496resources consumed, number of items cached, number of threads, and
497bytes sent and received.
5e965dc7
PG
498
499%package memory
500Summary: memory-plugin for collectd
501Summary(pl_PL.UTF-8): Wtyczka memory dla collectd
502Group: Daemons
503Requires: %{name} = %{version}-%{release}
504
505%description memory
506Collects physical memory utilization for collectd.
507
508%package multimeter
509Summary: multimeter-plugin for collectd
510Summary(pl_PL.UTF-8): Wtyczka multimeter dla collectd
511Group: Daemons
512Requires: %{name} = %{version}-%{release}
513
514%description multimeter
515Multimeter plugin for collectd.
516
18e77dbc 517%package mysql
273ffc81
JB
518Summary: mysql-plugin for collectd
519Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
18e77dbc 520Group: Daemons
273ffc81 521Requires: %{name} = %{version}-%{release}
e00e3af9 522Requires: mysql-client
18e77dbc 523
524%description mysql
273ffc81 525MySQL querying plugin. This plugins provides data of issued commands,
18e77dbc 526called handlers and database traffic.
527
528%description mysql -l pl.UTF-8
273ffc81
JB
529Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
530poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
18e77dbc 531
5e965dc7
PG
532%package netlink
533Summary: netlink-plugin for collectd
534Summary(pl_PL.UTF-8): Wtyczka netlink dla collectd
535Group: Daemons
536Requires: %{name} = %{version}-%{release}
537
538%description netlink
daff3c99
ER
539This plugin will open a netlink socket to the Linux kernel and use it
540to get statistics for interfaces, qdiscs, classes, and, if you can
541make use of it, filters. Since in most setups many of the statistics
542this plugin can collect aren't of interest, you can select which
543information to gather using the configuration.
5e965dc7
PG
544
545%package network
546Summary: network-plugin for collectd
547Summary(pl_PL.UTF-8): Wtyczka network dla collectd
548Group: Daemons
549Requires: %{name} = %{version}-%{release}
550
551%description network
552nginx plugin for collectd.
553
554%package nfs
555Summary: NFS-plugin for collectd
556Summary(pl_PL.UTF-8): Wtyczka NFS dla collectd
557Group: Daemons
558Requires: %{name} = %{version}-%{release}
559
560%description nfs
daff3c99
ER
561The nfs plugin counts the number of procedure calls of the different
562NFS procedures.
5e965dc7 563
8bf13ddb
PG
564%package nginx
565Summary: nginx-plugin for collectd
566Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
567Group: Daemons
568Requires: %{name} = %{version}-%{release}
569
570%description nginx
daff3c99
ER
571This plugin collects the number of connections and requests handled by
572the nginx daemon, a HTTP and mail server/proxy. It queries the page
573provided by the ngx_http_stub_status_module module, which isn't
574compiled by default.
8bf13ddb 575
7be39ce7 576%package notify_desktop
577Summary: notify_desktop for collectd
578Summary(pl_PL.UTF-8): Wtyczka notify_desktop dla collectd
579Group: Daemons
580Requires: %{name} = %{version}-%{release}
6af07819 581Requires: dbus(org.freedesktop.Notifications)
7be39ce7 582
583%description notify_desktop
5e965dc7 584This plugin sends a desktop notification to a notification daemon, as
6af07819 585defined in the Desktop Notification Specification.
7be39ce7 586
b4b27e4a 587%package notify_email
5e965dc7 588Summary: notify_email-plugin for collectd
b4b27e4a
PG
589Summary(pl_PL.UTF-8): Wtyczka notify_email dla collectd
590Group: Daemons
591Requires: %{name} = %{version}-%{release}
592
593%description notify_email
594notify_email plugin for collectd.
595
5e965dc7
PG
596%package ntpd
597Summary: ntpd-plugin for collectd
598Summary(pl_PL.UTF-8): Wtyczka ntpd dla collectd
599Group: Daemons
600Requires: %{name} = %{version}-%{release}
601
602%description ntpd
603NTPd plugin for collectd.
604
b4b27e4a
PG
605%package nut
606Summary: nut-plugin for collectd
607Summary(pl_PL.UTF-8): Wtyczka nut dla collectd
608Group: Daemons
609Requires: %{name} = %{version}-%{release}
610
611%description nut
5e965dc7 612UPS statistics using the Network UPS Tools. These statistics include
daff3c99
ER
613basically everything NUT will give us, including voltages, currents,
614power, frequencies, load, and temperatures.
b4b27e4a 615
b8e7f76a
PG
616%package openvpn
617Summary: openvpn plugin for collectd
618Summary(pl_PL.UTF-8): Wtyczka openvpn dla collectd
619Group: Daemons
620Requires: %{name} = %{version}-%{release}
621Requires: openvpn
622
623%description openvpn
daff3c99
ER
624The OpenVPN plugin reads a status file maintained by OpenVPN and
625gathers traffic statistics about connected clients.
b8e7f76a 626
907cfb56
PG
627%package ping
628Summary: ping-plugin for collectd
629Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
630Group: Daemons
631Requires: %{name} = %{version}-%{release}
daff3c99 632Requires: liboping >= 1.1.2
907cfb56
PG
633
634%description ping
daff3c99
ER
635The network latency is measured as a roundtrip time. An
636ICMP-echo-request (aka. "ping")is sent to a host and the time needed
637for his echo-reply (aka. "pong") to arrive is measured. If a reply is
638not received within one second the plugin will no longer expect a
639reply and return. This may happen in several circumstances, e. g. the
640packet is lost, the host is down, a router has dismissed the packet,
641etc.
907cfb56 642
b4b27e4a
PG
643%package postgresql
644Summary: mysql-plugin for collectd
645Summary(pl_PL.UTF-8): Moduł postgresql dla collectd.
646Group: Daemons
647Requires: %{name} = %{version}-%{release}
648
649%description postgresql
daff3c99
ER
650The postgresql plugin queries statistics from PostgreSQL databases. It
651keeps a persistent connection to all configured databases and tries to
652reconnect if the connection has been interrupted.
b4b27e4a 653
4b6e34c7 654%package powerdns
655Summary: powerdns-plugin for collectd
656Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd
657Group: Daemons
658Requires: %{name} = %{version}-%{release}
659
660%description powerdns
5e965dc7 661The powerdns plugin queries statistics from an authoritative PowerDNS
daff3c99
ER
662nameserver and/or a PowerDNS recursor. Since both offer a wide variety
663of values, many of which are probably meaningless to most users, but
664may be useful for some.
5e965dc7
PG
665
666%package processes
667Summary: processes-plugin for collectd
668Summary(pl_PL.UTF-8): Wtyczka processes dla collectd
669Group: Daemons
670Requires: %{name} = %{version}-%{release}
671
672%description processes
daff3c99
ER
673This plugin collects the number of processes, grouped by their state
674(e.g. running, sleeping, zombies, etc.). In addition to that, it can
675select detailed statistics about selected processes, grouped by name.
4b6e34c7 676
d94da88b 677%package protocols
678Summary: protocols-plugin for collectd
679Summary(pl_PL.UTF-8): Wtyczka protocols dla collectd
680Group: Daemons
681Requires: %{name} = %{version}-%{release}
682
683%description protocols
daff3c99
ER
684The protocols-plugin provides information about network protocols,
685such as IP, TCP and UDP.
d94da88b 686
8bf13ddb
PG
687%package rrdtool
688Summary: rrdtool-plugin for collectd
689Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
690Group: Daemons
691Requires: %{name} = %{version}-%{release}
692Requires: rrdtool
693
694%description rrdtool
695RRDTOOL plugin for collectd.
696
697%package sensors
698Summary: sensors-plugin for collectd
699Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
700Group: Daemons
701Requires: %{name} = %{version}-%{release}
702
703%description sensors
5e965dc7 704This plugin uses lm-sensors to read hardware sensors. You will need to
daff3c99
ER
705configure lm-sensors before this plugin will collect any usefull and
706correct data.
5e965dc7 707
5e965dc7
PG
708%package serial
709Summary: serial-plugin for collectd
710Summary(pl_PL.UTF-8): Wtyczka serial dla collectd
711Group: Daemons
712Requires: %{name} = %{version}-%{release}
713
714%description serial
715Serial plugin for collectd.
8bf13ddb
PG
716
717%package snmp
718Summary: snmp-plugin for collectd
719Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
720Group: Daemons
721Requires: %{name} = %{version}-%{release}
722
723%description snmp
5e965dc7 724The snmp plugin queries other hosts using SNMP, the Simple Network
daff3c99
ER
725Management Protocol, and translates the value it receives to
726collectd's internal format and dispatches them. Depending on the write
727plugins you have loaded they may be written to disk or submitted to
728another instance or whatever you configured.
5e965dc7
PG
729
730%package swap
731Summary: swap-plugin for collectd
732Summary(pl_PL.UTF-8): Wtyczka swap dla collectd
733Group: Daemons
734Requires: %{name} = %{version}-%{release}
735
736%description swap
737Swap space plugin for collectd.
738
739%package syslog
740Summary: syslog-plugin for collectd
741Summary(pl_PL.UTF-8): Wtyczka syslog dla collectd
742Group: Daemons
743Requires: %{name} = %{version}-%{release}
744
745%description syslog
746Syslog plugin for collectd.
747
d94da88b 748%package table
749Summary: table-plugin for collectd
750Summary(pl_PL.UTF-8): Wtyczka table dla collectd
751Group: Daemons
752Requires: %{name} = %{version}-%{release}
753
754%description table
755The table-plugin provides parsing for table-like structured files,
756such as many files beneath /proc.
757
b8e7f76a
PG
758%package target_notification
759Summary: target_notification-plugin for collectd
760Summary(pl_PL.UTF-8): Wtyczka target_notification dla collectd
761Group: Daemons
762Requires: %{name} = %{version}-%{release}
763
764%description target_notification
765target_notification plugin for collectd.
766
767%package target_replace
768Summary: target_replace-plugin for collectd
769Summary(pl_PL.UTF-8): Wtyczka target_replace dla collectd
770Group: Daemons
771Requires: %{name} = %{version}-%{release}
772
773%description target_replace
774target_replace plugin for collectd.
775
776%package target_set
777Summary: target_set-plugin for collectd
778Summary(pl_PL.UTF-8): Wtyczka target_set dla collectd
779Group: Daemons
780Requires: %{name} = %{version}-%{release}
781
782%description target_set
783target_set plugin for collectd.
784
5e965dc7
PG
785%package tail
786Summary: tail-plugin for collectd
787Summary(pl_PL.UTF-8): Wtyczka tail dla collectd
788Group: Daemons
789Requires: %{name} = %{version}-%{release}
790
791%description tail
daff3c99
ER
792The tail-plugin can be used to "tail" logfiles, i.e. follow them as
793tail -F does. Each line is given to one or more "matches" which test
794if the line is relevant for any statistics using a regular expression.
5e965dc7
PG
795
796%package tcpconns
797Summary: tcpconns-plugin for collectd
798Summary(pl_PL.UTF-8): Wtyczka tcpconns dla collectd
799Group: Daemons
800Requires: %{name} = %{version}-%{release}
801
802%description tcpconns
803The tcpconns-plugin counts the number of TCP connections to or from a
daff3c99
ER
804specified port. Typically the connectioins where you specify the local
805port are incoming connections while the connections where you specify
806the remote port are outgoing connections.
5e965dc7
PG
807
808%package teamspeak2
809Summary: teamspeak2-plugin for collectd
810Summary(pl_PL.UTF-8): Wtyczka teamspeak2 dla collectd
811Group: Daemons
812Requires: %{name} = %{version}-%{release}
813
814%description teamspeak2
daff3c99
ER
815The teamspeak2 plugin connects to the query port of a teamspeak2
816server and polls interesting global and virtual server data. The
817plugin can query only one physical server but unlimited virtual
818servers.
5e965dc7 819
d94da88b 820%package ted
821Summary: ted-plugin for collectd
822Summary(pl_PL.UTF-8): Wtyczka ted dla collectd
823Group: Daemons
824Requires: %{name} = %{version}-%{release}
825
826%description ted
daff3c99
ER
827The TED-plugin reads power consumption measurements from “The Energy
828Detective” (TED).
d94da88b 829
5e965dc7
PG
830%package thermal
831Summary: thermal-plugin for collectd
832Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd
833Group: Daemons
834Requires: %{name} = %{version}-%{release}
835
836%description thermal
837Thermal plugin for collectd.
838
839%package unixsock
840Summary: unixsock-plugin for collectd
841Summary(pl_PL.UTF-8): Wtyczka unixsock dla collectd
842Group: Daemons
843Requires: %{name} = %{version}-%{release}
844
845%description unixsock
daff3c99
ER
846The unixsock plugin opens an UNIX-socket over which one can interact
847with the daemon. This can be used to use the values collected by
848collectd in other applications, such as monitoring, or submit
849externally collected values to collectd.
5e965dc7 850
d94da88b 851%package uptime
852Summary: uptime-plugin for collectd
853Summary(pl_PL.UTF-8): Wtyczka uptime dla collectd
854Group: Daemons
855Requires: %{name} = %{version}-%{release}
856
857%description uptime
858The uptime-plugin can collect the server's uptime.
859
5e965dc7
PG
860%package users
861Summary: users-plugin for collectd
862Summary(pl_PL.UTF-8): Wtyczka users dla collectd
863Group: Daemons
864Requires: %{name} = %{version}-%{release}
865
866%description users
867Number of users currently logged in.
8bf13ddb
PG
868
869%package uuid
870Summary: uuid-plugin for collectd
871Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
872Group: Daemons
873Requires: %{name} = %{version}-%{release}
874
875%description uuid
daff3c99
ER
876This plugin, if loaded, causes the Hostname to be taken from the
877machine's UUID. The UUID is a universally unique designation for the
878machine, usually taken from the machine's BIOS. This is most useful if
879the machine is running in a virtual environment such as Xen, in which
880case the UUID is preserved across shutdowns and migration.
5e965dc7
PG
881
882%package vmem
883Summary: vmem-plugin for collectd
884Summary(pl_PL.UTF-8): Wtyczka vmem dla collectd
885Group: Daemons
886Requires: %{name} = %{version}-%{release}
887
888%description vmem
daff3c99
ER
889The vmem plugin collects information about the usage of virtual
890memory. Since the statistics provided by the Linux kernel are very
891detailed, they are collected very detailed.
5e965dc7
PG
892
893%package vserver
894Summary: vserver-plugin for collectd
895Summary(pl_PL.UTF-8): Wtyczka vserver dla collectd
896Group: Daemons
897Requires: %{name} = %{version}-%{release}
898
899%description vserver
daff3c99
ER
900Collects information about the virtual servers running on a system,
901using Linux-Vserver.
5e965dc7
PG
902
903%package wireless
904Summary: wireless-plugin for collectd
905Summary(pl_PL.UTF-8): Wtyczka wireless dla collectd
906Group: Daemons
907Requires: %{name} = %{version}-%{release}
908
909%description wireless
910Wireless plugin for collectd.
8bf13ddb
PG
911
912%package xmms
913Summary: xmms-plugin for collectd
914Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
915Group: Daemons
916Requires: %{name} = %{version}-%{release}
8bf13ddb
PG
917
918%description xmms
919This plugin collectd data provided by XMMS.
920
f26b05df 921%package -n perl-Collectd
922Summary: Perl files from Collectd package
923Group: Daemons
924
925%description -n perl-Collectd
926Perl files from Collectd package
927
373d486f
AF
928%prep
929%setup -q
cdf53ab5 930%patch0 -p1
526f2b1b 931
373d486f
AF
932%build
933%{__libtoolize}
934%{__aclocal}
935%{__autoconf}
936%{__autoheader}
937%{__automake}
4b6e34c7 938
373d486f
AF
939%configure \
940 --with-libstatgrab=/usr \
941 --with-lm-sensors=/usr \
4b6e34c7 942 --with-libmysql=/usr \
34fc103e 943 --%{?with_dns:en}%{!?with_dns:dis}able-dns \
7e70ab62 944 --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \
34fc103e 945 --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \
7e70ab62 946 --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \
1018cae1 947 --%{?with_mysql:en}%{!?with_mysql:dis}able-mysql \
95c10a4d 948 --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \
1018cae1
TP
949 --%{?with_notify:en}%{!?with_notify:dis}able-notify_desktop \
950 --%{?with_libesmtp:en}%{!?with_libesmtp:dis}able-notify_email \
951 --%{?with_ups:en}%{!?with_ups:dis}able-nut \
952 --%{?with_ping:en}%{!?with_ping:dis}able-ping \
953 --%{?with_psql:en}%{!?with_psql:dis}able-postgresql \
876407e2 954 --%{?with_rrd:en}%{!?with_rrd:dis}able-rrdtool \
1018cae1
TP
955 --%{?with_sensors:en}%{!?with_sensors:dis}able-sensors \
956 --%{?with_snmp:en}%{!?with_snmp:dis}able-snmp \
957 --%{?with_xmms:en}%{!?with_xmms:dis}able-xmms \
958 %{!?with_curl:--disable-{apache,ascent,bind,curl,nginx}} \
556a9493 959 %{!?with_xml:--disable-{ascent,bind,libvirt}} \
aedbf1de
PG
960 --disable-ipvs \
961 --disable-libvirt \
962 --disable-perl
4b6e34c7 963
964
87ba198e 965%{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
966 BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
f26b05df 967 BUILD_WITH_OPENIPMI_LIBS="-L%{_libdir} -lOpenIPMIutils -lOpenIPMIpthread"
373d486f
AF
968
969%install
970rm -rf $RPM_BUILD_ROOT
711f12a6 971install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
f26b05df 972 $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir},%{perl_vendorlib}/}
373d486f
AF
973
974%{__make} install \
975 DESTDIR=$RPM_BUILD_ROOT
81857fc6 976
e105712e 977touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
ff0d0ea0 978install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
373d486f 979
96376a8d
PG
980# Web frontend:
981install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
982install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
983install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
984install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
cdf53ab5 985install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
96376a8d 986
f26b05df 987cp -R contrib/collection3 $RPM_BUILD_ROOT%{_appdir}
988
711f12a6 989### Configs instalation ###
b8e7f76a
PG
990for i in `egrep "^(#|)LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do
991 egrep "LoadPlugin $i$" src/collectd.conf | %{__sed} -e "s/^#//" > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
4929f1a7 992 grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
cbe0cde9 993done
994
711f12a6
PG
995# Example config in sources: src/collectd.conf
996install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
4929f1a7
PG
997
998# Overwrite only files which we want to change:
999install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf
1000install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
711f12a6 1001
f26b05df 1002mv $RPM_BUILD_ROOT%{_datadir}/perl5/Collectd* $RPM_BUILD_ROOT%{perl_vendorlib}/
1003
96376a8d
PG
1004# Cleanups:
1005rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
1006
373d486f
AF
1007%clean
1008rm -rf $RPM_BUILD_ROOT
1009
81857fc6 1010%post
373d486f
AF
1011/sbin/chkconfig --add %{name}
1012%service %{name} restart
1013
81857fc6 1014%preun
373d486f
AF
1015if [ "$1" = "0" ]; then
1016 %service -q %{name} stop
1017 /sbin/chkconfig --del %{name}
1018fi
1019
b8e7f76a
PG
1020%post libs -p /sbin/ldconfig
1021%postun libs -p /sbin/ldconfig
1022
bed4848f
PG
1023%define module_scripts() \
1024%post %1 \
1025%service %{name} restart \
1026\
1027%postun %1 \
1028%service %{name} restart
1029
0e2c8900 1030%module_scripts apache
5e965dc7 1031%module_scripts apcups
0e2c8900 1032%module_scripts ascent
5e965dc7 1033%module_scripts battery
0e2c8900 1034%module_scripts bind
d94da88b 1035%module_scripts conntrack
5e965dc7 1036%module_scripts cpu
d94da88b 1037%module_scripts cpufreq
5e965dc7 1038%module_scripts csv
0e2c8900 1039%module_scripts curl
b8e7f76a 1040%module_scripts dbi
5e965dc7
PG
1041%module_scripts df
1042%module_scripts disk
0e2c8900 1043%module_scripts dns
5e965dc7
PG
1044%module_scripts email
1045%module_scripts entropy
1046%module_scripts exec
1047%module_scripts filecount
d94da88b 1048%module_scripts fscache
bed4848f 1049%module_scripts hddtemp
5e965dc7 1050%module_scripts interface
0e2c8900
TP
1051%module_scripts ipmi
1052%module_scripts iptables
5e965dc7
PG
1053%module_scripts irq
1054%module_scripts load
1055%module_scripts logfile
b8e7f76a
PG
1056%module_scripts match_regex
1057%module_scripts match_timediff
1058%module_scripts match_value
5e965dc7
PG
1059%module_scripts mbmon
1060%module_scripts memcached
1061%module_scripts memory
0e2c8900
TP
1062%module_scripts multimeter
1063%module_scripts mysql
1064%module_scripts netlink
5e965dc7
PG
1065%module_scripts network
1066%module_scripts nfs
0e2c8900
TP
1067%module_scripts nginx
1068%module_scripts notify_desktop
1069%module_scripts notify_email
5e965dc7 1070%module_scripts ntpd
0e2c8900 1071%module_scripts nut
b8e7f76a 1072%module_scripts openvpn
0e2c8900
TP
1073%module_scripts ping
1074%module_scripts postgresql
bed4848f 1075%module_scripts powerdns
5e965dc7 1076%module_scripts processes
d94da88b 1077%module_scripts protocols
0e2c8900
TP
1078%module_scripts rrdtool
1079%module_scripts sensors
5e965dc7 1080%module_scripts serial
0e2c8900 1081%module_scripts snmp
5e965dc7
PG
1082%module_scripts swap
1083%module_scripts syslog
d94da88b 1084%module_scripts table
5e965dc7 1085%module_scripts tail
b8e7f76a
PG
1086%module_scripts target_notification
1087%module_scripts target_replace
1088%module_scripts target_set
5e965dc7
PG
1089%module_scripts tcpconns
1090%module_scripts teamspeak2
d94da88b 1091%module_scripts ted
5e965dc7
PG
1092%module_scripts thermal
1093%module_scripts unixsock
d94da88b 1094%module_scripts uptime
5e965dc7 1095%module_scripts users
bed4848f 1096%module_scripts uuid
5e965dc7
PG
1097%module_scripts vmem
1098%module_scripts vserver
1099%module_scripts wireless
0e2c8900 1100%module_scripts xmms
bed4848f 1101
96376a8d
PG
1102%triggerin collection -- apache1 < 1.3.37-3, apache1-base
1103%webapp_register apache %{_webapp}
1104
1105%triggerun collection -- apache1 < 1.3.37-3, apache1-base
1106%webapp_unregister apache %{_webapp}
1107
1108%triggerin collection -- apache < 2.2.0, apache-base
1109%webapp_register httpd %{_webapp}
1110
1111%triggerun collection -- apache < 2.2.0, apache-base
1112%webapp_unregister httpd %{_webapp}
1113
73f73519 1114%triggerin collection -- lighttpd
cdf53ab5
PG
1115%webapp_register lighttpd %{_webapp}
1116
73f73519 1117%triggerun collection -- lighttpd
cdf53ab5
PG
1118%webapp_unregister lighttpd %{_webapp}
1119
373d486f
AF
1120%files
1121%defattr(644,root,root,755)
e105712e 1122%doc AUTHORS ChangeLog README TODO contrib
25bc0190
PG
1123%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1124%dir %{_sysconfdir}/%{name}.d
373d486f 1125%attr(755,root,root) %{_sbindir}/collectd
e105712e 1126%attr(755,root,root) %{_sbindir}/collectdmon
18e77dbc 1127%attr(755,root,root) %{_bindir}/collectd-nagios
b8e7f76a
PG
1128%dir %{_datadir}/%{name}
1129%{_datadir}/%{name}/types.db
ff0d0ea0 1130%attr(754,root,root) /etc/rc.d/init.d/%{name}
373d486f 1131%{_mandir}/man1/collectd.1*
18e77dbc 1132%{_mandir}/man1/collectd-nagios.1*
80d5b170 1133%{_mandir}/man1/collectdmon.1*
373d486f 1134%{_mandir}/man5/collectd.conf.5*
daff3c99 1135%{_mandir}/man5/collectd-java.5*
18e77dbc 1136%{_mandir}/man5/collectd-perl.5*
e105712e 1137%{_mandir}/man5/types.db.5*
e105712e 1138%dir %{_var}/lib/%{name}
1139
b8e7f76a
PG
1140%files libs
1141%defattr(644,root,root,755)
1142%attr(755,root,root) %{_libdir}/libcollectdclient.so.*.*.*
1143%attr(755,root,root) %ghost %{_libdir}/libcollectdclient.so.0
421d51c6 1144%dir %{_libdir}/%{name}
b8e7f76a
PG
1145
1146%files devel
1147%defattr(644,root,root,755)
1148%attr(755,root,root) %{_libdir}/libcollectdclient.so
1149%{_libdir}/libcollectdclient.la
1150%dir %{_includedir}/%{name}
1151%{_includedir}/%{name}/*.h
1152%{_pkgconfigdir}/libcollectdclient.pc
1153
80d5b170 1154%files static
1155%defattr(644,root,root,755)
1156%{_libdir}/libcollectdclient.a
1157%{_libdir}/%{name}/*.a
1158
5e965dc7
PG
1159%files collection
1160%defattr(644,root,root,755)
1161%dir %{_webappdir}
1162%config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
1163%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
1164%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
cdf53ab5 1165%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
5e965dc7
PG
1166%dir %{_appdir}
1167%dir %{_appdir}/cgi-bin
1168%attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
1169
f26b05df 1170%files collection3
1171%defattr(644,root,root,755)
1172%{_appdir}/collection3
1173
8bf13ddb 1174########## PLUGINS:
1018cae1
TP
1175%if %{with xml}
1176%if %{with curl}
61ccc70a
TP
1177%files apache
1178%defattr(640,root,root,755)
1179%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
1180%attr(755,root,root) %{_libdir}/%{name}/apache.so
1018cae1
TP
1181%endif
1182%endif
61ccc70a 1183
5e965dc7
PG
1184%files apcups
1185%defattr(644,root,root,755)
1186%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf
1187%attr(755,root,root) %{_libdir}/%{name}/apcups.so
1188
1018cae1 1189%if %{with curl}
8bf13ddb 1190%files ascent
61ccc70a 1191%defattr(640,root,root,755)
711f12a6 1192%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
8bf13ddb 1193%attr(755,root,root) %{_libdir}/%{name}/ascent.so
1018cae1 1194%endif
18e77dbc 1195
5e965dc7 1196%files battery
5fafedfc 1197%defattr(644,root,root,755)
5e965dc7
PG
1198%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf
1199%attr(755,root,root) %{_libdir}/%{name}/battery.so
1200
1018cae1
TP
1201%if %{with xml}
1202%if %{with curl}
b8e7f76a
PG
1203%files bind
1204%defattr(644,root,root,755)
1205%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/bind.conf
1206%attr(755,root,root) %{_libdir}/%{name}/bind.so
1018cae1
TP
1207%endif
1208%endif
b8e7f76a 1209
d94da88b 1210%files conntrack
1211%defattr(644,root,root,755)
1212%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/conntrack.conf
1213%attr(755,root,root) %{_libdir}/%{name}/conntrack.so
1214
5e965dc7
PG
1215%files cpu
1216%defattr(644,root,root,755)
1217%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
1218%attr(755,root,root) %{_libdir}/%{name}/cpu.so
1219
1220%files cpufreq
1221%defattr(644,root,root,755)
1222%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf
1223%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
1224
1225%files csv
1226%defattr(644,root,root,755)
1227%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf
1228%attr(755,root,root) %{_libdir}/%{name}/csv.so
1229
1018cae1 1230%if %{with curl}
b8e7f76a 1231%files curl
61ccc70a 1232%defattr(640,root,root,755)
b8e7f76a
PG
1233%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl.conf
1234%attr(755,root,root) %{_libdir}/%{name}/curl.so
1018cae1 1235%endif
b8e7f76a
PG
1236
1237%files dbi
61ccc70a 1238%defattr(640,root,root,755)
b8e7f76a
PG
1239%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dbi.conf
1240%attr(755,root,root) %{_libdir}/%{name}/dbi.so
1241
5e965dc7
PG
1242%files df
1243%defattr(644,root,root,755)
1244%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf
1245%attr(755,root,root) %{_libdir}/%{name}/df.so
1246
1247%files disk
1248%defattr(644,root,root,755)
1249%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf
1250%attr(755,root,root) %{_libdir}/%{name}/disk.so
5fafedfc 1251
7e70ab62 1252%if %{with dns}
8bf13ddb
PG
1253%files dns
1254%defattr(644,root,root,755)
711f12a6 1255%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
8bf13ddb 1256%attr(755,root,root) %{_libdir}/%{name}/dns.so
7e70ab62 1257%endif
8bf13ddb 1258
5e965dc7
PG
1259%files email
1260%defattr(644,root,root,755)
1261%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf
1262%attr(755,root,root) %{_libdir}/%{name}/email.so
1263%{_mandir}/man5/collectd-email.5*
1264
1265%files entropy
1266%defattr(644,root,root,755)
1267%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
1268%attr(755,root,root) %{_libdir}/%{name}/entropy.so
1269
1270%files exec
1271%defattr(644,root,root,755)
1272%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
1273%attr(755,root,root) %{_libdir}/%{name}/exec.so
1274%{_mandir}/man5/collectd-exec.5*
1275
1276%files filecount
1277%defattr(644,root,root,755)
1278%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
1279%attr(755,root,root) %{_libdir}/%{name}/filecount.so
1280
d94da88b 1281%files fscache
1282%defattr(644,root,root,755)
1283%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/fscache.conf
1284%attr(755,root,root) %{_libdir}/%{name}/fscache.so
1285
8bf13ddb
PG
1286%files hddtemp
1287%defattr(644,root,root,755)
711f12a6 1288%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
8bf13ddb
PG
1289%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
1290
5e965dc7
PG
1291%files interface
1292%defattr(644,root,root,755)
1293%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf
1294%attr(755,root,root) %{_libdir}/%{name}/interface.so
1295
87ba198e 1296%if %{with ipmi}
1297%files ipmi
1298%defattr(644,root,root,755)
711f12a6 1299%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
87ba198e 1300%attr(755,root,root) %{_libdir}/%{name}/ipmi.so
1301%endif
1302
5e965dc7
PG
1303%if %{with iptables}
1304%files iptables
1305%defattr(644,root,root,755)
1306%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf
1307%attr(755,root,root) %{_libdir}/%{name}/iptables.so
1308%endif
1309
1310%files irq
1311%defattr(644,root,root,755)
1312%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf
1313%attr(755,root,root) %{_libdir}/%{name}/irq.so
1314
1315%files load
1316%defattr(644,root,root,755)
1317%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf
1318%attr(755,root,root) %{_libdir}/%{name}/load.so
1319
1320%files logfile
1321%defattr(644,root,root,755)
1322%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf
1323%attr(755,root,root) %{_libdir}/%{name}/logfile.so
4929f1a7 1324%{_var}/log/collectd.log
5e965dc7 1325
b8e7f76a
PG
1326%files match_regex
1327%defattr(644,root,root,755)
1328%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_regex.conf
1329%attr(755,root,root) %{_libdir}/%{name}/match_regex.so
1330
1331%files match_timediff
1332%defattr(644,root,root,755)
1333%attr(755,root,root) %{_libdir}/%{name}/match_timediff.so
80d5b170 1334%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_timediff.conf
b8e7f76a
PG
1335
1336%files match_value
1337%defattr(644,root,root,755)
1338%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_value.conf
1339%attr(755,root,root) %{_libdir}/%{name}/match_value.so
1340
5e965dc7
PG
1341%files mbmon
1342%defattr(644,root,root,755)
1343%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
1344%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
1345
1346%files memcached
1347%defattr(644,root,root,755)
1348%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf
1349%attr(755,root,root) %{_libdir}/%{name}/memcached.so
1350
1351%files memory
1352%defattr(644,root,root,755)
1353%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf
1354%attr(755,root,root) %{_libdir}/%{name}/memory.so
1355
1356%if %{with multimeter}
1357%files multimeter
1358%defattr(644,root,root,755)
1359%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf
1360%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
1361%endif
1362
1018cae1 1363%if %{with mysql}
18e77dbc 1364%files mysql
61ccc70a 1365%defattr(640,root,root,755)
711f12a6 1366%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
18e77dbc 1367%attr(755,root,root) %{_libdir}/%{name}/mysql.so
1018cae1 1368%endif
8bf13ddb 1369
5e965dc7
PG
1370%if %{with netlink}
1371%files netlink
1372%defattr(644,root,root,755)
1373%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf
1374%attr(755,root,root) %{_libdir}/%{name}/netlink.so
1375%endif
1376
1377%files network
1378%defattr(644,root,root,755)
1379%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf
1380%attr(755,root,root) %{_libdir}/%{name}/network.so
1381
1382%files nfs
1383%defattr(644,root,root,755)
1384%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf
1385%attr(755,root,root) %{_libdir}/%{name}/nfs.so
1386
1018cae1 1387%if %{with curl}
8bf13ddb 1388%files nginx
61ccc70a 1389%defattr(640,root,root,755)
711f12a6 1390%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
8bf13ddb 1391%attr(755,root,root) %{_libdir}/%{name}/nginx.so
1018cae1 1392%endif
8bf13ddb 1393
1018cae1 1394%if %{with notify}
7be39ce7 1395%files notify_desktop
1396%defattr(644,root,root,755)
711f12a6 1397%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
7be39ce7 1398%attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
1018cae1 1399%endif
7be39ce7 1400
1018cae1 1401%if %{with libesmtp}
b4b27e4a 1402%files notify_email
61ccc70a 1403%defattr(640,root,root,755)
711f12a6 1404%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
b4b27e4a 1405%attr(755,root,root) %{_libdir}/%{name}/notify_email.so
1018cae1 1406%endif
b4b27e4a 1407
5e965dc7
PG
1408%files ntpd
1409%defattr(644,root,root,755)
1410%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
1411%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
1412
1018cae1 1413%if %{with ups}
b4b27e4a
PG
1414%files nut
1415%defattr(644,root,root,755)
711f12a6 1416%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
b4b27e4a 1417%attr(755,root,root) %{_libdir}/%{name}/nut.so
1018cae1 1418%endif
b4b27e4a 1419
b8e7f76a
PG
1420%files openvpn
1421%defattr(644,root,root,755)
1422%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/openvpn.conf
1423%attr(755,root,root) %{_libdir}/%{name}/openvpn.so
1424
1018cae1 1425%if %{with ping}
907cfb56
PG
1426%files ping
1427%defattr(644,root,root,755)
711f12a6 1428%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
907cfb56 1429%attr(755,root,root) %{_libdir}/%{name}/ping.so
1018cae1 1430%endif
907cfb56 1431
1018cae1 1432%if %{with psql}
b4b27e4a 1433%files postgresql
61ccc70a 1434%defattr(640,root,root,755)
711f12a6 1435%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
b4b27e4a 1436%attr(755,root,root) %{_libdir}/%{name}/postgresql.so
8a56fd06 1437%{_datadir}/%{name}/postgresql_default.conf
1018cae1 1438%endif
b4b27e4a 1439
4b6e34c7 1440%files powerdns
1441%defattr(644,root,root,755)
711f12a6 1442%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
4b6e34c7 1443%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
1444
5e965dc7
PG
1445%files processes
1446%defattr(644,root,root,755)
1447%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
1448%attr(755,root,root) %{_libdir}/%{name}/processes.so
1449
d94da88b 1450%files protocols
1451%defattr(644,root,root,755)
1452%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/protocols.conf
1453%attr(755,root,root) %{_libdir}/%{name}/protocols.so
1454
1018cae1 1455%if %{with rrd}
8bf13ddb
PG
1456%files rrdtool
1457%defattr(644,root,root,755)
711f12a6 1458%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
8bf13ddb 1459%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
1018cae1 1460%endif
8bf13ddb 1461
1018cae1 1462%if %{with sensors}
8bf13ddb
PG
1463%files sensors
1464%defattr(644,root,root,755)
711f12a6 1465%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
8bf13ddb 1466%attr(755,root,root) %{_libdir}/%{name}/sensors.so
1018cae1 1467%endif
8bf13ddb 1468
5e965dc7
PG
1469%files serial
1470%defattr(644,root,root,755)
1471%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf
1472%attr(755,root,root) %{_libdir}/%{name}/serial.so
1473
1018cae1 1474%if %{with snmp}
8bf13ddb
PG
1475%files snmp
1476%defattr(644,root,root,755)
711f12a6 1477%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
8bf13ddb 1478%attr(755,root,root) %{_libdir}/%{name}/snmp.so
5e965dc7 1479%{_mandir}/man5/collectd-snmp.5*
1018cae1 1480%endif
5e965dc7
PG
1481
1482%files swap
1483%defattr(644,root,root,755)
1484%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf
1485%attr(755,root,root) %{_libdir}/%{name}/swap.so
1486
1487%files syslog
1488%defattr(644,root,root,755)
1489%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
1490%attr(755,root,root) %{_libdir}/%{name}/syslog.so
1491
d94da88b 1492%files table
1493%defattr(644,root,root,755)
1494%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/table.conf
1495%attr(755,root,root) %{_libdir}/%{name}/table.so
1496
5e965dc7
PG
1497%files tail
1498%defattr(644,root,root,755)
1499%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
1500%attr(755,root,root) %{_libdir}/%{name}/tail.so
1501
b8e7f76a
PG
1502%files target_notification
1503%defattr(644,root,root,755)
1504%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_notification.conf
1505%attr(755,root,root) %{_libdir}/%{name}/target_notification.so
1506
1507%files target_replace
1508%defattr(644,root,root,755)
1509%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_replace.conf
1510%attr(755,root,root) %{_libdir}/%{name}/target_replace.so
1511
1512%files target_set
1513%defattr(644,root,root,755)
1514%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_set.conf
1515%attr(755,root,root) %{_libdir}/%{name}/target_set.so
1516
5e965dc7
PG
1517%files tcpconns
1518%defattr(644,root,root,755)
1519%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
1520%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
1521
1522%files teamspeak2
1523%defattr(644,root,root,755)
1524%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
1525%attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
1526
d94da88b 1527%files ted
1528%defattr(644,root,root,755)
1529%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ted.conf
1530%attr(755,root,root) %{_libdir}/%{name}/ted.so
1531
5e965dc7
PG
1532%files thermal
1533%defattr(644,root,root,755)
1534%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
1535%attr(755,root,root) %{_libdir}/%{name}/thermal.so
1536
1537%files unixsock
1538%defattr(644,root,root,755)
1539%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
1540%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
1541%{_mandir}/man5/collectd-unixsock.5*
1542
d94da88b 1543%files uptime
1544%defattr(644,root,root,755)
1545%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uptime.conf
1546%attr(755,root,root) %{_libdir}/%{name}/uptime.so
1547
5e965dc7
PG
1548%files users
1549%defattr(644,root,root,755)
1550%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
1551%attr(755,root,root) %{_libdir}/%{name}/users.so
8bf13ddb
PG
1552
1553%files uuid
1554%defattr(644,root,root,755)
711f12a6 1555%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
8bf13ddb
PG
1556%attr(755,root,root) %{_libdir}/%{name}/uuid.so
1557
5e965dc7
PG
1558%files vmem
1559%defattr(644,root,root,755)
1560%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
1561%attr(755,root,root) %{_libdir}/%{name}/vmem.so
1562
1563%files vserver
1564%defattr(644,root,root,755)
1565%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
1566%attr(755,root,root) %{_libdir}/%{name}/vserver.so
1567
1568%files wireless
1569%defattr(644,root,root,755)
1570%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
1571%attr(755,root,root) %{_libdir}/%{name}/wireless.so
1572
1018cae1 1573%if %{with xmms}
8bf13ddb
PG
1574%files xmms
1575%defattr(644,root,root,755)
711f12a6 1576%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
8bf13ddb 1577%attr(755,root,root) %{_libdir}/%{name}/xmms.so
1018cae1 1578%endif
f26b05df 1579
1580%files -n perl-Collectd
1581%defattr(644,root,root,755)
1582%{perl_vendorlib}/Collectd.pm
1583%{perl_vendorlib}/Collectd
This page took 0.35754 seconds and 4 git commands to generate.