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