]> git.pld-linux.org Git - packages/collectd.git/blame - collectd.spec
- start update to 5.0.0
[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
a9b34e68
PG
13# libnetapp . . . . . . no (netapp_api.h not found)
14# libperl . . . . . . . no
15# librouteros . . . . . no ('routeros_api.h' not found)
16# libtokyotyrant . . . no (tcrdb.h not found)
17# libvirt . . . . . . . no (pkg-config doesn't know library)
18# libyajl . . . . . . . no (yajl/yajl_parse.h not found)
19# oracle . . . . . . . no (ORACLE_HOME is not set)
d8a93b37 20# - Disabled modules (build most of them an package):
c43211a5
PG
21# apple_sensors . . . no (obvious)
22# ipvs . . . . . . . no (ip_vs.h not found - llh to be fixed)
23# libvirt . . . . . . no (requires library)
24# multimeter . . . . no ?
25# onewire . . . . . . no (needs libowfs)
26# perl . . . . . . . no (buggy perl: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467072)
27# rrdcached . . . . . no (requires rrdtool >= 1.4.0)
28# tape . . . . . . . no ?
a9b34e68
PG
29# curl_json . . . . . . no
30# gmond . . . . . . . . no
31# java . . . . . . . . no
a9b34e68
PG
32# netapp . . . . . . . no
33# oracle . . . . . . . no
34# routeros . . . . . . no
a9b34e68
PG
35# tokyotyrant . . . . . no
36# zfs_arc . . . . . . . no
c43211a5
PG
37# - logrotate file for logfile plugin
38# - %desc -l pl for plugins
39# - package SpamAssassin plugin from contrib
40
34fc103e 41# Conditional build:
1018cae1 42%bcond_without curl # apache, ascent, bind, curl and nginx plugins
7e70ab62
TP
43%bcond_without dns # DNS plugin
44%bcond_without ipmi # IPMI plugin
34fc103e 45%bcond_without iptables # iptables plugin
1018cae1 46%bcond_without libesmtp # notify_email plugin
34fc103e 47%bcond_with multimeter # multimeter plugin
1018cae1 48%bcond_without mysql # MySQL plugin
34fc103e 49%bcond_without netlink # netlink plugin
1018cae1
TP
50%bcond_without notify # notify_desktop plugin
51%bcond_without ping # ping plugin
b5cac6d2 52%bcond_without pgsql # PostgreSQL plugin
1018cae1
TP
53%bcond_without rrd # rrdtool and rrdcached plugins
54%bcond_without sensors # sensors plugin
55%bcond_without snmp # SNMP plugin
56%bcond_without ups # nut plugin
57%bcond_without xml # ascent, bind and libvirt plugins
58%bcond_without xmms # XMMS plugin
daff3c99
ER
59
60# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637
4b6e34c7 61%ifarch %{x8664}
62%undefine with_iptables
63%undefine with_netlink
64%endif
daff3c99 65
7df111b4 66Summary: Collects system information in RRD files
322f1351 67Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 68Name: collectd
537d5e17
AF
69Version: 5.0.0
70Release: 0.1
373d486f 71License: GPL v2
81857fc6 72Group: Daemons
d94da88b 73Source0: http://collectd.org/files/%{name}-%{version}.tar.bz2
537d5e17 74# Source0-md5: 7bfea6e82d35b36f16d1da2c71397213
f6984413 75Source1: %{name}.conf
ec8f9a12 76Source2: %{name}.init
96376a8d 77Source3: %{name}-http.conf
cdf53ab5 78Source4: %{name}-lighttpd.conf
4929f1a7
PG
79Source10: %{name}-df.conf
80Source11: %{name}-rrdtool.conf
cdf53ab5 81Patch0: %{name}-collection.patch
1bb84330 82Patch1: compile.patch
537d5e17
AF
83Patch2: netfilter.patch
84Patch3: libnotify.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}
537d5e17 98%{?with_notify:BuildRequires: libnotify-devel >= 0.7.0}
1018cae1 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 187Summary: apache-plugin for collectd
e3cf1862 188Summary(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
e3cf1862 201Summary(pl.UTF-8): Wtyczka APC UPS dla collectd
5e965dc7
PG
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
e3cf1862 212Summary(pl.UTF-8): Wtyczka ascent dla collectd
5e965dc7
PG
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
e3cf1862 223Summary(pl.UTF-8): Wtyczka battery dla collectd
5e965dc7
PG
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
e3cf1862 233Summary(pl.UTF-8): Wtyczka bind dla collectd
b8e7f76a
PG
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 245Summary: Web script for collectd
e3cf1862 246Summary(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
e3cf1862 262Summary(pl.UTF-8): Web script for collectd
f26b05df 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
e3cf1862 276Summary(pl.UTF-8): Wtyczka contextswitch dla collectd
a9b34e68
PG
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
e3cf1862 286Summary(pl.UTF-8): Wtyczka conntrack dla collectd
d94da88b 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
e3cf1862 295Summary(pl.UTF-8): Wtyczka cpu dla collectd
5e965dc7
PG
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
e3cf1862 306Summary(pl.UTF-8): Wtyczka cpufreq dla collectd
5e965dc7
PG
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
e3cf1862 315Summary(pl.UTF-8): Wtyczka wyjściowa CSV dla collectd
5e965dc7
PG
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
e3cf1862 324Summary(pl.UTF-8): Wtyczka wyjściowa cURL dla collectd
b8e7f76a
PG
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
e3cf1862 335Summary(pl.UTF-8): Wtyczka dbi dla collectd
b8e7f76a
PG
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
e3cf1862 349Summary(pl.UTF-8): Wtyczka df dla collectd
5e965dc7
PG
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
e3cf1862 361Summary(pl.UTF-8): Wtyczka disk dla collectd
5e965dc7
PG
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
e3cf1862 371Summary(pl.UTF-8): Wtyczka dns dla collectd
8bf13ddb
PG
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
e3cf1862 383Summary(pl.UTF-8): Wtyczka email dla collectd
5e965dc7
PG
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
e3cf1862 398Summary(pl.UTF-8): Wtyczka entropy dla collectd
5e965dc7
PG
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
e3cf1862 409Summary(pl.UTF-8): Wtyczka exec dla collectd
5e965dc7
PG
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
e3cf1862 419Summary(pl.UTF-8): Wtyczka filecount dla collectd
5e965dc7
PG
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
e3cf1862 432Summary(pl.UTF-8): Wtyczka fscache dla collectd
d94da88b 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
e3cf1862 442Summary(pl.UTF-8): Wtyczka hddtemp dla collectd
8bf13ddb
PG
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
e3cf1862 453Summary(pl.UTF-8): Wtyczka interface dla collectd
5e965dc7
PG
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
e3cf1862 463Summary(pl.UTF-8): Wtyczka iptables dla collectd
5e965dc7
PG
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
e3cf1862 480Summary(pl.UTF-8): Wtyczka ipmi dla collectd
87ba198e 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
e3cf1862 492Summary(pl.UTF-8): Wtyczka IRQs dla collectd
5e965dc7
PG
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
e3cf1862 502Summary(pl.UTF-8): Wtyczka load dla collectd
5e965dc7
PG
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
e3cf1862 512Summary(pl.UTF-8): Wtyczka logfile dla collectd
5e965dc7
PG
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
e3cf1862 522Summary(pl.UTF-8): Wtyczka madwifi dla collectd
a9b34e68
PG
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
e3cf1862 535Summary(pl.UTF-8): Wtyczka match_empty_counter dla collectd
a9b34e68
PG
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
e3cf1862 545Summary(pl.UTF-8): Wtyczka match_hashed dla collectd
a9b34e68
PG
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
e3cf1862 555Summary(pl.UTF-8): Wtyczka match_regex dla collectd
b8e7f76a
PG
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
e3cf1862 564Summary(pl.UTF-8): Wtyczka match_timediff dla collectd
b8e7f76a
PG
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
e3cf1862 573Summary(pl.UTF-8): Wtyczka match_value dla collectd
b8e7f76a
PG
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
e3cf1862 582Summary(pl.UTF-8): Wtyczka mbmon dla collectd
5e965dc7
PG
583Group: Daemons
584Requires: %{name} = %{version}-%{release}
585
586%description mbmon
587The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
588
9987a2c5
PG
589%package memcachec
590Summary: memcachec-plugin for collectd
e3cf1862 591Summary(pl.UTF-8): Wtyczka memcachec dla collectd
9987a2c5
PG
592Group: Daemons
593Requires: %{name} = %{version}-%{release}
594
595%description memcachec
596The memcachec plugin connects to a memcached server, queries one or more
597given pages and parses the returned data according to user specification.
598The matches used are similar to the matches used in the cURL and Tail
599plugins.
600
5e965dc7
PG
601%package memcached
602Summary: memcached-plugin for collectd
e3cf1862 603Summary(pl.UTF-8): Wtyczka memcached dla collectd
5e965dc7
PG
604Group: Daemons
605Requires: %{name} = %{version}-%{release}
606
607%description memcached
daff3c99
ER
608The memcached plugin connects to a memcached daemon and collects the
609number of connections and requests handled by the daemon, the CPU
610resources consumed, number of items cached, number of threads, and
611bytes sent and received.
5e965dc7
PG
612
613%package memory
614Summary: memory-plugin for collectd
e3cf1862 615Summary(pl.UTF-8): Wtyczka memory dla collectd
5e965dc7
PG
616Group: Daemons
617Requires: %{name} = %{version}-%{release}
618
619%description memory
620Collects physical memory utilization for collectd.
621
622%package multimeter
623Summary: multimeter-plugin for collectd
e3cf1862 624Summary(pl.UTF-8): Wtyczka multimeter dla collectd
5e965dc7
PG
625Group: Daemons
626Requires: %{name} = %{version}-%{release}
627
628%description multimeter
a9b34e68
PG
629The Multimeter plugin reads a value (usually a voltage or current) from a
630multimeter connected to a serial bus. The plugin tries /dev/ttyS0-9 in order
631to find a multimeter – no configuration is possible.
632
633The multimeter used for development was a Metex M-4650CR.
5e965dc7 634
18e77dbc 635%package mysql
273ffc81 636Summary: mysql-plugin for collectd
e3cf1862 637Summary(pl.UTF-8): Moduł mysql dla collectd.
18e77dbc 638Group: Daemons
273ffc81 639Requires: %{name} = %{version}-%{release}
e00e3af9 640Requires: mysql-client
18e77dbc 641
642%description mysql
273ffc81 643MySQL querying plugin. This plugins provides data of issued commands,
18e77dbc 644called handlers and database traffic.
645
646%description mysql -l pl.UTF-8
273ffc81
JB
647Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
648poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
18e77dbc 649
5e965dc7
PG
650%package netlink
651Summary: netlink-plugin for collectd
e3cf1862 652Summary(pl.UTF-8): Wtyczka netlink dla collectd
5e965dc7
PG
653Group: Daemons
654Requires: %{name} = %{version}-%{release}
655
656%description netlink
daff3c99
ER
657This plugin will open a netlink socket to the Linux kernel and use it
658to get statistics for interfaces, qdiscs, classes, and, if you can
659make use of it, filters. Since in most setups many of the statistics
660this plugin can collect aren't of interest, you can select which
661information to gather using the configuration.
5e965dc7
PG
662
663%package network
664Summary: network-plugin for collectd
e3cf1862 665Summary(pl.UTF-8): Wtyczka network dla collectd
5e965dc7
PG
666Group: Daemons
667Requires: %{name} = %{version}-%{release}
668
669%description network
a9b34e68
PG
670The Network plugin can send values to other instances and receive values
671from other %{name} instances.
5e965dc7
PG
672
673%package nfs
674Summary: NFS-plugin for collectd
e3cf1862 675Summary(pl.UTF-8): Wtyczka NFS dla collectd
5e965dc7
PG
676Group: Daemons
677Requires: %{name} = %{version}-%{release}
678
679%description nfs
daff3c99
ER
680The nfs plugin counts the number of procedure calls of the different
681NFS procedures.
5e965dc7 682
8bf13ddb
PG
683%package nginx
684Summary: nginx-plugin for collectd
e3cf1862 685Summary(pl.UTF-8): Wtyczka nginx dla collectd
8bf13ddb
PG
686Group: Daemons
687Requires: %{name} = %{version}-%{release}
688
689%description nginx
daff3c99
ER
690This plugin collects the number of connections and requests handled by
691the nginx daemon, a HTTP and mail server/proxy. It queries the page
692provided by the ngx_http_stub_status_module module, which isn't
693compiled by default.
8bf13ddb 694
7be39ce7 695%package notify_desktop
696Summary: notify_desktop for collectd
e3cf1862 697Summary(pl.UTF-8): Wtyczka notify_desktop dla collectd
7be39ce7 698Group: Daemons
699Requires: %{name} = %{version}-%{release}
6af07819 700Requires: dbus(org.freedesktop.Notifications)
7be39ce7 701
702%description notify_desktop
5e965dc7 703This plugin sends a desktop notification to a notification daemon, as
6af07819 704defined in the Desktop Notification Specification.
7be39ce7 705
b4b27e4a 706%package notify_email
5e965dc7 707Summary: notify_email-plugin for collectd
e3cf1862 708Summary(pl.UTF-8): Wtyczka notify_email dla collectd
b4b27e4a
PG
709Group: Daemons
710Requires: %{name} = %{version}-%{release}
711
712%description notify_email
a9b34e68
PG
713The Notify Email plugin uses libESMTP to send notifications to a configured
714email address(es).
b4b27e4a 715
5e965dc7
PG
716%package ntpd
717Summary: ntpd-plugin for collectd
e3cf1862 718Summary(pl.UTF-8): Wtyczka ntpd dla collectd
5e965dc7
PG
719Group: Daemons
720Requires: %{name} = %{version}-%{release}
721
722%description ntpd
a9b34e68
PG
723The NTPd plugin queries an NTP server (usually the local one, where
724statistics access is allowed) and extracts :
725- "local" clock parameters: time offset, error and offset loop,
726- parameters for each NTP server used to sync time: offset, dispersion, delay.
5e965dc7 727
b4b27e4a
PG
728%package nut
729Summary: nut-plugin for collectd
e3cf1862 730Summary(pl.UTF-8): Wtyczka nut dla collectd
b4b27e4a
PG
731Group: Daemons
732Requires: %{name} = %{version}-%{release}
733
734%description nut
5e965dc7 735UPS statistics using the Network UPS Tools. These statistics include
daff3c99
ER
736basically everything NUT will give us, including voltages, currents,
737power, frequencies, load, and temperatures.
b4b27e4a 738
a9b34e68
PG
739%package olsrd
740Summary: olsrd plugin for collectd
e3cf1862 741Summary(pl.UTF-8): Wtyczka olsrd dla collectd
a9b34e68
PG
742Group: Daemons
743Requires: %{name} = %{version}-%{release}
744Requires: openvpn
745
746%description olsrd
747The olsrd plugin reads information about meshed networks from the txtinfo
748plugin of the Optimized Link State Routing daemon (olsrd).
749
b8e7f76a
PG
750%package openvpn
751Summary: openvpn plugin for collectd
e3cf1862 752Summary(pl.UTF-8): Wtyczka openvpn dla collectd
b8e7f76a
PG
753Group: Daemons
754Requires: %{name} = %{version}-%{release}
755Requires: openvpn
756
757%description openvpn
daff3c99
ER
758The OpenVPN plugin reads a status file maintained by OpenVPN and
759gathers traffic statistics about connected clients.
b8e7f76a 760
907cfb56
PG
761%package ping
762Summary: ping-plugin for collectd
e3cf1862 763Summary(pl.UTF-8): Wtyczka ping dla collectd
907cfb56
PG
764Group: Daemons
765Requires: %{name} = %{version}-%{release}
daff3c99 766Requires: liboping >= 1.1.2
907cfb56
PG
767
768%description ping
daff3c99
ER
769The network latency is measured as a roundtrip time. An
770ICMP-echo-request (aka. "ping")is sent to a host and the time needed
771for his echo-reply (aka. "pong") to arrive is measured. If a reply is
772not received within one second the plugin will no longer expect a
773reply and return. This may happen in several circumstances, e. g. the
774packet is lost, the host is down, a router has dismissed the packet,
775etc.
907cfb56 776
b4b27e4a
PG
777%package postgresql
778Summary: mysql-plugin for collectd
e3cf1862 779Summary(pl.UTF-8): Moduł postgresql dla collectd.
b4b27e4a
PG
780Group: Daemons
781Requires: %{name} = %{version}-%{release}
782
783%description postgresql
daff3c99
ER
784The postgresql plugin queries statistics from PostgreSQL databases. It
785keeps a persistent connection to all configured databases and tries to
786reconnect if the connection has been interrupted.
b4b27e4a 787
4b6e34c7 788%package powerdns
789Summary: powerdns-plugin for collectd
e3cf1862 790Summary(pl.UTF-8): Wtyczka powerdns dla collectd
4b6e34c7 791Group: Daemons
792Requires: %{name} = %{version}-%{release}
793
794%description powerdns
5e965dc7 795The powerdns plugin queries statistics from an authoritative PowerDNS
daff3c99
ER
796nameserver and/or a PowerDNS recursor. Since both offer a wide variety
797of values, many of which are probably meaningless to most users, but
798may be useful for some.
5e965dc7
PG
799
800%package processes
801Summary: processes-plugin for collectd
e3cf1862 802Summary(pl.UTF-8): Wtyczka processes dla collectd
5e965dc7
PG
803Group: Daemons
804Requires: %{name} = %{version}-%{release}
805
806%description processes
daff3c99
ER
807This plugin collects the number of processes, grouped by their state
808(e.g. running, sleeping, zombies, etc.). In addition to that, it can
809select detailed statistics about selected processes, grouped by name.
4b6e34c7 810
d94da88b 811%package protocols
812Summary: protocols-plugin for collectd
e3cf1862 813Summary(pl.UTF-8): Wtyczka protocols dla collectd
d94da88b 814Group: Daemons
815Requires: %{name} = %{version}-%{release}
816
817%description protocols
daff3c99
ER
818The protocols-plugin provides information about network protocols,
819such as IP, TCP and UDP.
d94da88b 820
a9b34e68
PG
821%package python
822Summary: python-plugin for collectd
e3cf1862 823Summary(pl.UTF-8): Wtyczka python dla collectd
a9b34e68
PG
824Group: Daemons
825Requires: %{name} = %{version}-%{release}
826
827%description python
828The Python plugin embeds a Python interpreter into collectd and exposes
829the application programming interface (API) to Python-scripts. This allows
830to write own plugins in the popular scripting language, which are then
831loaded and executed by the daemon without the need to start a new process
832and interpreter every few seconds. Python-modules written for the Python
833plugin are therefore more powerful and efficient than scripts executed by
834the Exec plugin.
835
8bf13ddb
PG
836%package rrdtool
837Summary: rrdtool-plugin for collectd
e3cf1862 838Summary(pl.UTF-8): Wtyczka rrdtool dla collectd
8bf13ddb
PG
839Group: Daemons
840Requires: %{name} = %{version}-%{release}
841Requires: rrdtool
842
843%description rrdtool
a9b34e68 844The RRDtool plugin writes values to RRD-files using librrd.
8bf13ddb
PG
845
846%package sensors
847Summary: sensors-plugin for collectd
e3cf1862 848Summary(pl.UTF-8): Wtyczka sensors dla collectd
8bf13ddb
PG
849Group: Daemons
850Requires: %{name} = %{version}-%{release}
851
852%description sensors
5e965dc7 853This plugin uses lm-sensors to read hardware sensors. You will need to
daff3c99
ER
854configure lm-sensors before this plugin will collect any usefull and
855correct data.
5e965dc7 856
5e965dc7
PG
857%package serial
858Summary: serial-plugin for collectd
e3cf1862 859Summary(pl.UTF-8): Wtyczka serial dla collectd
5e965dc7
PG
860Group: Daemons
861Requires: %{name} = %{version}-%{release}
862
863%description serial
a9b34e68 864The Serial plugin collects the traffic on serial interfaces.
8bf13ddb
PG
865
866%package snmp
867Summary: snmp-plugin for collectd
e3cf1862 868Summary(pl.UTF-8): Wtyczka snmp dla collectd
8bf13ddb
PG
869Group: Daemons
870Requires: %{name} = %{version}-%{release}
871
872%description snmp
5e965dc7 873The snmp plugin queries other hosts using SNMP, the Simple Network
daff3c99
ER
874Management Protocol, and translates the value it receives to
875collectd's internal format and dispatches them. Depending on the write
876plugins you have loaded they may be written to disk or submitted to
877another instance or whatever you configured.
5e965dc7
PG
878
879%package swap
880Summary: swap-plugin for collectd
e3cf1862 881Summary(pl.UTF-8): Wtyczka swap dla collectd
5e965dc7
PG
882Group: Daemons
883Requires: %{name} = %{version}-%{release}
884
885%description swap
a9b34e68
PG
886The Swap plugin collects the amount of memory currently written onto hard
887disk or whatever the system calls “swap”.
5e965dc7
PG
888
889%package syslog
890Summary: syslog-plugin for collectd
e3cf1862 891Summary(pl.UTF-8): Wtyczka syslog dla collectd
5e965dc7
PG
892Group: Daemons
893Requires: %{name} = %{version}-%{release}
894
895%description syslog
a9b34e68
PG
896The SysLog plugin receives log messages from the daemon and dispatches
897them to syslog(3).
5e965dc7 898
d94da88b 899%package table
900Summary: table-plugin for collectd
e3cf1862 901Summary(pl.UTF-8): Wtyczka table dla collectd
d94da88b 902Group: Daemons
903Requires: %{name} = %{version}-%{release}
904
905%description table
906The table-plugin provides parsing for table-like structured files,
907such as many files beneath /proc.
908
b8e7f76a
PG
909%package target_notification
910Summary: target_notification-plugin for collectd
e3cf1862 911Summary(pl.UTF-8): Wtyczka target_notification dla collectd
b8e7f76a
PG
912Group: Daemons
913Requires: %{name} = %{version}-%{release}
914
915%description target_notification
916target_notification plugin for collectd.
917
918%package target_replace
919Summary: target_replace-plugin for collectd
e3cf1862 920Summary(pl.UTF-8): Wtyczka target_replace dla collectd
b8e7f76a
PG
921Group: Daemons
922Requires: %{name} = %{version}-%{release}
923
924%description target_replace
925target_replace plugin for collectd.
926
a9b34e68
PG
927%package target_scale
928Summary: target_scale-plugin for collectd
e3cf1862 929Summary(pl.UTF-8): Wtyczka target_scale dla collectd
a9b34e68
PG
930Group: Daemons
931Requires: %{name} = %{version}-%{release}
932
933%description target_scale
934Target to scale (multiply) values by an arbitrary value.
935
b8e7f76a
PG
936%package target_set
937Summary: target_set-plugin for collectd
e3cf1862 938Summary(pl.UTF-8): Wtyczka target_set dla collectd
b8e7f76a
PG
939Group: Daemons
940Requires: %{name} = %{version}-%{release}
941
942%description target_set
943target_set plugin for collectd.
944
5e965dc7
PG
945%package tail
946Summary: tail-plugin for collectd
e3cf1862 947Summary(pl.UTF-8): Wtyczka tail dla collectd
5e965dc7
PG
948Group: Daemons
949Requires: %{name} = %{version}-%{release}
950
951%description tail
daff3c99
ER
952The tail-plugin can be used to "tail" logfiles, i.e. follow them as
953tail -F does. Each line is given to one or more "matches" which test
954if the line is relevant for any statistics using a regular expression.
5e965dc7
PG
955
956%package tcpconns
957Summary: tcpconns-plugin for collectd
e3cf1862 958Summary(pl.UTF-8): Wtyczka tcpconns dla collectd
5e965dc7
PG
959Group: Daemons
960Requires: %{name} = %{version}-%{release}
961
962%description tcpconns
963The tcpconns-plugin counts the number of TCP connections to or from a
daff3c99
ER
964specified port. Typically the connectioins where you specify the local
965port are incoming connections while the connections where you specify
966the remote port are outgoing connections.
5e965dc7
PG
967
968%package teamspeak2
969Summary: teamspeak2-plugin for collectd
e3cf1862 970Summary(pl.UTF-8): Wtyczka teamspeak2 dla collectd
5e965dc7
PG
971Group: Daemons
972Requires: %{name} = %{version}-%{release}
973
974%description teamspeak2
daff3c99
ER
975The teamspeak2 plugin connects to the query port of a teamspeak2
976server and polls interesting global and virtual server data. The
977plugin can query only one physical server but unlimited virtual
978servers.
5e965dc7 979
d94da88b 980%package ted
981Summary: ted-plugin for collectd
e3cf1862 982Summary(pl.UTF-8): Wtyczka ted dla collectd
d94da88b 983Group: Daemons
984Requires: %{name} = %{version}-%{release}
985
986%description ted
daff3c99
ER
987The TED-plugin reads power consumption measurements from “The Energy
988Detective” (TED).
d94da88b 989
5e965dc7
PG
990%package thermal
991Summary: thermal-plugin for collectd
e3cf1862 992Summary(pl.UTF-8): Wtyczka thermal dla collectd
5e965dc7
PG
993Group: Daemons
994Requires: %{name} = %{version}-%{release}
995
996%description thermal
a9b34e68
PG
997The thermal plugin reads ACPI thermal zone information from the sysfs or
998procfs file system, i. e. mostly system temperature information.
5e965dc7
PG
999
1000%package unixsock
1001Summary: unixsock-plugin for collectd
e3cf1862 1002Summary(pl.UTF-8): Wtyczka unixsock dla collectd
5e965dc7
PG
1003Group: Daemons
1004Requires: %{name} = %{version}-%{release}
1005
1006%description unixsock
daff3c99
ER
1007The unixsock plugin opens an UNIX-socket over which one can interact
1008with the daemon. This can be used to use the values collected by
1009collectd in other applications, such as monitoring, or submit
1010externally collected values to collectd.
5e965dc7 1011
d94da88b 1012%package uptime
1013Summary: uptime-plugin for collectd
e3cf1862 1014Summary(pl.UTF-8): Wtyczka uptime dla collectd
d94da88b 1015Group: Daemons
1016Requires: %{name} = %{version}-%{release}
1017
1018%description uptime
1019The uptime-plugin can collect the server's uptime.
1020
5e965dc7
PG
1021%package users
1022Summary: users-plugin for collectd
e3cf1862 1023Summary(pl.UTF-8): Wtyczka users dla collectd
5e965dc7
PG
1024Group: Daemons
1025Requires: %{name} = %{version}-%{release}
1026
1027%description users
1028Number of users currently logged in.
8bf13ddb
PG
1029
1030%package uuid
1031Summary: uuid-plugin for collectd
e3cf1862 1032Summary(pl.UTF-8): Wtyczka uuid dla collectd
8bf13ddb
PG
1033Group: Daemons
1034Requires: %{name} = %{version}-%{release}
1035
1036%description uuid
daff3c99
ER
1037This plugin, if loaded, causes the Hostname to be taken from the
1038machine's UUID. The UUID is a universally unique designation for the
1039machine, usually taken from the machine's BIOS. This is most useful if
1040the machine is running in a virtual environment such as Xen, in which
1041case the UUID is preserved across shutdowns and migration.
5e965dc7
PG
1042
1043%package vmem
1044Summary: vmem-plugin for collectd
e3cf1862 1045Summary(pl.UTF-8): Wtyczka vmem dla collectd
5e965dc7
PG
1046Group: Daemons
1047Requires: %{name} = %{version}-%{release}
1048
1049%description vmem
daff3c99
ER
1050The vmem plugin collects information about the usage of virtual
1051memory. Since the statistics provided by the Linux kernel are very
1052detailed, they are collected very detailed.
5e965dc7
PG
1053
1054%package vserver
1055Summary: vserver-plugin for collectd
e3cf1862 1056Summary(pl.UTF-8): Wtyczka vserver dla collectd
5e965dc7
PG
1057Group: Daemons
1058Requires: %{name} = %{version}-%{release}
1059
1060%description vserver
daff3c99
ER
1061Collects information about the virtual servers running on a system,
1062using Linux-Vserver.
5e965dc7 1063
a9b34e68
PG
1064%package write_http
1065Summary: write_http-plugin for collectd
e3cf1862 1066Summary(pl.UTF-8): Wtyczka write_http dla collectd
a9b34e68
PG
1067Group: Daemons
1068Requires: %{name} = %{version}-%{release}
1069
1070%description write_http
1071The Write HTTP plugin sends the values collected by collectd to a
1072web-server using HTTP POST requests. The data is formatted as PUTVAL
1073commands.
1074
5e965dc7
PG
1075%package wireless
1076Summary: wireless-plugin for collectd
e3cf1862 1077Summary(pl.UTF-8): Wtyczka wireless dla collectd
5e965dc7
PG
1078Group: Daemons
1079Requires: %{name} = %{version}-%{release}
1080
1081%description wireless
a9b34e68
PG
1082The Wireless plugin collects signal quality, signal power and
1083signal-to-noise ratio for wireless LAN cards.
8bf13ddb
PG
1084
1085%package xmms
1086Summary: xmms-plugin for collectd
e3cf1862 1087Summary(pl.UTF-8): Wtyczka xmms dla collectd
8bf13ddb
PG
1088Group: Daemons
1089Requires: %{name} = %{version}-%{release}
8bf13ddb
PG
1090
1091%description xmms
a9b34e68
PG
1092The XMMS plugin is a plugin for the XMMS music player. It graphs the
1093bit-rate and sampling rate as you play songs. Not really useful, just
1094something that got written because we can.
8bf13ddb 1095
f26b05df 1096%package -n perl-Collectd
1097Summary: Perl files from Collectd package
1098Group: Daemons
1099
1100%description -n perl-Collectd
1101Perl files from Collectd package
1102
373d486f
AF
1103%prep
1104%setup -q
cdf53ab5 1105%patch0 -p1
1bb84330 1106%patch1 -p1
537d5e17
AF
1107%patch2 -p1
1108%patch3 -p1
526f2b1b 1109
373d486f
AF
1110%build
1111%{__libtoolize}
1112%{__aclocal}
1113%{__autoconf}
1114%{__autoheader}
1115%{__automake}
4b6e34c7 1116
373d486f 1117%configure \
537d5e17 1118 c_cv_have_libperl=yes \
373d486f
AF
1119 --with-libstatgrab=/usr \
1120 --with-lm-sensors=/usr \
4b6e34c7 1121 --with-libmysql=/usr \
537d5e17
AF
1122 --enable-perl \
1123 %{__enable_disable dns} \
1124 %{__enable_disable ipmi} \
1125 %{__enable_disable iptables} \
1126 %{__enable_disable multimeter} \
1127 %{__enable_disable mysql} \
1128 %{__enable_disable netlink} \
1129 %{__enable_disable notify notify_desktop} \
1130 %{__enable_disable libesmtp notify_email} \
1131 %{__enable_disable ups nut} \
1132 %{__enable_disable ping} \
1133 %{__enable_disable pgsql postgresql} \
1134 %{__enable_disable rrd rrdtool} \
1135 %{__enable_disable sensors} \
1136 %{__enable_disable snmp} \
1137 %{__enable_disable xmms} \
1138 %{__enable_disable curl} \
1139 %{__enable_disable curl apache} \
1140 %{__enable_disable curl ngix} \
1141 %{__enable_disable curl ascent} \
1142 %{__disable curl ascent} \
1143 %{__disable curl bind} \
1144 %{__disable xml ascent} \
1145 %{__disable xml bind} \
aedbf1de 1146 --disable-libvirt \
537d5e17 1147 --disable-ipvs
4b6e34c7 1148
1149
87ba198e 1150%{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
1151 BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
f26b05df 1152 BUILD_WITH_OPENIPMI_LIBS="-L%{_libdir} -lOpenIPMIutils -lOpenIPMIpthread"
373d486f
AF
1153
1154%install
1155rm -rf $RPM_BUILD_ROOT
711f12a6 1156install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
f26b05df 1157 $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir},%{perl_vendorlib}/}
373d486f
AF
1158
1159%{__make} install \
1160 DESTDIR=$RPM_BUILD_ROOT
81857fc6 1161
e105712e 1162touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
ff0d0ea0 1163install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
373d486f 1164
96376a8d
PG
1165# Web frontend:
1166install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
1167install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
1168install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
1169install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
cdf53ab5 1170install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
96376a8d 1171
f26b05df 1172cp -R contrib/collection3 $RPM_BUILD_ROOT%{_appdir}
1173
711f12a6 1174### Configs instalation ###
b8e7f76a
PG
1175for i in `egrep "^(#|)LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do
1176 egrep "LoadPlugin $i$" src/collectd.conf | %{__sed} -e "s/^#//" > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
4929f1a7 1177 grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
cbe0cde9 1178done
1179
711f12a6
PG
1180# Example config in sources: src/collectd.conf
1181install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
4929f1a7
PG
1182
1183# Overwrite only files which we want to change:
1184install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf
1185install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
711f12a6 1186
f26b05df 1187mv $RPM_BUILD_ROOT%{_datadir}/perl5/Collectd* $RPM_BUILD_ROOT%{perl_vendorlib}/
1188
96376a8d
PG
1189# Cleanups:
1190rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
1191
373d486f
AF
1192%clean
1193rm -rf $RPM_BUILD_ROOT
1194
81857fc6 1195%post
373d486f
AF
1196/sbin/chkconfig --add %{name}
1197%service %{name} restart
1198
81857fc6 1199%preun
373d486f
AF
1200if [ "$1" = "0" ]; then
1201 %service -q %{name} stop
1202 /sbin/chkconfig --del %{name}
1203fi
1204
b8e7f76a
PG
1205%post libs -p /sbin/ldconfig
1206%postun libs -p /sbin/ldconfig
1207
bed4848f
PG
1208%define module_scripts() \
1209%post %1 \
1210%service %{name} restart \
1211\
1212%postun %1 \
1213%service %{name} restart
1214
0e2c8900 1215%module_scripts apache
5e965dc7 1216%module_scripts apcups
0e2c8900 1217%module_scripts ascent
5e965dc7 1218%module_scripts battery
0e2c8900 1219%module_scripts bind
a9b34e68 1220%module_scripts contextswitch
d94da88b 1221%module_scripts conntrack
5e965dc7 1222%module_scripts cpu
d94da88b 1223%module_scripts cpufreq
5e965dc7 1224%module_scripts csv
0e2c8900 1225%module_scripts curl
b8e7f76a 1226%module_scripts dbi
5e965dc7
PG
1227%module_scripts df
1228%module_scripts disk
0e2c8900 1229%module_scripts dns
5e965dc7
PG
1230%module_scripts email
1231%module_scripts entropy
1232%module_scripts exec
1233%module_scripts filecount
d94da88b 1234%module_scripts fscache
bed4848f 1235%module_scripts hddtemp
5e965dc7 1236%module_scripts interface
0e2c8900
TP
1237%module_scripts ipmi
1238%module_scripts iptables
5e965dc7
PG
1239%module_scripts irq
1240%module_scripts load
1241%module_scripts logfile
a9b34e68
PG
1242%module_scripts madwifi
1243%module_scripts match_empty_counter
1244%module_scripts match_hashed
b8e7f76a
PG
1245%module_scripts match_regex
1246%module_scripts match_timediff
1247%module_scripts match_value
5e965dc7 1248%module_scripts mbmon
9987a2c5 1249%module_scripts memcachec
5e965dc7
PG
1250%module_scripts memcached
1251%module_scripts memory
0e2c8900
TP
1252%module_scripts multimeter
1253%module_scripts mysql
1254%module_scripts netlink
5e965dc7
PG
1255%module_scripts network
1256%module_scripts nfs
0e2c8900
TP
1257%module_scripts nginx
1258%module_scripts notify_desktop
1259%module_scripts notify_email
5e965dc7 1260%module_scripts ntpd
0e2c8900 1261%module_scripts nut
a9b34e68 1262%module_scripts olsrd
b8e7f76a 1263%module_scripts openvpn
0e2c8900
TP
1264%module_scripts ping
1265%module_scripts postgresql
bed4848f 1266%module_scripts powerdns
5e965dc7 1267%module_scripts processes
d94da88b 1268%module_scripts protocols
a9b34e68 1269%module_scripts python
0e2c8900
TP
1270%module_scripts rrdtool
1271%module_scripts sensors
5e965dc7 1272%module_scripts serial
0e2c8900 1273%module_scripts snmp
5e965dc7
PG
1274%module_scripts swap
1275%module_scripts syslog
d94da88b 1276%module_scripts table
5e965dc7 1277%module_scripts tail
b8e7f76a
PG
1278%module_scripts target_notification
1279%module_scripts target_replace
a9b34e68 1280%module_scripts target_scale
b8e7f76a 1281%module_scripts target_set
5e965dc7
PG
1282%module_scripts tcpconns
1283%module_scripts teamspeak2
d94da88b 1284%module_scripts ted
5e965dc7
PG
1285%module_scripts thermal
1286%module_scripts unixsock
d94da88b 1287%module_scripts uptime
5e965dc7 1288%module_scripts users
bed4848f 1289%module_scripts uuid
5e965dc7
PG
1290%module_scripts vmem
1291%module_scripts vserver
a9b34e68 1292%module_scripts write_http
5e965dc7 1293%module_scripts wireless
0e2c8900 1294%module_scripts xmms
bed4848f 1295
96376a8d
PG
1296%triggerin collection -- apache1 < 1.3.37-3, apache1-base
1297%webapp_register apache %{_webapp}
1298
1299%triggerun collection -- apache1 < 1.3.37-3, apache1-base
1300%webapp_unregister apache %{_webapp}
1301
1302%triggerin collection -- apache < 2.2.0, apache-base
1303%webapp_register httpd %{_webapp}
1304
1305%triggerun collection -- apache < 2.2.0, apache-base
1306%webapp_unregister httpd %{_webapp}
1307
73f73519 1308%triggerin collection -- lighttpd
cdf53ab5
PG
1309%webapp_register lighttpd %{_webapp}
1310
73f73519 1311%triggerun collection -- lighttpd
cdf53ab5
PG
1312%webapp_unregister lighttpd %{_webapp}
1313
373d486f
AF
1314%files
1315%defattr(644,root,root,755)
e105712e 1316%doc AUTHORS ChangeLog README TODO contrib
25bc0190
PG
1317%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1318%dir %{_sysconfdir}/%{name}.d
373d486f 1319%attr(755,root,root) %{_sbindir}/collectd
e105712e 1320%attr(755,root,root) %{_sbindir}/collectdmon
18e77dbc 1321%attr(755,root,root) %{_bindir}/collectd-nagios
b8e7f76a
PG
1322%dir %{_datadir}/%{name}
1323%{_datadir}/%{name}/types.db
ff0d0ea0 1324%attr(754,root,root) /etc/rc.d/init.d/%{name}
373d486f 1325%{_mandir}/man1/collectd.1*
18e77dbc 1326%{_mandir}/man1/collectd-nagios.1*
80d5b170 1327%{_mandir}/man1/collectdmon.1*
373d486f 1328%{_mandir}/man5/collectd.conf.5*
daff3c99 1329%{_mandir}/man5/collectd-java.5*
18e77dbc 1330%{_mandir}/man5/collectd-perl.5*
e105712e 1331%{_mandir}/man5/types.db.5*
e105712e 1332%dir %{_var}/lib/%{name}
1333
b8e7f76a
PG
1334%files libs
1335%defattr(644,root,root,755)
1336%attr(755,root,root) %{_libdir}/libcollectdclient.so.*.*.*
1337%attr(755,root,root) %ghost %{_libdir}/libcollectdclient.so.0
421d51c6 1338%dir %{_libdir}/%{name}
b8e7f76a
PG
1339
1340%files devel
1341%defattr(644,root,root,755)
1342%attr(755,root,root) %{_libdir}/libcollectdclient.so
1343%{_libdir}/libcollectdclient.la
1344%dir %{_includedir}/%{name}
1345%{_includedir}/%{name}/*.h
1346%{_pkgconfigdir}/libcollectdclient.pc
1347
80d5b170 1348%files static
1349%defattr(644,root,root,755)
1350%{_libdir}/libcollectdclient.a
1351%{_libdir}/%{name}/*.a
1352
5e965dc7
PG
1353%files collection
1354%defattr(644,root,root,755)
1355%dir %{_webappdir}
1356%config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
1357%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
1358%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
cdf53ab5 1359%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
5e965dc7
PG
1360%dir %{_appdir}
1361%dir %{_appdir}/cgi-bin
1362%attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
1363
f26b05df 1364%files collection3
1365%defattr(644,root,root,755)
1366%{_appdir}/collection3
1367
8bf13ddb 1368########## PLUGINS:
1018cae1
TP
1369%if %{with xml}
1370%if %{with curl}
61ccc70a
TP
1371%files apache
1372%defattr(640,root,root,755)
1373%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
1374%attr(755,root,root) %{_libdir}/%{name}/apache.so
1018cae1
TP
1375%endif
1376%endif
61ccc70a 1377
5e965dc7
PG
1378%files apcups
1379%defattr(644,root,root,755)
1380%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf
1381%attr(755,root,root) %{_libdir}/%{name}/apcups.so
1382
1018cae1 1383%if %{with curl}
8bf13ddb 1384%files ascent
61ccc70a 1385%defattr(640,root,root,755)
711f12a6 1386%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
8bf13ddb 1387%attr(755,root,root) %{_libdir}/%{name}/ascent.so
1018cae1 1388%endif
18e77dbc 1389
5e965dc7 1390%files battery
5fafedfc 1391%defattr(644,root,root,755)
5e965dc7
PG
1392%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf
1393%attr(755,root,root) %{_libdir}/%{name}/battery.so
1394
1018cae1
TP
1395%if %{with xml}
1396%if %{with curl}
b8e7f76a
PG
1397%files bind
1398%defattr(644,root,root,755)
1399%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/bind.conf
1400%attr(755,root,root) %{_libdir}/%{name}/bind.so
1018cae1
TP
1401%endif
1402%endif
b8e7f76a 1403
a9b34e68
PG
1404%files contextswitch
1405%defattr(644,root,root,755)
1406%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/contextswitch.conf
1407%attr(755,root,root) %{_libdir}/%{name}/contextswitch.so
1408
d94da88b 1409%files conntrack
1410%defattr(644,root,root,755)
1411%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/conntrack.conf
1412%attr(755,root,root) %{_libdir}/%{name}/conntrack.so
1413
5e965dc7
PG
1414%files cpu
1415%defattr(644,root,root,755)
1416%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
1417%attr(755,root,root) %{_libdir}/%{name}/cpu.so
1418
1419%files cpufreq
1420%defattr(644,root,root,755)
1421%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf
1422%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
1423
1424%files csv
1425%defattr(644,root,root,755)
1426%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf
1427%attr(755,root,root) %{_libdir}/%{name}/csv.so
1428
1018cae1 1429%if %{with curl}
b8e7f76a 1430%files curl
61ccc70a 1431%defattr(640,root,root,755)
b8e7f76a
PG
1432%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl.conf
1433%attr(755,root,root) %{_libdir}/%{name}/curl.so
fa204bb4
CM
1434%if %{with xml}
1435%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl_xml.conf
1436%attr(755,root,root) %{_libdir}/%{name}/curl_xml.so
1437%endif
1018cae1 1438%endif
b8e7f76a
PG
1439
1440%files dbi
61ccc70a 1441%defattr(640,root,root,755)
b8e7f76a
PG
1442%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dbi.conf
1443%attr(755,root,root) %{_libdir}/%{name}/dbi.so
1444
5e965dc7
PG
1445%files df
1446%defattr(644,root,root,755)
1447%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf
1448%attr(755,root,root) %{_libdir}/%{name}/df.so
1449
1450%files disk
1451%defattr(644,root,root,755)
1452%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf
1453%attr(755,root,root) %{_libdir}/%{name}/disk.so
5fafedfc 1454
7e70ab62 1455%if %{with dns}
8bf13ddb
PG
1456%files dns
1457%defattr(644,root,root,755)
711f12a6 1458%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
8bf13ddb 1459%attr(755,root,root) %{_libdir}/%{name}/dns.so
7e70ab62 1460%endif
8bf13ddb 1461
5e965dc7
PG
1462%files email
1463%defattr(644,root,root,755)
1464%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf
1465%attr(755,root,root) %{_libdir}/%{name}/email.so
1466%{_mandir}/man5/collectd-email.5*
1467
1468%files entropy
1469%defattr(644,root,root,755)
1470%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
1471%attr(755,root,root) %{_libdir}/%{name}/entropy.so
1472
1473%files exec
1474%defattr(644,root,root,755)
1475%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
1476%attr(755,root,root) %{_libdir}/%{name}/exec.so
1477%{_mandir}/man5/collectd-exec.5*
1478
1479%files filecount
1480%defattr(644,root,root,755)
1481%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
1482%attr(755,root,root) %{_libdir}/%{name}/filecount.so
1483
d94da88b 1484%files fscache
1485%defattr(644,root,root,755)
1486%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/fscache.conf
1487%attr(755,root,root) %{_libdir}/%{name}/fscache.so
1488
8bf13ddb
PG
1489%files hddtemp
1490%defattr(644,root,root,755)
711f12a6 1491%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
8bf13ddb
PG
1492%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
1493
5e965dc7
PG
1494%files interface
1495%defattr(644,root,root,755)
1496%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf
1497%attr(755,root,root) %{_libdir}/%{name}/interface.so
1498
87ba198e 1499%if %{with ipmi}
1500%files ipmi
1501%defattr(644,root,root,755)
711f12a6 1502%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
87ba198e 1503%attr(755,root,root) %{_libdir}/%{name}/ipmi.so
1504%endif
1505
5e965dc7
PG
1506%if %{with iptables}
1507%files iptables
1508%defattr(644,root,root,755)
1509%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf
1510%attr(755,root,root) %{_libdir}/%{name}/iptables.so
1511%endif
1512
1513%files irq
1514%defattr(644,root,root,755)
1515%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf
1516%attr(755,root,root) %{_libdir}/%{name}/irq.so
1517
1518%files load
1519%defattr(644,root,root,755)
1520%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf
1521%attr(755,root,root) %{_libdir}/%{name}/load.so
1522
1523%files logfile
1524%defattr(644,root,root,755)
1525%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf
1526%attr(755,root,root) %{_libdir}/%{name}/logfile.so
4929f1a7 1527%{_var}/log/collectd.log
5e965dc7 1528
a9b34e68
PG
1529%files madwifi
1530%defattr(644,root,root,755)
1531%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/madwifi.conf
1532%attr(755,root,root) %{_libdir}/%{name}/madwifi.so
b5cac6d2 1533
a9b34e68
PG
1534%files match_empty_counter
1535%defattr(644,root,root,755)
1536%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_empty_counter.conf
1537%attr(755,root,root) %{_libdir}/%{name}/match_empty_counter.so
1538
1539%files match_hashed
1540%defattr(644,root,root,755)
1541%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_hashed.conf
1542%attr(755,root,root) %{_libdir}/%{name}/match_hashed.so
1543
b8e7f76a
PG
1544%files match_regex
1545%defattr(644,root,root,755)
1546%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_regex.conf
1547%attr(755,root,root) %{_libdir}/%{name}/match_regex.so
1548
1549%files match_timediff
1550%defattr(644,root,root,755)
1551%attr(755,root,root) %{_libdir}/%{name}/match_timediff.so
80d5b170 1552%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_timediff.conf
b8e7f76a
PG
1553
1554%files match_value
1555%defattr(644,root,root,755)
1556%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_value.conf
1557%attr(755,root,root) %{_libdir}/%{name}/match_value.so
1558
5e965dc7
PG
1559%files mbmon
1560%defattr(644,root,root,755)
1561%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
1562%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
1563
9987a2c5
PG
1564%files memcachec
1565%defattr(644,root,root,755)
1566%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcachec.conf
1567%attr(755,root,root) %{_libdir}/%{name}/memcachec.so
1568
5e965dc7
PG
1569%files memcached
1570%defattr(644,root,root,755)
1571%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf
1572%attr(755,root,root) %{_libdir}/%{name}/memcached.so
1573
1574%files memory
1575%defattr(644,root,root,755)
1576%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf
1577%attr(755,root,root) %{_libdir}/%{name}/memory.so
1578
1579%if %{with multimeter}
1580%files multimeter
1581%defattr(644,root,root,755)
1582%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf
1583%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
1584%endif
1585
1018cae1 1586%if %{with mysql}
18e77dbc 1587%files mysql
61ccc70a 1588%defattr(640,root,root,755)
711f12a6 1589%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
18e77dbc 1590%attr(755,root,root) %{_libdir}/%{name}/mysql.so
1018cae1 1591%endif
8bf13ddb 1592
5e965dc7
PG
1593%if %{with netlink}
1594%files netlink
1595%defattr(644,root,root,755)
1596%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf
1597%attr(755,root,root) %{_libdir}/%{name}/netlink.so
1598%endif
1599
1600%files network
1601%defattr(644,root,root,755)
1602%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf
1603%attr(755,root,root) %{_libdir}/%{name}/network.so
1604
1605%files nfs
1606%defattr(644,root,root,755)
1607%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf
1608%attr(755,root,root) %{_libdir}/%{name}/nfs.so
1609
1018cae1 1610%if %{with curl}
8bf13ddb 1611%files nginx
61ccc70a 1612%defattr(640,root,root,755)
711f12a6 1613%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
8bf13ddb 1614%attr(755,root,root) %{_libdir}/%{name}/nginx.so
1018cae1 1615%endif
8bf13ddb 1616
1018cae1 1617%if %{with notify}
7be39ce7 1618%files notify_desktop
1619%defattr(644,root,root,755)
711f12a6 1620%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
7be39ce7 1621%attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
1018cae1 1622%endif
7be39ce7 1623
1018cae1 1624%if %{with libesmtp}
b4b27e4a 1625%files notify_email
61ccc70a 1626%defattr(640,root,root,755)
711f12a6 1627%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
b4b27e4a 1628%attr(755,root,root) %{_libdir}/%{name}/notify_email.so
1018cae1 1629%endif
b4b27e4a 1630
5e965dc7
PG
1631%files ntpd
1632%defattr(644,root,root,755)
1633%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
1634%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
1635
1018cae1 1636%if %{with ups}
b4b27e4a
PG
1637%files nut
1638%defattr(644,root,root,755)
711f12a6 1639%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
b4b27e4a 1640%attr(755,root,root) %{_libdir}/%{name}/nut.so
1018cae1 1641%endif
b4b27e4a 1642
a9b34e68
PG
1643%files olsrd
1644%defattr(644,root,root,755)
1645%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/olsrd.conf
1646%attr(755,root,root) %{_libdir}/%{name}/olsrd.so
1647
b8e7f76a
PG
1648%files openvpn
1649%defattr(644,root,root,755)
1650%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/openvpn.conf
1651%attr(755,root,root) %{_libdir}/%{name}/openvpn.so
1652
1018cae1 1653%if %{with ping}
907cfb56
PG
1654%files ping
1655%defattr(644,root,root,755)
711f12a6 1656%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
907cfb56 1657%attr(755,root,root) %{_libdir}/%{name}/ping.so
1018cae1 1658%endif
907cfb56 1659
b5cac6d2 1660%if %{with pgsql}
b4b27e4a 1661%files postgresql
61ccc70a 1662%defattr(640,root,root,755)
711f12a6 1663%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
b4b27e4a 1664%attr(755,root,root) %{_libdir}/%{name}/postgresql.so
8a56fd06 1665%{_datadir}/%{name}/postgresql_default.conf
1018cae1 1666%endif
b4b27e4a 1667
4b6e34c7 1668%files powerdns
1669%defattr(644,root,root,755)
711f12a6 1670%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
4b6e34c7 1671%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
1672
5e965dc7
PG
1673%files processes
1674%defattr(644,root,root,755)
1675%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
1676%attr(755,root,root) %{_libdir}/%{name}/processes.so
1677
d94da88b 1678%files protocols
1679%defattr(644,root,root,755)
1680%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/protocols.conf
1681%attr(755,root,root) %{_libdir}/%{name}/protocols.so
1682
a9b34e68
PG
1683%files python
1684%defattr(644,root,root,755)
1685%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/python.conf
1686%attr(755,root,root) %{_libdir}/%{name}/python.so
1687%{_mandir}/man5/collectd-python.5*
1688
1018cae1 1689%if %{with rrd}
8bf13ddb
PG
1690%files rrdtool
1691%defattr(644,root,root,755)
711f12a6 1692%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
8bf13ddb 1693%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
1018cae1 1694%endif
8bf13ddb 1695
1018cae1 1696%if %{with sensors}
8bf13ddb
PG
1697%files sensors
1698%defattr(644,root,root,755)
711f12a6 1699%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
8bf13ddb 1700%attr(755,root,root) %{_libdir}/%{name}/sensors.so
1018cae1 1701%endif
8bf13ddb 1702
5e965dc7
PG
1703%files serial
1704%defattr(644,root,root,755)
1705%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf
1706%attr(755,root,root) %{_libdir}/%{name}/serial.so
1707
1018cae1 1708%if %{with snmp}
8bf13ddb
PG
1709%files snmp
1710%defattr(644,root,root,755)
711f12a6 1711%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
8bf13ddb 1712%attr(755,root,root) %{_libdir}/%{name}/snmp.so
5e965dc7 1713%{_mandir}/man5/collectd-snmp.5*
1018cae1 1714%endif
5e965dc7
PG
1715
1716%files swap
1717%defattr(644,root,root,755)
1718%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf
1719%attr(755,root,root) %{_libdir}/%{name}/swap.so
1720
1721%files syslog
1722%defattr(644,root,root,755)
1723%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
1724%attr(755,root,root) %{_libdir}/%{name}/syslog.so
1725
d94da88b 1726%files table
1727%defattr(644,root,root,755)
1728%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/table.conf
1729%attr(755,root,root) %{_libdir}/%{name}/table.so
1730
5e965dc7
PG
1731%files tail
1732%defattr(644,root,root,755)
1733%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
1734%attr(755,root,root) %{_libdir}/%{name}/tail.so
1735
b8e7f76a
PG
1736%files target_notification
1737%defattr(644,root,root,755)
1738%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_notification.conf
1739%attr(755,root,root) %{_libdir}/%{name}/target_notification.so
1740
1741%files target_replace
1742%defattr(644,root,root,755)
1743%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_replace.conf
1744%attr(755,root,root) %{_libdir}/%{name}/target_replace.so
1745
a9b34e68
PG
1746%files target_scale
1747%defattr(644,root,root,755)
1748%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_scale.conf
1749%attr(755,root,root) %{_libdir}/%{name}/target_scale.so
1750
b8e7f76a
PG
1751%files target_set
1752%defattr(644,root,root,755)
1753%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_set.conf
1754%attr(755,root,root) %{_libdir}/%{name}/target_set.so
1755
5e965dc7
PG
1756%files tcpconns
1757%defattr(644,root,root,755)
1758%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
1759%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
1760
1761%files teamspeak2
1762%defattr(644,root,root,755)
1763%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
1764%attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
1765
d94da88b 1766%files ted
1767%defattr(644,root,root,755)
1768%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ted.conf
1769%attr(755,root,root) %{_libdir}/%{name}/ted.so
1770
5e965dc7
PG
1771%files thermal
1772%defattr(644,root,root,755)
1773%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
1774%attr(755,root,root) %{_libdir}/%{name}/thermal.so
1775
1776%files unixsock
1777%defattr(644,root,root,755)
1778%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
1779%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
1780%{_mandir}/man5/collectd-unixsock.5*
1781
d94da88b 1782%files uptime
1783%defattr(644,root,root,755)
1784%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uptime.conf
1785%attr(755,root,root) %{_libdir}/%{name}/uptime.so
1786
5e965dc7
PG
1787%files users
1788%defattr(644,root,root,755)
1789%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
1790%attr(755,root,root) %{_libdir}/%{name}/users.so
8bf13ddb
PG
1791
1792%files uuid
1793%defattr(644,root,root,755)
711f12a6 1794%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
8bf13ddb
PG
1795%attr(755,root,root) %{_libdir}/%{name}/uuid.so
1796
5e965dc7
PG
1797%files vmem
1798%defattr(644,root,root,755)
1799%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
1800%attr(755,root,root) %{_libdir}/%{name}/vmem.so
1801
1802%files vserver
1803%defattr(644,root,root,755)
1804%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
1805%attr(755,root,root) %{_libdir}/%{name}/vserver.so
1806
1807%files wireless
1808%defattr(644,root,root,755)
1809%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
1810%attr(755,root,root) %{_libdir}/%{name}/wireless.so
1811
a9b34e68
PG
1812%files write_http
1813%defattr(644,root,root,755)
1814%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/write_http.conf
1815%attr(755,root,root) %{_libdir}/%{name}/write_http.so
1816
1018cae1 1817%if %{with xmms}
8bf13ddb
PG
1818%files xmms
1819%defattr(644,root,root,755)
711f12a6 1820%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
8bf13ddb 1821%attr(755,root,root) %{_libdir}/%{name}/xmms.so
1018cae1 1822%endif
f26b05df 1823
1824%files -n perl-Collectd
1825%defattr(644,root,root,755)
1826%{perl_vendorlib}/Collectd.pm
1827%{perl_vendorlib}/Collectd
This page took 0.430172 seconds and 4 git commands to generate.