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