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