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