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