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