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