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