Add dpkdevents plugin to spec file
[collectd.git] / contrib / redhat / collectd.spec
1 #
2 # q: What is this ?
3 # a: A specfile for building RPM packages of current collectd releases, for
4 #    RHEL/CentOS versions 5, 6 and 7. By default all the plugins which are
5 #    buildable based on the libraries available in the distribution + the
6 #    EPEL repository, will be built. Plugins depending on external libs will
7 #    be packaged in separate RPMs.
8 #
9 # q: And how can I do that ?
10 # a: By following these instructions, using mock:
11 #
12 # - install and configure mock (https://fedoraproject.org/wiki/Projects/Mock)
13 #
14 # - enable the EPEL repository (http://dl.fedoraproject.org/pub/epel/) in the
15 #   configuration files for your target systems (/etc/mock/*.cfg).
16 #
17 # - fetch the desired collectd release file from https://collectd.org/files/
18 #   and save it in your ~/rpmbuild/SOURCES/ directory (or build your own out of
19 #   the git repository: ./build.sh && ./configure && make-dist-bz2)
20 #
21 # - copy this file in your ~/rpmbuild/SPECS/ directory. Make sure the
22 #   "Version:" tag matches the version from the tarball.
23 #
24 # - build the SRPM first:
25 #   mock -r centos-6-x86_64 --buildsrpm --spec ~/rpmbuild/SPECS/collectd.spec \
26 #     --sources ~/rpmbuild/SOURCES/
27 #
28 # - then build the RPMs:
29 #   mock -r centos-6-x86_64 --no-clean --rebuild \
30 #     /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
31 #
32 # - you can also optionally enable/disable plugins which are disabled/enabled
33 #   by default:
34 #   mock -r centos-6-x86_64 --no-clean --without=java --with=oracle --rebuild \
35 #     /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
36 #
37
38 %global _hardened_build 1
39 %{?perl_default_filter}
40
41 # plugins enabled by default
42 %define with_aggregation 0%{!?_without_aggregation:1}
43 %define with_amqp 0%{!?_without_amqp:1}
44 %define with_apache 0%{!?_without_apache:1}
45 %define with_apcups 0%{!?_without_apcups:1}
46 %define with_ascent 0%{!?_without_ascent:1}
47 %define with_battery 0%{!?_without_battery:1}
48 %define with_bind 0%{!?_without_bind:1}
49 %define with_ceph 0%{!?_without_ceph:1}
50 %define with_cgroups 0%{!?_without_cgroups:1}
51 %define with_chrony 0%{!?_without_chrony:1}
52 %define with_conntrack 0%{!?_without_conntrack:1}
53 %define with_contextswitch 0%{!?_without_contextswitch:1}
54 %define with_cpu 0%{!?_without_cpu:1}
55 %define with_cpufreq 0%{!?_without_cpufreq:1}
56 %define with_cpusleep 0%{!?_without_cpusleep:1}
57 %define with_csv 0%{!?_without_csv:1}
58 %define with_curl 0%{!?_without_curl:1}
59 %define with_curl_json 0%{!?_without_curl_json:1}
60 %define with_curl_xml 0%{!?_without_curl_xml:1}
61 %define with_dbi 0%{!?_without_dbi:1}
62 %define with_df 0%{!?_without_df:1}
63 %define with_disk 0%{!?_without_disk:1}
64 %define with_dns 0%{!?_without_dns:1}
65 %define with_drbd 0%{!?_without_drbd:1}
66 %define with_email 0%{!?_without_email:1}
67 %define with_entropy 0%{!?_without_entropy:1}
68 %define with_ethstat 0%{!?_without_ethstat:1}
69 %define with_exec 0%{!?_without_exec:1}
70 %define with_fhcount 0%{!?_without_fhcount:1}
71 %define with_filecount 0%{!?_without_filecount:1}
72 %define with_fscache 0%{!?_without_fscache:1}
73 %define with_gmond 0%{!?_without_gmond:1}
74 %define with_gps 0%{!?_without_gps:1}
75 %define with_hddtemp 0%{!?_without_hddtemp:1}
76 %define with_hugepages 0%{!?_without_hugepages:1}
77 %define with_interface 0%{!?_without_interface:1}
78 %define with_ipc 0%{!?_without_ipc:1}
79 %define with_ipmi 0%{!?_without_ipmi:1}
80 %define with_iptables 0%{!?_without_iptables:1}
81 %define with_ipvs 0%{!?_without_ipvs:1}
82 %define with_irq 0%{!?_without_irq:1}
83 %define with_java 0%{!?_without_java:1}
84 %define with_load 0%{!?_without_load:1}
85 %define with_log_logstash 0%{!?_without_log_logstash:1}
86 %define with_logfile 0%{!?_without_logfile:1}
87 %define with_lua 0%{!?_without_lua:1}
88 %define with_lvm 0%{!?_without_lvm:1}
89 %define with_madwifi 0%{!?_without_madwifi:1}
90 %define with_mbmon 0%{!?_without_mbmon:1}
91 %define with_mcelog 0%{!?_without_mcelog:1}
92 %define with_md 0%{!?_without_md:1}
93 %define with_memcachec 0%{!?_without_memcachec:1}
94 %define with_memcached 0%{!?_without_memcached:1}
95 %define with_memory 0%{!?_without_memory:1}
96 %define with_modbus 0%{!?_without_modbus:1}
97 %define with_mqtt 0%{!?_without_mqtt:1}
98 %define with_multimeter 0%{!?_without_multimeter:1}
99 %define with_mysql 0%{!?_without_mysql:1}
100 %define with_netlink 0%{!?_without_netlink:1}
101 %define with_network 0%{!?_without_network:1}
102 %define with_nfs 0%{!?_without_nfs:1}
103 %define with_nginx 0%{!?_without_nginx:1}
104 %define with_notify_desktop 0%{!?_without_notify_desktop:1}
105 %define with_notify_email 0%{!?_without_notify_email:1}
106 %define with_notify_nagios 0%{!?_without_notify_nagios:1}
107 %define with_ntpd 0%{!?_without_ntpd:1}
108 %define with_numa 0%{!?_without_numa:1}
109 %define with_nut 0%{!?_without_nut:1}
110 %define with_olsrd 0%{!?_without_olsrd:1}
111 %define with_openldap 0%{!?_without_openldap:1}
112 %define with_openvpn 0%{!?_without_openvpn:1}
113 %define with_ovs_events 0%{!?_without_ovs_events:1}
114 %define with_perl 0%{!?_without_perl:1}
115 %define with_pinba 0%{!?_without_pinba:1}
116 %define with_ping 0%{!?_without_ping:1}
117 %define with_postgresql 0%{!?_without_postgresql:1}
118 %define with_powerdns 0%{!?_without_powerdns:1}
119 %define with_processes 0%{!?_without_processes:1}
120 %define with_protocols 0%{!?_without_protocols:1}
121 %define with_python 0%{!?_without_python:1}
122 %define with_redis 0%{!?_without_redis:1}
123 %define with_rrdcached 0%{!?_without_rrdcached:1}
124 %define with_rrdtool 0%{!?_without_rrdtool:1}
125 %define with_sensors 0%{!?_without_sensors:1}
126 %define with_serial 0%{!?_without_serial:1}
127 %define with_smart 0%{!?_without_smart:1}
128 %define with_snmp 0%{!?_without_snmp:1}
129 %define with_statsd 0%{!?_without_statsd:1}
130 %define with_swap 0%{!?_without_swap:1}
131 %define with_syslog 0%{!?_without_syslog:1}
132 %define with_table 0%{!?_without_table:1}
133 %define with_tail 0%{!?_without_tail:1}
134 %define with_tail_csv 0%{!?_without_tail_csv:1}
135 %define with_tcpconns 0%{!?_without_tcpconns:1}
136 %define with_teamspeak2 0%{!?_without_teamspeak2:1}
137 %define with_ted 0%{!?_without_ted:1}
138 %define with_thermal 0%{!?_without_thermal:1}
139 %define with_threshold 0%{!?_without_threshold:1}
140 %define with_turbostat 0%{!?_without_turbostat:1}
141 %define with_unixsock 0%{!?_without_unixsock:1}
142 %define with_uptime 0%{!?_without_uptime:1}
143 %define with_users 0%{!?_without_users:1}
144 %define with_uuid 0%{!?_without_uuid:1}
145 %define with_varnish 0%{!?_without_varnish:1}
146 %define with_virt 0%{!?_without_virt:1}
147 %define with_vmem 0%{!?_without_vmem:1}
148 %define with_vserver 0%{!?_without_vserver:1}
149 %define with_wireless 0%{!?_without_wireless:1}
150 %define with_write_graphite 0%{!?_without_write_graphite:1}
151 %define with_write_http 0%{!?_without_write_http:1}
152 %define with_write_log 0%{!?_without_write_log:1}
153 %define with_write_prometheus 0%{!?_without_write_prometheus:1}
154 %define with_write_redis 0%{!?_without_write_redis:1}
155 %define with_write_riemann 0%{!?_without_write_riemann:1}
156 %define with_write_sensu 0%{!?_without_write_sensu:1}
157 %define with_write_tsdb 0%{!?_without_write_tsdb:1}
158 %define with_xmms 0%{!?_without_xmms:0%{?_has_xmms}}
159 %define with_zfs_arc 0%{!?_without_zfs_arc:1}
160 %define with_zookeeper 0%{!?_without_zookeeper:1}
161
162 # Plugins not built by default because of dependencies on libraries not
163 # available in RHEL or EPEL:
164
165 # plugin apple_sensors disabled, requires a Mac
166 %define with_apple_sensors 0%{!?_without_apple_sensors:0}
167 # plugin aquaero disabled, requires a libaquaero5
168 %define with_aquaero 0%{!?_without_aquaero:0}
169 # plugin barometer disabled, requires a libi2c
170 %define with_barometer 0%{!?_without_barometer:0}
171 # plugin dpdkevents disabled, requires libdpdk
172 %define with_dpdkevents 0%{!?_without_dpdkevents:0}
173 # plugin dpdkstat disabled, requires libdpdk
174 %define with_dpdkstat 0%{!?_without_dpdkstat:0}
175 # plugin grpc disabled, requires protobuf-compiler >= 3.0
176 %define with_grpc 0%{!?_without_grpc:0}
177 # plugin lpar disabled, requires AIX
178 %define with_lpar 0%{!?_without_lpar:0}
179 # plugin intel_rdt disabled, requires intel-cmt-cat
180 %define with_intel_rdt 0%{!?_without_intel_rdt:0}
181 # plugin mic disabled, requires Mic
182 %define with_mic 0%{!?_without_mic:0}
183 # plugin netapp disabled, requires libnetapp
184 %define with_netapp 0%{!?_without_netapp:0}
185 # plugin onewire disabled, requires libowfs
186 %define with_onewire 0%{!?_without_onewire:0}
187 # plugin oracle disabled, requires Oracle
188 %define with_oracle 0%{!?_without_oracle:0}
189 # plugin oracle disabled, requires BSD
190 %define with_pf 0%{!?_without_pf:0}
191 # plugin routeros disabled, requires librouteros
192 %define with_routeros 0%{!?_without_routeros:0}
193 # plugin sigrok disabled, requires libsigrok
194 %define with_sigrok 0%{!?_without_sigrok:0}
195 # plugin tape disabled, requires libkstat
196 %define with_tape 0%{!?_without_tape:0}
197 # plugin tokyotyrant disabled, requires tcrdb.h
198 %define with_tokyotyrant 0%{!?_without_tokyotyrant:0}
199 # plugin write_kafka disabled, requires librdkafka
200 %define with_write_kafka 0%{!?_without_write_kafka:0}
201 # plugin write_mongodb disabled, requires libmongoc
202 %define with_write_mongodb 0%{!?_without_write_mongodb:0}
203 # plugin xencpu disabled, requires xen-devel from non-default repo
204 %define with_xencpu 0%{!?_without_xencpu:0}
205 # plugin zone disabled, requires Solaris
206 %define with_zone 0%{!?_without_zone:0}
207
208 # Plugins not buildable on RHEL < 6
209 %if 0%{?rhel} && 0%{?rhel} < 6
210 %define with_ceph 0
211 %define with_curl_json 0
212 %define with_log_logstash 0
213 %define with_dns 0
214 %define with_ethstat 0
215 %define with_gmond 0
216 %define with_iptables 0
217 %define with_ipvs 0
218 %define with_lvm 0
219 %define with_modbus 0
220 %define with_netlink 0
221 %define with_redis 0
222 %define with_smart 0
223 %define with_turbostat 0
224 %define with_write_prometheus 0
225 %define with_write_redis 0
226 %define with_write_riemann 0
227 %endif
228
229 # Plugins not buildable on RHEL < 7
230 %if 0%{?rhel} && 0%{?rhel} < 7
231 %define with_cpusleep 0
232 %define with_gps 0
233 %define with_mqtt 0
234 %define with_ovs_events 0
235 %define with_redis 0
236 %define with_rrdcached 0
237 %define with_write_redis 0
238 %define with_write_riemann 0
239 %define with_xmms 0
240 %endif
241
242 Summary:        Statistics collection and monitoring daemon
243 Name:           collectd
244 Version:        5.7.1
245 Release:        3%{?dist}
246 URL:            https://collectd.org
247 Source:         https://collectd.org/files/%{name}-%{version}.tar.bz2
248 License:        GPLv2
249 Group:          System Environment/Daemons
250 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
251 BuildRequires:  libgcrypt-devel, kernel-headers, libcap-devel, which, xfsprogs-devel
252 Vendor:         collectd development team <collectd@verplant.org>
253
254 %if 0%{?fedora} || 0%{?rhel} >= 7
255 %{?systemd_requires}
256 BuildRequires:          systemd
257 %else
258 Requires(post):         chkconfig
259 Requires(preun):        chkconfig, initscripts
260 Requires(postun):       initscripts
261 %endif
262
263 %description
264 collectd is a small daemon which collects system information periodically and
265 provides mechanisms to monitor and store the values in a variety of ways. It
266 is written in C for performance. Since the daemon doesn't need to start up
267 every time it wants to update the values it's very fast and easy on the
268 system. Also, the statistics are very fine grained since the files are updated
269 every 10 seconds by default.
270
271 %if %{with_amqp}
272 %package amqp
273 Summary:        AMQP plugin for collectd
274 Group:          System Environment/Daemons
275 Requires:       %{name}%{?_isa} = %{version}-%{release}
276 BuildRequires:  librabbitmq-devel
277 %description amqp
278 The AMQP plugin transmits or receives values collected by collectd via the
279 Advanced Message Queuing Protocol (AMQP).
280 %endif
281
282 %if %{with_apache}
283 %package apache
284 Summary:        Apache plugin for collectd
285 Group:          System Environment/Daemons
286 Requires:       %{name}%{?_isa} = %{version}-%{release}
287 BuildRequires:  curl-devel
288 %description apache
289 This plugin collects data provided by Apache's `mod_status'.
290 %endif
291
292 %if %{with_aquaero}
293 %package aquaero
294 Summary:        aquaero plugin for collectd
295 Group:          System Environment/Daemons
296 Requires:       %{name}%{?_isa} = %{version}-%{release}
297 %description aquaero
298 Various sensors in the Aquaero 5 watercooling board made by Aquacomputer.
299 %endif
300
301 %if %{with_ascent}
302 %package ascent
303 Summary:        Ascent plugin for collectd
304 Group:          System Environment/Daemons
305 Requires:       %{name}%{?_isa} = %{version}-%{release}
306 BuildRequires:  libxml2-devel, curl-devel
307 %description ascent
308 The Ascent plugin reads and parses the statistics page of Ascent, a free and
309 open-source server software for the game World of Warcraft by Blizzard
310 Entertainment.
311 %endif
312
313 %if %{with_barometer}
314 %package barometer
315 Summary:       barometer plugin for collectd
316 Group:         System Environment/Daemons
317 Requires:      %{name}%{?_isa} = %{version}-%{release}
318 %description barometer
319 Collects pressure and temperature from digital barometers.
320 %endif
321
322 %if %{with_bind}
323 %package bind
324 Summary:        Bind plugin for collectd
325 Group:          System Environment/Daemons
326 Requires:       %{name}%{?_isa} = %{version}-%{release}
327 BuildRequires:  libxml2-devel, curl-devel
328 %description bind
329 The BIND plugin retrieves this information that's encoded in XML and provided
330 via HTTP and submits the values to collectd.
331 %endif
332
333 %if %{with_ceph}
334 %package ceph
335 Summary:       Ceph plugin for collectd
336 Group:         System Environment/Daemons
337 Requires:      %{name}%{?_isa} = %{version}-%{release}
338 BuildRequires: yajl-devel
339 %description ceph
340 Ceph plugin for collectd
341 %endif
342
343 %if %{with_chrony}
344 %package chrony
345 Summary:       Chrony plugin for collectd
346 Group:         System Environment/Daemons
347 Requires:      %{name}%{?_isa} = %{version}-%{release}
348 %description chrony
349 Chrony plugin for collectd
350 %endif
351
352 %if %{with_curl}
353 %package curl
354 Summary:        Curl plugin for collectd
355 Group:          System Environment/Daemons
356 Requires:       %{name}%{?_isa} = %{version}-%{release}
357 BuildRequires:  curl-devel
358 %description curl
359 The cURL plugin uses libcurl to read files and then parses them according to
360 the configuration.
361 %endif
362
363 %if %{with_curl_json}
364 %package curl_json
365 Summary:        Curl_json plugin for collectd
366 Group:          System Environment/Daemons
367 Requires:       %{name}%{?_isa} = %{version}-%{release}
368 BuildRequires:  curl-devel, yajl-devel
369 %description curl_json
370 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
371 cURL library and parses it according to the user's configuration.
372 %endif
373
374 %if %{with_curl_xml}
375 %package curl_xml
376 Summary:        Curl_xml plugin for collectd
377 Group:          System Environment/Daemons
378 Requires:       %{name}%{?_isa} = %{version}-%{release}
379 BuildRequires:  curl-devel, libxml2-devel
380 %description curl_xml
381 The cURL-XML plugin reads files using libcurl and parses it as Extensible
382 Markup Language (XML).
383 %endif
384
385 %if %{with_dbi}
386 %package dbi
387 Summary:        DBI plugin for collectd
388 Group:          System Environment/Daemons
389 Requires:       %{name}%{?_isa} = %{version}-%{release}
390 BuildRequires:  libdbi-devel
391 %description dbi
392 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
393 statements on a database and read back the result.
394 %endif
395
396 %if %{with_disk}
397 %package disk
398 Summary:        disk plugin for collectd
399 Group:          System Environment/Daemons
400 Requires:       %{name}%{?_isa} = %{version}-%{release}
401 %{?_has_libudev:BuildRequires:  libudev-devel}
402 %description disk
403 The "disk" plugin collects information about the usage of physical disks and
404 logical disks (partitions).
405 %endif
406
407 %if %{with_dns}
408 %package dns
409 Summary:        DNS plugin for collectd
410 Group:          System Environment/Daemons
411 Requires:       %{name}%{?_isa} = %{version}-%{release}, libpcap >= 1.0
412 BuildRequires:  libpcap-devel >= 1.0
413 %description dns
414 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
415 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
416 packets and collects statistics of your DNS traffic.
417 %endif
418
419 %if %{with_email}
420 %package email
421 Summary:        Email plugin for collectd
422 Group:          System Environment/Daemons
423 Requires:       %{name}%{?_isa} = %{version}-%{release}, spamassassin
424 %description email
425 This plugin collects data provided by spamassassin.
426 %endif
427
428 %if %{with_gmond}
429 %package gmond
430 Summary:        Gmond plugin for collectd
431 Group:          System Environment/Daemons
432 Requires:       %{name}%{?_isa} = %{version}-%{release}
433 BuildRequires:  ganglia-devel
434 %description gmond
435 The gmond plugin subscribes to a Multicast group to receive data from gmond,
436 the client daemon of the Ganglia project.
437 %endif
438
439 %if %{with_gps}
440 %package gps
441 Summary:        GPS plugin for collectd
442 Group:          System Environment/Daemons
443 Requires:       %{name}%{?_isa} = %{version}-%{release}
444 BuildRequires:  gpsd-devel
445 %description gps
446 This plugin monitor gps related data through gpsd.
447 %endif
448
449 %if %{with_grpc}
450 %package grpc
451 Summary:        GRPC plugin for collectd
452 Group:          System Environment/Daemons
453 Requires:       %{name}%{?_isa} = %{version}-%{release}
454 BuildRequires:  protobuf-compiler
455 %description grpc
456 This plugin embeds a gRPC server into Collectd.
457 %endif
458
459 %if %{with_hddtemp}
460 %package hddtemp
461 Summary:        Hddtemp plugin for collectd
462 Group:          System Environment/Daemons
463 Requires:       %{name}%{?_isa} = %{version}-%{release}, hddtemp
464 %description hddtemp
465 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
466 provided via SMART and queried by the external hddtemp daemon.
467 %endif
468
469 %if %{with_intel_rdt}
470 %package intel_rdt
471 Summary:        Intel RDT plugin for collectd
472 Group:          System Environment/Daemons
473 Requires:       %{name}%{?_isa} = %{version}-%{release}
474 BuildRequires:  intel-cmt-cat
475 %description intel_rdt
476 The intel_rdt plugin collects information provided by monitoring features of
477 Intel Resource Director Technology (Intel(R) RDT).
478 %endif
479
480 %if %{with_ipmi}
481 %package ipmi
482 Summary:        IPMI plugin for collectd
483 Group:          System Environment/Daemons
484 Requires:       %{name}%{?_isa} = %{version}-%{release}
485 BuildRequires:  OpenIPMI-devel
486 %description ipmi
487 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
488 using the Intelligent Platform Management Interface (IPMI).
489 %endif
490
491 %if %{with_iptables}
492 %package iptables
493 Summary:        IPtables plugin for collectd
494 Group:          System Environment/Daemons
495 Requires:       %{name}%{?_isa} = %{version}-%{release}
496 BuildRequires:  iptables-devel
497 %description iptables
498 The IPtables plugin can gather statistics from your ip_tables based packet
499 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
500 the byte- and packet-counters of selected rules and submit them to collectd.
501 %endif
502
503 %if %{with_java}
504 %package java
505 Summary:        Java plugin for collectd
506 Group:          System Environment/Daemons
507 Requires:       %{name}%{?_isa} = %{version}-%{release}
508 BuildRequires:  java-devel, jpackage-utils
509 Requires:       java, jpackage-utils
510 %description java
511 This plugin for collectd allows plugins to be written in Java and executed
512 in an embedded JVM.
513 %endif
514
515 %if %{with_log_logstash}
516 %package log_logstash
517 Summary:       log_logstash plugin for collectd
518 Group:         System Environment/Daemons
519 Requires:      %{name}%{?_isa} = %{version}-%{release}
520 BuildRequires: yajl-devel
521 %description log_logstash
522 This plugin logs in logstash JSON format
523 %endif
524
525 %if %{with_lua}
526 %package lua
527 Summary:        Lua plugin for collectd
528 Group:          System Environment/Daemons
529 Requires:       %{name}%{?_isa} = %{version}-%{release}
530 BuildRequires:  lua-devel
531 %description lua
532 The Lua plugin embeds a Lua interpreter into collectd and exposes the
533 application programming interface (API) to Lua scripts.
534 %endif
535
536 %if %{with_lvm}
537 %package lvm
538 Summary:        LVM plugin for collectd
539 Group:          System Environment/Daemons
540 Requires:       %{name}%{?_isa} = %{version}-%{release}
541 BuildRequires:  lvm2-devel
542 %description lvm
543 This plugin collects size of “Logical Volumes” (LV) and “Volume Groups” (VG)
544 of Linux' “Logical Volume Manager” (LVM).
545 %endif
546
547 %if %{with_mcelog}
548 %package mcelog
549 Summary:        Mcelog plugin for collectd
550 Group:          System Environment/Daemons
551 Requires:       %{name}%{?_isa} = %{version}-%{release}
552 %description mcelog
553 This plugin monitors machine check exceptions reported by mcelog and generates
554 appropriate notifications when machine check exceptions are detected.
555 %endif
556
557 %if %{with_memcachec}
558 %package memcachec
559 Summary:        Memcachec plugin for collectd
560 Group:          System Environment/Daemons
561 Requires:       %{name}%{?_isa} = %{version}-%{release}
562 BuildRequires:  libmemcached-devel
563 %description memcachec
564 The Memcachec plugin uses libmemcached to read statistics from a Memcached
565 instance. Note that another plugin, named `memcached', exists and does a
566 similar job, without requiring the installation of libmemcached.
567 %endif
568
569 %if %{with_mic}
570 %package mic
571 Summary:        mic plugin for collectd
572 Group:          System Environment/Daemons
573 Requires:       %{name}%{?_isa} = %{version}-%{release}
574 %description mic
575 The mic plugin collects CPU usage, memory usage, temperatures and power
576 consumption from Intel Many Integrated Core (MIC) CPUs.
577 %endif
578
579 %if %{with_modbus}
580 %package modbus
581 Summary:       modbus plugin for collectd
582 Group:         System Environment/Daemons
583 Requires:      %{name}%{?_isa} = %{version}-%{release}
584 BuildRequires:  libmodbus-devel
585 %description modbus
586 The modbus plugin collects values from Modbus/TCP enabled devices
587 %endif
588
589 %if %{with_mysql}
590 %package mysql
591 Summary:        MySQL plugin for collectd
592 Group:          System Environment/Daemons
593 Requires:       %{name}%{?_isa} = %{version}-%{release}
594 BuildRequires:  mysql-devel
595 %description mysql
596 MySQL querying plugin. This plugin provides data of issued commands, called
597 handlers and database traffic.
598 %endif
599
600 %if %{with_mqtt}
601 %package mqtt
602 Summary:        mqtt plugin for collectd
603 Group:          System Environment/Daemons
604 Requires:       %{name}%{?_isa} = %{version}-%{release}
605 BuildRequires:  mosquitto-devel
606 %description mqtt
607 The MQTT plugin publishes and subscribes to MQTT topics.
608 %endif
609
610 %if %{with_netlink}
611 %package netlink
612 Summary:        netlink plugin for collectd
613 Group:          System Environment/Daemons
614 Requires:       %{name}%{?_isa} = %{version}-%{release}
615 BuildRequires:  libmnl-devel, iproute-devel
616 %description netlink
617 The netlink plugin collects detailed network interface and routing statistics.
618 %endif
619
620 %if %{with_nginx}
621 %package nginx
622 Summary:        Nginx plugin for collectd
623 Group:          System Environment/Daemons
624 Requires:       %{name}%{?_isa} = %{version}-%{release}
625 BuildRequires:  curl-devel
626 %description nginx
627 This plugin gets data provided by nginx.
628 %endif
629
630 %if %{with_notify_desktop}
631 %package notify_desktop
632 Summary:        Notify_desktop plugin for collectd
633 Group:          System Environment/Daemons
634 Requires:       %{name}%{?_isa} = %{version}-%{release}
635 BuildRequires:  libnotify-devel, gtk2-devel
636 %description notify_desktop
637 The Notify Desktop plugin uses libnotify to display notifications to the user
638 via the desktop notification specification, i. e. on an X display.
639 %endif
640
641 %if %{with_notify_email}
642 %package notify_email
643 Summary:        Notify_email plugin for collectd
644 Group:          System Environment/Daemons
645 Requires:       %{name}%{?_isa} = %{version}-%{release}
646 BuildRequires:  libesmtp-devel
647 %description notify_email
648 The Notify Email plugin uses libESMTP to send notifications to a configured
649 email address.
650 %endif
651
652 %if %{with_nut}
653 %package nut
654 Summary:        Nut plugin for collectd
655 Group:          System Environment/Daemons
656 Requires:       %{name}%{?_isa} = %{version}-%{release}
657 BuildRequires:  nut-devel
658 %description nut
659 This plugin for collectd provides Network UPS Tools support.
660 %endif
661
662 %if %{with_openldap}
663 %package openldap
664 Summary:       Openldap plugin for collectd
665 Group:         System Environment/Daemons
666 Requires:      %{name}%{?_isa} = %{version}-%{release}
667 BuildRequires: openldap-devel
668 %description openldap
669 This plugin reads monitoring information from OpenLDAP's cn=Monitor subtree.
670 %endif
671
672 %if %{with_ovs_events}
673 %package ovs_events
674 Summary:       Open vSwitch events plugin for collectd
675 Group:         System Environment/Daemons
676 Requires:      %{name}%{?_isa} = %{version}-%{release}
677 BuildRequires: yajl-devel
678 %description ovs_events
679 This plugin monitors the link status of Open vSwitch (OVS) connected
680 interfaces, dispatches the values to collectd and sends notifications
681 whenever a link state change occurs in the OVS database.
682 %endif
683
684 %if %{with_perl}
685 %package perl
686 Summary:        Perl plugin for collectd
687 Group:          System Environment/Daemons
688 Requires:       %{name}%{?_isa} = %{version}-%{release}
689 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
690         %if 0%{?rhel} && 0%{?rhel} < 6
691 BuildRequires:  perl
692         %else
693 BuildRequires:  perl-ExtUtils-Embed
694         %endif
695 %description perl
696 The Perl plugin embeds a Perl interpreter into collectd and exposes the
697 application programming interface (API) to Perl-scripts.
698 %endif
699
700 %if %{with_pinba}
701 %package pinba
702 Summary:        Pinba plugin for collectd
703 Group:          System Environment/Daemons
704 Requires:       %{name}%{?_isa} = %{version}-%{release}
705 BuildRequires:  protobuf-c-devel
706 %description pinba
707 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
708 extension for PHP.
709 %endif
710
711 %if %{with_ping}
712 %package ping
713 Summary:        Ping plugin for collectd
714 Group:          System Environment/Daemons
715 Requires:       %{name}%{?_isa} = %{version}-%{release}
716 BuildRequires:  liboping-devel
717 %description ping
718 The Ping plugin measures network latency using ICMP “echo requests”, usually
719 known as “ping”.
720 %endif
721
722 %if %{with_postgresql}
723 %package postgresql
724 Summary:        PostgreSQL plugin for collectd
725 Group:          System Environment/Daemons
726 Requires:       %{name}%{?_isa} = %{version}-%{release}
727 BuildRequires:  postgresql-devel
728 %description postgresql
729 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
730 database.
731 %endif
732
733 %if %{with_python}
734 %package python
735 Summary:        Python plugin for collectd
736 Group:          System Environment/Daemons
737 Requires:       %{name}%{?_isa} = %{version}-%{release}
738         %if 0%{?rhel} && 0%{?rhel} < 6
739 BuildRequires: python26-devel
740         %else
741 BuildRequires: python-devel
742         %endif
743 %description python
744 The Python plugin embeds a Python interpreter into collectd and exposes the
745 application programming interface (API) to Python-scripts.
746 %endif
747
748 %if %{with_redis}
749 %package redis
750 Summary:        Redis plugin for collectd
751 Group:          System Environment/Daemons
752 Requires:       %{name}%{?_isa} = %{version}-%{release}
753 BuildRequires:  hiredis-devel
754 %description redis
755 The Redis plugin connects to one or more instances of Redis, a key-value store,
756 and collects usage information using the hiredis library.
757 %endif
758
759 %if %{with_rrdcached}
760 %package rrdcached
761 Summary:        RRDCached plugin for collectd
762 Group:          System Environment/Daemons
763 Requires:       %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
764 BuildRequires:  rrdtool-devel
765 %description rrdcached
766 The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
767 submits updates for RRD files to that daemon.
768 %endif
769
770 %if %{with_rrdtool}
771 %package rrdtool
772 Summary:        RRDtool plugin for collectd
773 Group:          System Environment/Daemons
774 Requires:       %{name}%{?_isa} = %{version}-%{release}
775 BuildRequires:  rrdtool-devel
776 %description rrdtool
777 The RRDtool plugin writes values to RRD-files using librrd.
778 %endif
779
780 %if %{with_sensors}
781 %package sensors
782 Summary:        Sensors plugin for collectd
783 Group:          System Environment/Daemons
784 Requires:       %{name}%{?_isa} = %{version}-%{release}
785 BuildRequires:  lm_sensors-devel
786 %description sensors
787 This plugin for collectd provides querying of sensors supported by lm_sensors.
788 %endif
789
790 %if %{with_sigrok}
791 %package sigrok
792 Summary:        sigrok plugin for collectd
793 Group:          System Environment/Daemons
794 Requires:       %{name}%{?_isa} = %{version}-%{release}
795 %description sigrok
796 Uses libsigrok as a backend, allowing any sigrok-supported device to have its
797 measurements fed to collectd. This includes multimeters, sound level meters,
798 thermometers, and much more.
799 %endif
800
801 %if %{with_smart}
802 %package smart
803 Summary:       SMART plugin for collectd
804 Group:         System Environment/Daemons
805 Requires:      %{name}%{?_isa} = %{version}-%{release}
806 BuildRequires: libatasmart-devel
807 %description smart
808 Collect SMART statistics, notably load cycle count, temperature and bad
809 sectors.
810 %endif
811
812 %if %{with_snmp}
813 %package snmp
814 Summary:        SNMP plugin for collectd
815 Group:          System Environment/Daemons
816 Requires:       %{name}%{?_isa} = %{version}-%{release}
817 BuildRequires:  net-snmp-devel
818 %description snmp
819 This plugin for collectd allows querying of network equipment using SNMP.
820 %endif
821
822 %if %{with_varnish}
823 %package varnish
824 Summary:        Varnish plugin for collectd
825 Group:          System Environment/Daemons
826 Requires:       %{name}%{?_isa} = %{version}-%{release}
827 BuildRequires:  varnish-libs-devel
828 %description varnish
829 The Varnish plugin collects information about Varnish, an HTTP accelerator.
830 %endif
831
832 %if %{with_virt}
833 %package virt
834 Summary:        Virt plugin for collectd
835 Group:          System Environment/Daemons
836 Requires:       %{name}%{?_isa} = %{version}-%{release}
837 BuildRequires:  libvirt-devel
838 %description virt
839 This plugin collects information from virtualized guests.
840 %endif
841
842 %if %{with_write_http}
843 %package write_http
844 Summary:        Write-HTTP plugin for collectd
845 Group:          System Environment/Daemons
846 Requires:       %{name}%{?_isa} = %{version}-%{release}
847 BuildRequires:  curl-devel
848 %description write_http
849 The Write-HTTP plugin sends the values collected by collectd to a web-server
850 using HTTP POST requests.
851 %endif
852
853 %if %{with_write_kafka}
854 %package write_kafka
855 Summary:       Write-kafka plugin for collectd
856 Group:         System Environment/Daemons
857 Requires:      %{name}%{?_isa} = %{version}-%{release}
858 BuildRequires: librdkafka-devel
859 %description write_kafka
860 The write_kafka plugin sends values to kafka, a distributed messaging system.
861 %endif
862
863 %if %{with_write_prometheus}
864 %package write_prometheus
865 Summary:        Write-prometheus plugin for collectd
866 Group:          System Environment/Daemons
867 Requires:       %{name}%{?_isa} = %{version}-%{release}
868 BuildRequires:  libmicrohttpd-devel
869 %description write_prometheus
870 The Write Prometheus plugin exposes collected values using an embedded HTTP
871 server, turning the collectd daemon into a Prometheus exporter.
872 %endif
873
874 %if %{with_write_redis}
875 %package write_redis
876 Summary:        Write-Redis plugin for collectd
877 Group:          System Environment/Daemons
878 Requires:       %{name}%{?_isa} = %{version}-%{release}
879 BuildRequires:  hiredis-devel
880 %description write_redis
881 The Write Redis plugin stores values in Redis, a “data structures server”.
882 %endif
883
884 %if %{with_write_riemann}
885 %package write_riemann
886 Summary:        riemann plugin for collectd
887 Group:          System Environment/Daemons
888 Requires:       %{name}%{?_isa} = %{version}-%{release}
889 BuildRequires:  riemann-c-client-devel >= 1.6
890 %description write_riemann
891 The riemann plugin submits values to Riemann, an event stream processor.
892 %endif
893
894 %if %{with_xencpu}
895 %package xencpu
896 Summary:        xencpu plugin for collectd
897 Group:          System Environment/Daemons
898 Requires:       %{name}%{?_isa} = %{version}-%{release}
899 BuildRequires:  xen-devel
900 %description xencpu
901 The xencpu plugin collects CPU statistics from Xen.
902 %endif
903
904 %if %{with_xmms}
905 %package xmms
906 Summary:        XMMS plugin for collectd
907 Group:          System Environment/Daemons
908 Requires:       %{name}%{?_isa} = %{version}-%{release}
909 BuildRequires:  xmms-devel
910 %description xmms
911 The xmms plugin collects information from the XMMS music player.
912 %endif
913
914 %package collection3
915 Summary:        Web-based viewer for collectd
916 Group:          System Environment/Daemons
917 Requires:       %{name}%{?_isa} = %{version}-%{release}
918 Requires: httpd
919 %description collection3
920 collection3 is a graphing front-end for the RRD files created by and filled
921 with collectd. It is written in Perl and should be run as an CGI-script.
922 Graphs are generated on-the-fly, so no cron job or similar is necessary.
923
924 %package php-collection
925 Summary:        collect php webfrontent
926 Group:          System Environment/Daemons
927 Requires:       collectd = %{version}-%{release}
928 Requires:       httpd
929 Requires:       php
930 Requires:       php-rrdtool
931 %description php-collection
932 PHP graphing frontend for RRD files created by and filled with collectd.
933
934 %package contrib
935 Summary:        Contrib files for collectd
936 Group:          System Environment/Daemons
937 Requires:       %{name}%{?_isa} = %{version}-%{release}
938 %description contrib
939 All the files found under contrib/ in the source tree are bundled in this
940 package.
941
942 %package -n libcollectdclient
943 Summary:        Collectd client library
944 Group:          System Environment/Daemons
945 %description -n libcollectdclient
946 Collectd client library
947
948 %package -n libcollectdclient-devel
949 Summary:        Development files for libcollectdclient
950 Group:          System Environment/Daemons
951 Requires:       pkgconfig
952 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
953 %description -n libcollectdclient-devel
954 Development files for libcollectdclient
955
956 %package -n collectd-utils
957 Summary:        Collectd utilities
958 Group:          System Environment/Daemons
959 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
960 Requires:       collectd%{?_isa} = %{version}-%{release}
961 %description -n collectd-utils
962 Collectd utilities
963
964 %prep
965 %setup -q
966
967 %build
968 %if %{with_aggregation}
969 %define _with_aggregation --enable-aggregation
970 %else
971 %define _with_aggregation --disable-aggregation
972 %endif
973
974 %if %{with_amqp}
975 %define _with_amqp --enable-amqp
976 %else
977 %define _with_amqp --disable-amqp
978 %endif
979
980 %if %{with_apache}
981 %define _with_apache --enable-apache
982 %else
983 %define _with_apache --disable-apache
984 %endif
985
986 %if %{with_apcups}
987 %define _with_apcups --enable-apcups
988 %else
989 %define _with_apcups --disable-apcups
990 %endif
991
992 %if %{with_apple_sensors}
993 %define _with_apple_sensors --enable-apple_sensors
994 %else
995 %define _with_apple_sensors --disable-apple_sensors
996 %endif
997
998 %if %{with_aquaero}
999 %define _with_aquaero --enable-aquaero
1000 %else
1001 %define _with_aquaero --disable-aquaero
1002 %endif
1003
1004 %if %{with_ascent}
1005 %define _with_ascent --enable-ascent
1006 %else
1007 %define _with_ascent --disable-ascent
1008 %endif
1009
1010 %if %{with_barometer}
1011 %define _with_barometer --enable-barometer
1012 %else
1013 %define _with_barometer --disable-barometer
1014 %endif
1015
1016 %if %{with_battery}
1017 %define _with_battery --enable-battery
1018 %else
1019 %define _with_battery --disable-battery
1020 %endif
1021
1022 %if %{with_bind}
1023 %define _with_bind --enable-bind
1024 %else
1025 %define _with_bind --disable-bind
1026 %endif
1027
1028 %if %{with_cgroups}
1029 %define _with_cgroups --enable-cgroups
1030 %else
1031 %define _with_cgroups --disable-cgroups
1032 %endif
1033
1034 %if %{with_chrony}
1035 %define _with_chrony --enable-chrony
1036 %else
1037 %define _with_chrony --disable-chrony
1038 %endif
1039
1040 %if %{with_conntrack}
1041 %define _with_conntrack --enable-conntrack
1042 %else
1043 %define _with_conntrack --disable-conntrack
1044 %endif
1045
1046 %if %{with_contextswitch}
1047 %define _with_contextswitch --enable-contextswitch
1048 %else
1049 %define _with_contextswitch --disable-contextswitch
1050 %endif
1051
1052 %if %{with_cpu}
1053 %define _with_cpu --enable-cpu
1054 %else
1055 %define _with_cpu --disable-cpu
1056 %endif
1057
1058 %if %{with_cpufreq}
1059 %define _with_cpufreq --enable-cpufreq
1060 %else
1061 %define _with_cpufreq --disable-cpufreq
1062 %endif
1063
1064 %if %{with_cpusleep}
1065 %define _with_cpusleep --enable-cpusleep
1066 %else
1067 %define _with_cpusleep --disable-cpusleep
1068 %endif
1069
1070 %if %{with_csv}
1071 %define _with_csv --enable-csv
1072 %else
1073 %define _with_csv --disable-csv
1074 %endif
1075
1076 %if %{with_ceph}
1077 %define _with_ceph --enable-ceph
1078 %else
1079 %define _with_ceph --disable-ceph
1080 %endif
1081
1082 %if %{with_curl}
1083 %define _with_curl --enable-curl
1084 %else
1085 %define _with_curl --disable-curl
1086 %endif
1087
1088 %if %{with_curl_json}
1089 %define _with_curl_json --enable-curl_json
1090 %else
1091 %define _with_curl_json --disable-curl_json
1092 %endif
1093
1094 %if %{with_curl_xml}
1095 %define _with_curl_xml --enable-curl_xml
1096 %else
1097 %define _with_curl_xml --disable-curl_xml
1098 %endif
1099
1100 %if %{with_dbi}
1101 %define _with_dbi --enable-dbi
1102 %else
1103 %define _with_dbi --disable-dbi
1104 %endif
1105
1106 %if %{with_df}
1107 %define _with_df --enable-df
1108 %else
1109 %define _with_df --disable-df
1110 %endif
1111
1112 %if %{with_disk}
1113 %define _with_disk --enable-disk
1114 %else
1115 %define _with_disk --disable-disk
1116 %endif
1117
1118 %if %{with_dns}
1119 %define _with_dns --enable-dns
1120 %else
1121 %define _with_dns --disable-dns
1122 %endif
1123
1124 %if %{with_drbd}
1125 %define _with_drbd --enable-drbd
1126 %else
1127 %define _with_drbd --disable-drbd
1128 %endif
1129
1130 %if %{with_dpdkevents}
1131 %define _with_dpdkevents --enable-dpdkevents
1132 %else
1133 %define _with_dpdkevents --disable-dpdkevents
1134 %endif
1135
1136 %if %{with_dpdkstat}
1137 %define _with_dpdkstat --enable-dpdkstat
1138 %else
1139 %define _with_dpdkstat --disable-dpdkstat
1140 %endif
1141
1142 %if %{with_email}
1143 %define _with_email --enable-email
1144 %else
1145 %define _with_email --disable-email
1146 %endif
1147
1148 %if %{with_entropy}
1149 %define _with_entropy --enable-entropy
1150 %else
1151 %define _with_entropy --disable-entropy
1152 %endif
1153
1154 %if %{with_ethstat}
1155 %define _with_ethstat --enable-ethstat
1156 %else
1157 %define _with_ethstat --disable-ethstat
1158 %endif
1159
1160 %if %{with_exec}
1161 %define _with_exec --enable-exec
1162 %else
1163 %define _with_exec --disable-exec
1164 %endif
1165
1166 %if %{with_fhcount}
1167 %define _with_fhcount --enable-fhcount
1168 %else
1169 %define _with_fhcount --disable-fhcount
1170 %endif
1171
1172 %if %{with_filecount}
1173 %define _with_filecount --enable-filecount
1174 %else
1175 %define _with_filecount --disable-filecount
1176 %endif
1177
1178 %if %{with_fscache}
1179 %define _with_fscache --enable-fscache
1180 %else
1181 %define _with_fscache --disable-fscache
1182 %endif
1183
1184 %if %{with_gmond}
1185 %define _with_gmond --enable-gmond
1186 %else
1187 %define _with_gmond --disable-gmond
1188 %endif
1189
1190 %if %{with_gps}
1191 %define _with_gps --enable-gps
1192 %else
1193 %define _with_gps --disable-gps
1194 %endif
1195
1196 %if %{with_grpc}
1197 %define _with_grpc --enable-grpc
1198 %else
1199 %define _with_grpc --disable-grpc
1200 %endif
1201
1202 %if %{with_hddtemp}
1203 %define _with_hddtemp --enable-hddtemp
1204 %else
1205 %define _with_hddtemp --disable-hddtemp
1206 %endif
1207
1208 %if %{with_hugepages}
1209 %define _with_hugepages --enable-hugepages
1210 %else
1211 %define _with_hugepages --disable-hugepages
1212 %endif
1213
1214 %if %{with_intel_rdt}
1215 %define _with_intel_rdt --enable-intel_rdt
1216 %else
1217 %define _with_intel_rdt --disable-intel_rdt
1218 %endif
1219
1220 %if %{with_interface}
1221 %define _with_interface --enable-interface
1222 %else
1223 %define _with_interface --disable-interface
1224 %endif
1225
1226 %if %{with_ipc}
1227 %define _with_ipc --enable-ipc
1228 %else
1229 %define _with_ipc --disable-ipc
1230 %endif
1231
1232 %if %{with_ipmi}
1233 %define _with_ipmi --enable-ipmi
1234 %else
1235 %define _with_ipmi --disable-ipmi
1236 %endif
1237
1238 %if %{with_iptables}
1239 %define _with_iptables --enable-iptables
1240 %else
1241 %define _with_iptables --disable-iptables
1242 %endif
1243
1244 %if %{with_ipvs}
1245 %define _with_ipvs --enable-ipvs
1246 %else
1247 %define _with_ipvs --disable-ipvs
1248 %endif
1249
1250 %if %{with_irq}
1251 %define _with_irq --enable-irq
1252 %else
1253 %define _with_irq --disable-irq
1254 %endif
1255
1256 %if %{with_java}
1257 %define _with_java --enable-java --with-java=%{java_home}/
1258 %else
1259 %define _with_java --disable-java
1260 %endif
1261
1262 %if %{with_virt}
1263 %define _with_virt --enable-virt
1264 %else
1265 %define _with_virt --disable-virt
1266 %endif
1267
1268 %if %{with_load}
1269 %define _with_load --enable-load
1270 %else
1271 %define _with_load --disable-load
1272 %endif
1273
1274 %if %{with_logfile}
1275 %define _with_logfile --enable-logfile
1276 %else
1277 %define _with_logfile --disable-logfile
1278 %endif
1279
1280 %if %{with_log_logstash}
1281 %define _with_log_logstash --enable-log_logstash
1282 %else
1283 %define _with_log_logstash --disable-log_logstash
1284 %endif
1285
1286 %if %{with_lpar}
1287 %define _with_lpar --enable-lpar
1288 %else
1289 %define _with_lpar --disable-lpar
1290 %endif
1291
1292 %if %{with_lua}
1293 %define _with_lua --enable-lua
1294 %else
1295 %define _with_lua --disable-lua
1296 %endif
1297
1298 %if %{with_lvm}
1299 %define _with_lvm --enable-lvm
1300 %else
1301 %define _with_lvm --disable-lvm
1302 %endif
1303
1304 %if %{with_madwifi}
1305 %define _with_madwifi --enable-madwifi
1306 %else
1307 %define _with_madwifi --disable-madwifi
1308 %endif
1309
1310 %if %{with_mbmon}
1311 %define _with_mbmon --enable-mbmon
1312 %else
1313 %define _with_mbmon --disable-mbmon
1314 %endif
1315
1316 %if %{with_mcelog}
1317 %define _with_mcelog --enable-mcelog
1318 %else
1319 %define _with_mbmon --disable-mcelog
1320 %endif
1321
1322 %if %{with_md}
1323 %define _with_md --enable-md
1324 %else
1325 %define _with_md --disable-md
1326 %endif
1327
1328 %if %{with_memcachec}
1329 %define _with_memcachec --enable-memcachec
1330 %else
1331 %define _with_memcachec --disable-memcachec
1332 %endif
1333
1334 %if %{with_memcached}
1335 %define _with_memcached --enable-memcached
1336 %else
1337 %define _with_memcached --disable-memcached
1338 %endif
1339
1340 %if %{with_memory}
1341 %define _with_memory --enable-memory
1342 %else
1343 %define _with_memory --disable-memory
1344 %endif
1345
1346 %if %{with_mic}
1347 %define _with_mic --enable-mic
1348 %else
1349 %define _with_mic --disable-mic
1350 %endif
1351
1352 %if %{with_modbus}
1353 %define _with_modbus --enable-modbus
1354 %else
1355 %define _with_modbus --disable-modbus
1356 %endif
1357
1358 %if %{with_multimeter}
1359 %define _with_multimeter --enable-multimeter
1360 %else
1361 %define _with_multimeter --disable-multimeter
1362 %endif
1363
1364 %if %{with_mqtt}
1365 %define _with_mqtt --enable-mqtt
1366 %else
1367 %define _with_mqtt --disable-mqtt
1368 %endif
1369
1370 %if %{with_mysql}
1371 %define _with_mysql --enable-mysql
1372 %else
1373 %define _with_mysql --disable-mysql
1374 %endif
1375
1376 %if %{with_netapp}
1377 %define _with_netapp --enable-netapp
1378 %else
1379 %define _with_netapp --disable-netapp
1380 %endif
1381
1382 %if %{with_netlink}
1383 %define _with_netlink --enable-netlink
1384 %else
1385 %define _with_netlink --disable-netlink
1386 %endif
1387
1388 %if %{with_network}
1389 %define _with_network --enable-network
1390 %else
1391 %define _with_network --disable-network
1392 %endif
1393
1394 %if %{with_nfs}
1395 %define _with_nfs --enable-nfs
1396 %else
1397 %define _with_nfs --disable-nfs
1398 %endif
1399
1400 %if %{with_nginx}
1401 %define _with_nginx --enable-nginx
1402 %else
1403 %define _with_nginx --disable-nginx
1404 %endif
1405
1406 %if %{with_notify_desktop}
1407 %define _with_notify_desktop --enable-notify_desktop
1408 %else
1409 %define _with_notify_desktop --disable-notify_desktop
1410 %endif
1411
1412 %if %{with_notify_email}
1413 %define _with_notify_email --enable-notify_email
1414 %else
1415 %define _with_notify_email --disable-notify_email
1416 %endif
1417
1418 %if %{with_notify_nagios}
1419 %define _with_notify_nagios --enable-notify_nagios
1420 %else
1421 %define _with_notify_nagios --disable-notify_nagios
1422 %endif
1423
1424 %if %{with_ntpd}
1425 %define _with_ntpd --enable-ntpd
1426 %else
1427 %define _with_ntpd --disable-ntpd
1428 %endif
1429
1430 %if %{with_numa}
1431 %define _with_numa --enable-numa
1432 %else
1433 %define _with_numa --disable-numa
1434 %endif
1435
1436 %if %{with_nut}
1437 %define _with_nut --enable-nut
1438 %else
1439 %define _with_nut --disable-nut
1440 %endif
1441
1442 %if %{with_olsrd}
1443 %define _with_olsrd --enable-olsrd
1444 %else
1445 %define _with_olsrd --disable-olsrd
1446 %endif
1447
1448 %if %{with_onewire}
1449 %define _with_onewire --enable-onewire
1450 %else
1451 %define _with_onewire --disable-onewire
1452 %endif
1453
1454 %if %{with_openldap}
1455 %define _with_openldap --enable-openldap
1456 %else
1457 %define _with_openldap --disable-openldap
1458 %endif
1459
1460 %if %{with_openvpn}
1461 %define _with_openvpn --enable-openvpn
1462 %else
1463 %define _with_openvpn --disable-openvpn
1464 %endif
1465
1466 %if %{with_oracle}
1467 %define _with_oracle --enable-oracle
1468 %else
1469 %define _with_oracle --disable-oracle
1470 %endif
1471
1472 %if %{with_ovs_events}
1473 %define _with_ovs_events --enable-ovs_events
1474 %else
1475 %define _with_ovs_events --disable-ovs_events
1476 %endif
1477
1478 %if %{with_perl}
1479 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
1480 %else
1481 %define _with_perl --disable-perl
1482 %endif
1483
1484 %if %{with_pf}
1485 %define _with_pf --enable-pf
1486 %else
1487 %define _with_pf --disable-pf
1488 %endif
1489
1490 %if %{with_pinba}
1491 %define _with_pinba --enable-pinba
1492 %else
1493 %define _with_pinba --disable-pinba
1494 %endif
1495
1496 %if %{with_ping}
1497 %define _with_ping --enable-ping
1498 %else
1499 %define _with_ping --disable-ping
1500 %endif
1501
1502 %if %{with_postgresql}
1503 %define _with_postgresql --enable-postgresql
1504 %else
1505 %define _with_postgresql --disable-postgresql
1506 %endif
1507
1508 %if %{with_powerdns}
1509 %define _with_powerdns --enable-powerdns
1510 %else
1511 %define _with_powerdns --disable-powerdns
1512 %endif
1513
1514 %if %{with_processes}
1515 %define _with_processes --enable-processes
1516 %else
1517 %define _with_processes --disable-processes
1518 %endif
1519
1520 %if %{with_protocols}
1521 %define _with_protocols --enable-protocols
1522 %else
1523 %define _with_protocols --disable-protocols
1524 %endif
1525
1526 %if %{with_python}
1527         %if 0%{?rhel} && 0%{?rhel} < 6
1528 %define _with_python --enable-python --with-python=%{_bindir}/python2.6
1529 %define _python_config PYTHON_CONFIG="%{_bindir}/python2.6-config"
1530         %else
1531 %define _with_python --enable-python
1532         %endif
1533 %else
1534 %define _with_python --disable-python
1535 %endif
1536
1537 %if %{with_redis}
1538 %define _with_redis --enable-redis
1539 %else
1540 %define _with_redis --disable-redis
1541 %endif
1542
1543 %if %{with_routeros}
1544 %define _with_routeros --enable-routeros
1545 %else
1546 %define _with_routeros --disable-routeros
1547 %endif
1548
1549 %if %{with_rrdcached}
1550 %define _with_rrdcached --enable-rrdcached
1551 %else
1552 %define _with_rrdcached --disable-rrdcached
1553 %endif
1554
1555 %if %{with_rrdtool}
1556 %define _with_rrdtool --enable-rrdtool
1557 %else
1558 %define _with_rrdtool --disable-rrdtool
1559 %endif
1560
1561 %if %{with_sensors}
1562 %define _with_sensors --enable-sensors
1563 %else
1564 %define _with_sensors --disable-sensors
1565 %endif
1566
1567 %if %{with_serial}
1568 %define _with_serial --enable-serial
1569 %else
1570 %define _with_serial --disable-serial
1571 %endif
1572
1573 %if %{with_sigrok}
1574 %define _with_sigrok --enable-sigrok
1575 %else
1576 %define _with_sigrok --disable-sigrok
1577 %endif
1578
1579 %if %{with_smart}
1580 %define _with_smart --enable-smart
1581 %else
1582 %define _with_smart --disable-smart
1583 %endif
1584
1585 %if %{with_snmp}
1586 %define _with_snmp --enable-snmp
1587 %else
1588 %define _with_snmp --disable-snmp
1589 %endif
1590
1591 %if %{with_statsd}
1592 %define _with_statsd --enable-statsd
1593 %else
1594 %define _with_statsd --disable-statsd
1595 %endif
1596
1597 %if %{with_swap}
1598 %define _with_swap --enable-swap
1599 %else
1600 %define _with_swap --disable-swap
1601 %endif
1602
1603 %if %{with_syslog}
1604 %define _with_syslog --enable-syslog
1605 %else
1606 %define _with_syslog --disable-syslog
1607 %endif
1608
1609 %if %{with_table}
1610 %define _with_table --enable-table
1611 %else
1612 %define _with_table --disable-table
1613 %endif
1614
1615 %if %{with_tail}
1616 %define _with_tail --enable-tail
1617 %else
1618 %define _with_tail --disable-tail
1619 %endif
1620
1621 %if %{with_tail_csv}
1622 %define _with_tail_csv --enable-tail_csv
1623 %else
1624 %define _with_tail_csv --disable-tail_csv
1625 %endif
1626
1627 %if %{with_tape}
1628 %define _with_tape --enable-tape
1629 %else
1630 %define _with_tape --disable-tape
1631 %endif
1632
1633 %if %{with_tcpconns}
1634 %define _with_tcpconns --enable-tcpconns
1635 %else
1636 %define _with_tcpconns --disable-tcpconns
1637 %endif
1638
1639 %if %{with_teamspeak2}
1640 %define _with_teamspeak2 --enable-teamspeak2
1641 %else
1642 %define _with_teamspeak2 --disable-teamspeak2
1643 %endif
1644
1645 %if %{with_ted}
1646 %define _with_ted --enable-ted
1647 %else
1648 %define _with_ted --disable-ted
1649 %endif
1650
1651 %if %{with_thermal}
1652 %define _with_thermal --enable-thermal
1653 %else
1654 %define _with_thermal --disable-thermal
1655 %endif
1656
1657 %if %{with_threshold}
1658 %define _with_threshold --enable-threshold
1659 %else
1660 %define _with_threshold --disable-threshold
1661 %endif
1662
1663 %if %{with_tokyotyrant}
1664 %define _with_tokyotyrant --enable-tokyotyrant
1665 %else
1666 %define _with_tokyotyrant --disable-tokyotyrant
1667 %endif
1668
1669 %if %{with_turbostat}
1670 %define _with_turbostat --enable-turbostat
1671 %else
1672 %define _with_turbostat --disable-turbostat
1673 %endif
1674
1675 %if %{with_unixsock}
1676 %define _with_unixsock --enable-unixsock
1677 %else
1678 %define _with_unixsock --disable-unixsock
1679 %endif
1680
1681 %if %{with_uptime}
1682 %define _with_uptime --enable-uptime
1683 %else
1684 %define _with_uptime --disable-uptime
1685 %endif
1686
1687 %if %{with_users}
1688 %define _with_users --enable-users
1689 %else
1690 %define _with_users --disable-users
1691 %endif
1692
1693 %if %{with_uuid}
1694 %define _with_uuid --enable-uuid
1695 %else
1696 %define _with_uuid --disable-uuid
1697 %endif
1698
1699 %if %{with_varnish}
1700 %define _with_varnish --enable-varnish
1701 %else
1702 %define _with_varnish --disable-varnish
1703 %endif
1704
1705 %if %{with_vmem}
1706 %define _with_vmem --enable-vmem
1707 %else
1708 %define _with_vmem --disable-vmem
1709 %endif
1710
1711 %if %{with_vserver}
1712 %define _with_vserver --enable-vserver
1713 %else
1714 %define _with_vserver --disable-vserver
1715 %endif
1716
1717 %if %{with_wireless}
1718 %define _with_wireless --enable-wireless
1719 %else
1720 %define _with_wireless --disable-wireless
1721 %endif
1722
1723 %if %{with_write_graphite}
1724 %define _with_write_graphite --enable-write_graphite
1725 %else
1726 %define _with_write_graphite --disable-write_graphite
1727 %endif
1728
1729 %if %{with_write_http}
1730 %define _with_write_http --enable-write_http
1731 %else
1732 %define _with_write_http --disable-write_http
1733 %endif
1734
1735 %if %{with_write_kafka}
1736 %define _with_write_kafka --enable-write_kafka
1737 %else
1738 %define _with_write_kafka --disable-write_kafka
1739 %endif
1740
1741 %if %{with_write_log}
1742 %define _with_write_log --enable-write_log
1743 %else
1744 %define _with_write_log --disable-write_log
1745 %endif
1746
1747 %if %{with_write_mongodb}
1748 %define _with_write_mongodb --enable-write_mongodb
1749 %else
1750 %define _with_write_mongodb --disable-write_mongodb
1751 %endif
1752
1753 %if %{with_write_prometheus}
1754 %define _with_write_prometheus --enable-write_prometheus
1755 %else
1756 %define _with_write_prometheus --disable-write_prometheus
1757 %endif
1758
1759 %if %{with_write_redis}
1760 %define _with_write_redis --enable-write_redis
1761 %else
1762 %define _with_write_redis --disable-write_redis
1763 %endif
1764
1765 %if %{with_write_riemann}
1766 %define _with_write_riemann --enable-write_riemann
1767 %else
1768 %define _with_write_riemann --disable-write_riemann
1769 %endif
1770
1771 %if %{with_write_sensu}
1772 %define _with_write_sensu --enable-write_sensu
1773 %else
1774 %define _with_write_sensu --disable-write_sensu
1775 %endif
1776
1777 %if %{with_write_tsdb}
1778 %define _with_write_tsdb --enable-write_tsdb
1779 %else
1780 %define _with_write_tsdb --disable-write_tsdb
1781 %endif
1782
1783 %if %{with_xencpu}
1784 %define _with_xencpu --enable-xencpu
1785 %else
1786 %define _with_xencpu --disable-xencpu
1787 %endif
1788
1789 %if %{with_xmms}
1790 %define _with_xmms --enable-xmms
1791 %else
1792 %define _with_xmms --disable-xmms
1793 %endif
1794
1795 %if %{with_zfs_arc}
1796 %define _with_zfs_arc --enable-zfs_arc
1797 %else
1798 %define _with_zfs_arc --disable-zfs_arc
1799 %endif
1800
1801 %if %{with_zone}
1802 %define _with_zone --enable-zone
1803 %else
1804 %define _with_zone --disable-zone
1805 %endif
1806
1807 %if %{with_zookeeper}
1808 %define _with_zookeeper --enable-zookeeper
1809 %else
1810 %define _with_zookeeper --disable-zookeeper
1811 %endif
1812
1813 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1814         %{?_python_config} \
1815         --disable-static \
1816         --enable-all-plugins=yes \
1817         --enable-match_empty_counter \
1818         --enable-match_hashed \
1819         --enable-match_regex \
1820         --enable-match_timediff \
1821         --enable-match_value \
1822         --enable-target_notification \
1823         --enable-target_replace \
1824         --enable-target_scale \
1825         --enable-target_set \
1826         --enable-target_v5upgrade \
1827         %{?_with_aggregation} \
1828         %{?_with_amqp} \
1829         %{?_with_apache} \
1830         %{?_with_apcups} \
1831         %{?_with_apple_sensors} \
1832         %{?_with_aquaero} \
1833         %{?_with_ascent} \
1834         %{?_with_barometer} \
1835         %{?_with_battery} \
1836         %{?_with_bind} \
1837         %{?_with_ceph} \
1838         %{?_with_cgroups} \
1839         %{?_with_chrony} \
1840         %{?_with_conntrack} \
1841         %{?_with_contextswitch} \
1842         %{?_with_cpufreq} \
1843         %{?_with_cpusleep} \
1844         %{?_with_cpu} \
1845         %{?_with_csv} \
1846         %{?_with_curl_json} \
1847         %{?_with_curl_xml} \
1848         %{?_with_curl} \
1849         %{?_with_dbi} \
1850         %{?_with_df} \
1851         %{?_with_disk} \
1852         %{?_with_dns} \
1853         %{?_with_drbd} \
1854         %{?_with_dpdkevents} \
1855         %{?_with_dpdkstat} \
1856         %{?_with_email} \
1857         %{?_with_entropy} \
1858         %{?_with_ethstat} \
1859         %{?_with_exec} \
1860         %{?_with_fhcount} \
1861         %{?_with_filecount} \
1862         %{?_with_fscache} \
1863         %{?_with_gmond} \
1864         %{?_with_gps} \
1865         %{?_with_grpc} \
1866         %{?_with_hddtemp} \
1867         %{?_with_hugepages} \
1868         %{?_with_intel_rdt} \
1869         %{?_with_interface} \
1870         %{?_with_ipc} \
1871         %{?_with_ipmi} \
1872         %{?_with_iptables} \
1873         %{?_with_ipvs} \
1874         %{?_with_irq} \
1875         %{?_with_java} \
1876         %{?_with_load} \
1877         %{?_with_log_logstash} \
1878         %{?_with_logfile} \
1879         %{?_with_lpar} \
1880         %{?_with_lua} \
1881         %{?_with_lvm} \
1882         %{?_with_madwifi} \
1883         %{?_with_mbmon} \
1884         %{?_with_mcelog} \
1885         %{?_with_md} \
1886         %{?_with_memcachec} \
1887         %{?_with_memcached} \
1888         %{?_with_memory} \
1889         %{?_with_mic} \
1890         %{?_with_modbus} \
1891         %{?_with_mqtt} \
1892         %{?_with_multimeter} \
1893         %{?_with_mysql} \
1894         %{?_with_netapp} \
1895         %{?_with_netlink} \
1896         %{?_with_network} \
1897         %{?_with_nfs} \
1898         %{?_with_nginx} \
1899         %{?_with_notify_desktop} \
1900         %{?_with_notify_email} \
1901         %{?_with_notify_nagios} \
1902         %{?_with_ntpd} \
1903         %{?_with_numa} \
1904         %{?_with_nut} \
1905         %{?_with_olsrd} \
1906         %{?_with_onewire} \
1907         %{?_with_openldap} \
1908         %{?_with_openvpn} \
1909         %{?_with_oracle} \
1910         %{?_with_ovs_events} \
1911         %{?_with_perl} \
1912         %{?_with_pf} \
1913         %{?_with_pinba} \
1914         %{?_with_ping} \
1915         %{?_with_postgresql} \
1916         %{?_with_powerdns} \
1917         %{?_with_processes} \
1918         %{?_with_protocols} \
1919         %{?_with_python} \
1920         %{?_with_redis} \
1921         %{?_with_routeros} \
1922         %{?_with_rrdcached} \
1923         %{?_with_rrdtool} \
1924         %{?_with_sensors} \
1925         %{?_with_serial} \
1926         %{?_with_sigrok} \
1927         %{?_with_smart} \
1928         %{?_with_snmp} \
1929         %{?_with_statsd} \
1930         %{?_with_swap} \
1931         %{?_with_syslog} \
1932         %{?_with_table} \
1933         %{?_with_tail_csv} \
1934         %{?_with_tail} \
1935         %{?_with_tape} \
1936         %{?_with_tcpconns} \
1937         %{?_with_teamspeak2} \
1938         %{?_with_ted} \
1939         %{?_with_thermal} \
1940         %{?_with_threshold} \
1941         %{?_with_tokyotyrant} \
1942         %{?_with_turbostat} \
1943         %{?_with_unixsock} \
1944         %{?_with_uptime} \
1945         %{?_with_users} \
1946         %{?_with_uuid} \
1947         %{?_with_varnish} \
1948         %{?_with_virt} \
1949         %{?_with_vmem} \
1950         %{?_with_vserver} \
1951         %{?_with_wireless}\
1952         %{?_with_write_graphite} \
1953         %{?_with_write_http} \
1954         %{?_with_write_http} \
1955         %{?_with_write_kafka} \
1956         %{?_with_write_log} \
1957         %{?_with_write_mongodb} \
1958         %{?_with_write_prometheus} \
1959         %{?_with_write_redis} \
1960         %{?_with_write_riemann} \
1961         %{?_with_write_sensu} \
1962         %{?_with_write_tsdb} \
1963         %{?_with_xencpu} \
1964         %{?_with_xmms} \
1965         %{?_with_zfs_arc} \
1966         %{?_with_zone} \
1967         %{?_with_zookeeper}
1968
1969
1970 %{__make} %{?_smp_mflags}
1971
1972
1973 %install
1974 rm -rf %{buildroot}
1975 %{__make} install DESTDIR=%{buildroot}
1976 %if 0%{?fedora} || 0%{?rhel} >= 7
1977 %{__install} -Dp -m0644 contrib/systemd.collectd.service %{buildroot}%{_unitdir}/collectd.service
1978 %else
1979 %{__install} -Dp -m0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1980 %endif
1981 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1982 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
1983 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1984
1985 %{__mkdir} -p %{buildroot}%{_localstatedir}/www
1986 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
1987
1988 %{__mv} contrib/collection3 %{buildroot}%{_localstatedir}/www
1989 %{__mv} contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1990
1991 %{__mv} contrib/php-collection %{buildroot}%{_localstatedir}/www
1992 %{__mv} contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1993
1994 ### Clean up docs
1995 find contrib/ -type f -exec %{__chmod} a-x {} \;
1996 # *.la files shouldn't be distributed.
1997 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1998
1999 # Remove Perl hidden .packlist files.
2000 find %{buildroot} -type f -name .packlist -delete
2001 # Remove Perl temporary file perllocal.pod
2002 find %{buildroot} -type f -name perllocal.pod -delete
2003
2004 %if ! %{with_java}
2005 rm -f %{buildroot}%{_datadir}/collectd/java/collectd-api.jar
2006 rm -f %{buildroot}%{_datadir}/collectd/java/generic-jmx.jar
2007 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
2008 %endif
2009
2010 %if ! %{with_lua}
2011 rm -f %{buildroot}%{_mandir}/man5/collectd-lua.5*
2012 %endif
2013
2014 %if ! %{with_perl}
2015 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
2016 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
2017 rm -fr %{buildroot}/usr/lib/perl5/
2018 %endif
2019
2020 %if ! %{with_postgresql}
2021 rm -f %{buildroot}%{_datadir}/collectd/postgresql_default.conf
2022 %endif
2023
2024 %if ! %{with_python}
2025 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
2026 %endif
2027
2028 %if ! %{with_snmp}
2029 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
2030 %endif
2031
2032
2033 %clean
2034 rm -rf %{buildroot}
2035
2036 %post
2037 %if 0%{?fedora} || 0%{?rhel} >= 7
2038 %systemd_post collectd.service
2039 %else
2040 /sbin/chkconfig --add collectd || :
2041 %endif
2042
2043 %preun
2044 %if 0%{?fedora} || 0%{?rhel} >= 7
2045 %systemd_preun collectd.service
2046 %else
2047 # stop collectd only when uninstalling
2048 if [ $1 -eq 0 ]; then
2049         /sbin/service collectd stop >/dev/null 2>&1 || :
2050         /sbin/chkconfig --del collectd || :
2051 fi
2052 %endif
2053
2054 %postun
2055 %if 0%{?fedora} || 0%{?rhel} >= 7
2056 %systemd_postun_with_restart collectd.service
2057 %else
2058 # restart collectd only when upgrading
2059 if [ $1 -eq 1 ]; then
2060         /sbin/service collectd condrestart >/dev/null 2>&1 || :
2061 fi
2062 %endif
2063
2064 %post -n libcollectdclient -p /sbin/ldconfig
2065 %postun -n libcollectdclient -p /sbin/ldconfig
2066
2067
2068 %files
2069 %doc AUTHORS COPYING ChangeLog README
2070 %config(noreplace) %{_sysconfdir}/collectd.conf
2071 %if 0%{?fedora} || 0%{?rhel} >= 7
2072 %{_unitdir}/collectd.service
2073 %else
2074 %{_initrddir}/collectd
2075 %endif
2076 %{_sbindir}/collectd
2077 %{_sbindir}/collectdmon
2078 %{_datadir}/collectd/types.db
2079 %{_sharedstatedir}/collectd
2080 %{_mandir}/man1/collectd.1*
2081 %{_mandir}/man1/collectdmon.1*
2082 %{_mandir}/man5/collectd-email.5*
2083 %{_mandir}/man5/collectd-exec.5*
2084 %{_mandir}/man5/collectd-threshold.5*
2085 %{_mandir}/man5/collectd-unixsock.5*
2086 %{_mandir}/man5/collectd.conf.5*
2087 %{_mandir}/man5/types.db.5*
2088
2089 # all plugins bundled with the main collectd package
2090 %{_libdir}/%{name}/match_empty_counter.so
2091 %{_libdir}/%{name}/match_hashed.so
2092 %{_libdir}/%{name}/match_regex.so
2093 %{_libdir}/%{name}/match_timediff.so
2094 %{_libdir}/%{name}/match_value.so
2095 %{_libdir}/%{name}/target_notification.so
2096 %{_libdir}/%{name}/target_replace.so
2097 %{_libdir}/%{name}/target_scale.so
2098 %{_libdir}/%{name}/target_set.so
2099 %{_libdir}/%{name}/target_v5upgrade.so
2100
2101 %if %{with_aggregation}
2102 %{_libdir}/%{name}/aggregation.so
2103 %endif
2104 %if %{with_apcups}
2105 %{_libdir}/%{name}/apcups.so
2106 %endif
2107 %if %{with_battery}
2108 %{_libdir}/%{name}/battery.so
2109 %endif
2110 %if %{with_cgroups}
2111 %{_libdir}/%{name}/cgroups.so
2112 %endif
2113 %if %{with_conntrack}
2114 %{_libdir}/%{name}/conntrack.so
2115 %endif
2116 %if %{with_contextswitch}
2117 %{_libdir}/%{name}/contextswitch.so
2118 %endif
2119 %if %{with_cpu}
2120 %{_libdir}/%{name}/cpu.so
2121 %endif
2122 %if %{with_cpufreq}
2123 %{_libdir}/%{name}/cpufreq.so
2124 %endif
2125 %if %{with_cpusleep}
2126 %{_libdir}/%{name}/cpusleep.so
2127 %endif
2128 %if %{with_csv}
2129 %{_libdir}/%{name}/csv.so
2130 %endif
2131 %if %{with_df}
2132 %{_libdir}/%{name}/df.so
2133 %endif
2134 %if %{with_drbd}
2135 %{_libdir}/%{name}/drbd.so
2136 %endif
2137 %if %{with_dpdkevents}
2138 %{_libdir}/%{name}/dpdkevents.so
2139 %endif
2140 %if %{with_dpdkstat}
2141 %{_libdir}/%{name}/dpdkstat.so
2142 %endif
2143 %if %{with_ethstat}
2144 %{_libdir}/%{name}/ethstat.so
2145 %endif
2146 %if %{with_entropy}
2147 %{_libdir}/%{name}/entropy.so
2148 %endif
2149 %if %{with_exec}
2150 %{_libdir}/%{name}/exec.so
2151 %endif
2152 %if %{with_fhcount}
2153 %{_libdir}/%{name}/fhcount.so
2154 %endif
2155 %if %{with_filecount}
2156 %{_libdir}/%{name}/filecount.so
2157 %endif
2158 %if %{with_fscache}
2159 %{_libdir}/%{name}/fscache.so
2160 %endif
2161 %if %{with_hugepages}
2162 %{_libdir}/%{name}/hugepages.so
2163 %endif
2164 %if %{with_interface}
2165 %{_libdir}/%{name}/interface.so
2166 %endif
2167 %if %{with_ipc}
2168 %{_libdir}/%{name}/ipc.so
2169 %endif
2170 %if %{with_ipvs}
2171 %{_libdir}/%{name}/ipvs.so
2172 %endif
2173 %if %{with_irq}
2174 %{_libdir}/%{name}/irq.so
2175 %endif
2176 %if %{with_load}
2177 %{_libdir}/%{name}/load.so
2178 %endif
2179 %if %{with_logfile}
2180 %{_libdir}/%{name}/logfile.so
2181 %endif
2182 %if %{with_madwifi}
2183 %{_libdir}/%{name}/madwifi.so
2184 %endif
2185 %if %{with_mbmon}
2186 %{_libdir}/%{name}/mbmon.so
2187 %endif
2188 %if %{with_mcelog}
2189 %{_libdir}/%{name}/mcelog.so
2190 %endif
2191 %if %{with_md}
2192 %{_libdir}/%{name}/md.so
2193 %endif
2194 %if %{with_memcached}
2195 %{_libdir}/%{name}/memcached.so
2196 %endif
2197 %if %{with_memory}
2198 %{_libdir}/%{name}/memory.so
2199 %endif
2200 %if %{with_multimeter}
2201 %{_libdir}/%{name}/multimeter.so
2202 %endif
2203 %if %{with_network}
2204 %{_libdir}/%{name}/network.so
2205 %endif
2206 %if %{with_nfs}
2207 %{_libdir}/%{name}/nfs.so
2208 %endif
2209 %if %{with_notify_nagios}
2210 %{_libdir}/%{name}/notify_nagios.so
2211 %endif
2212 %if %{with_ntpd}
2213 %{_libdir}/%{name}/ntpd.so
2214 %endif
2215 %if %{with_numa}
2216 %{_libdir}/%{name}/numa.so
2217 %endif
2218 %if %{with_openvpn}
2219 %{_libdir}/%{name}/openvpn.so
2220 %endif
2221 %if %{with_olsrd}
2222 %{_libdir}/%{name}/olsrd.so
2223 %endif
2224 %if %{with_ovs_events}
2225 %{_libdir}/%{name}/ovs_events.so
2226 %endif
2227 %if %{with_powerdns}
2228 %{_libdir}/%{name}/powerdns.so
2229 %endif
2230 %if %{with_processes}
2231 %{_libdir}/%{name}/processes.so
2232 %endif
2233 %if %{with_protocols}
2234 %{_libdir}/%{name}/protocols.so
2235 %endif
2236 %if %{with_serial}
2237 %{_libdir}/%{name}/serial.so
2238 %endif
2239 %if %{with_statsd}
2240 %{_libdir}/%{name}/statsd.so
2241 %endif
2242 %if %{with_swap}
2243 %{_libdir}/%{name}/swap.so
2244 %endif
2245 %if %{with_syslog}
2246 %{_libdir}/%{name}/syslog.so
2247 %endif
2248 %if %{with_table}
2249 %{_libdir}/%{name}/table.so
2250 %endif
2251 %if %{with_tail}
2252 %{_libdir}/%{name}/tail.so
2253 %endif
2254 %if %{with_tail_csv}
2255 %{_libdir}/%{name}/tail_csv.so
2256 %endif
2257 %if %{with_tcpconns}
2258 %{_libdir}/%{name}/tcpconns.so
2259 %endif
2260 %if %{with_teamspeak2}
2261 %{_libdir}/%{name}/teamspeak2.so
2262 %endif
2263 %if %{with_ted}
2264 %{_libdir}/%{name}/ted.so
2265 %endif
2266 %if %{with_thermal}
2267 %{_libdir}/%{name}/thermal.so
2268 %endif
2269 %if %{with_threshold}
2270 %{_libdir}/%{name}/threshold.so
2271 %endif
2272 %if %{with_turbostat}
2273 %{_libdir}/%{name}/turbostat.so
2274 %endif
2275 %if %{with_unixsock}
2276 %{_libdir}/%{name}/unixsock.so
2277 %endif
2278 %if %{with_uptime}
2279 %{_libdir}/%{name}/uptime.so
2280 %endif
2281 %if %{with_users}
2282 %{_libdir}/%{name}/users.so
2283 %endif
2284 %if %{with_uuid}
2285 %{_libdir}/%{name}/uuid.so
2286 %endif
2287 %if %{with_vmem}
2288 %{_libdir}/%{name}/vmem.so
2289 %endif
2290 %if %{with_vserver}
2291 %{_libdir}/%{name}/vserver.so
2292 %endif
2293 %if %{with_wireless}
2294 %{_libdir}/%{name}/wireless.so
2295 %endif
2296 %if %{with_write_graphite}
2297 %{_libdir}/%{name}/write_graphite.so
2298 %endif
2299 %if %{with_write_log}
2300 %{_libdir}/%{name}/write_log.so
2301 %endif
2302 %if %{with_write_sensu}
2303 %{_libdir}/%{name}/write_sensu.so
2304 %endif
2305 %if %{with_write_tsdb}
2306 %{_libdir}/%{name}/write_tsdb.so
2307 %endif
2308 %if %{with_zfs_arc}
2309 %{_libdir}/%{name}/zfs_arc.so
2310 %endif
2311 %if %{with_zookeeper}
2312 %{_libdir}/%{name}/zookeeper.so
2313 %endif
2314
2315 %files -n libcollectdclient-devel
2316 %{_includedir}/collectd/client.h
2317 %{_includedir}/collectd/network.h
2318 %{_includedir}/collectd/network_buffer.h
2319 %{_includedir}/collectd/lcc_features.h
2320 %{_libdir}/pkgconfig/libcollectdclient.pc
2321 %{_libdir}/libcollectdclient.so
2322
2323 %files -n libcollectdclient
2324 %{_libdir}/libcollectdclient.so.*
2325
2326 %files -n collectd-utils
2327 %{_bindir}/collectd-nagios
2328 %{_bindir}/collectd-tg
2329 %{_bindir}/collectdctl
2330 %{_mandir}/man1/collectdctl.1*
2331 %{_mandir}/man1/collectd-nagios.1*
2332 %{_mandir}/man1/collectd-tg.1*
2333
2334 %if %{with_amqp}
2335 %files amqp
2336 %{_libdir}/%{name}/amqp.so
2337 %endif
2338
2339 %if %{with_apache}
2340 %files apache
2341 %{_libdir}/%{name}/apache.so
2342 %endif
2343
2344 %if %{with_aquaero}
2345 %files aquaero
2346 %{_libdir}/%{name}/aquaero.so
2347 %endif
2348
2349 %if %{with_ascent}
2350 %files ascent
2351 %{_libdir}/%{name}/ascent.so
2352 %endif
2353
2354 %if %{with_barometer}
2355 %files barometer
2356 %{_libdir}/%{name}/barometer.so
2357 %endif
2358
2359 %if %{with_bind}
2360 %files bind
2361 %{_libdir}/%{name}/bind.so
2362 %endif
2363
2364 %if %{with_ceph}
2365 %files ceph
2366 %{_libdir}/%{name}/ceph.so
2367 %endif
2368
2369 %if %{with_chrony}
2370 %files chrony
2371 %{_libdir}/%{name}/chrony.so
2372 %endif
2373
2374 %if %{with_curl}
2375 %files curl
2376 %{_libdir}/%{name}/curl.so
2377 %endif
2378
2379 %if %{with_curl_json}
2380 %files curl_json
2381 %{_libdir}/%{name}/curl_json.so
2382 %endif
2383
2384 %if %{with_curl_xml}
2385 %files curl_xml
2386 %{_libdir}/%{name}/curl_xml.so
2387 %endif
2388
2389 %if %{with_disk}
2390 %files disk
2391 %{_libdir}/%{name}/disk.so
2392 %endif
2393
2394 %if %{with_dns}
2395 %files dns
2396 %{_libdir}/%{name}/dns.so
2397 %endif
2398
2399 %if %{with_dbi}
2400 %files dbi
2401 %{_libdir}/%{name}/dbi.so
2402 %endif
2403
2404 %if %{with_email}
2405 %files email
2406 %{_libdir}/%{name}/email.so
2407 %endif
2408
2409 %if %{with_gmond}
2410 %files gmond
2411 %{_libdir}/%{name}/gmond.so
2412 %endif
2413
2414 %if %{with_gps}
2415 %files gps
2416 %{_libdir}/%{name}/gps.so
2417 %endif
2418
2419 %if %{with_grpc}
2420 %files grpc
2421 %{_libdir}/%{name}/grpc.so
2422 %endif
2423
2424 %if %{with_hddtemp}
2425 %files hddtemp
2426 %{_libdir}/%{name}/hddtemp.so
2427 %endif
2428
2429 %if %{with_intel_rdt}
2430 %files intel_rdt
2431 %{_libdir}/%{name}/intel_rdt.so
2432 %endif
2433
2434 %if %{with_ipmi}
2435 %files ipmi
2436 %{_libdir}/%{name}/ipmi.so
2437 %endif
2438
2439 %if %{with_iptables}
2440 %files iptables
2441 %{_libdir}/%{name}/iptables.so
2442 %endif
2443
2444 %if %{with_java}
2445 %files java
2446 %{_datadir}/collectd/java/collectd-api.jar
2447 %{_datadir}/collectd/java/generic-jmx.jar
2448 %{_libdir}/%{name}/java.so
2449 %{_mandir}/man5/collectd-java.5*
2450 %endif
2451
2452 %if %{with_virt}
2453 %files virt
2454 %{_libdir}/%{name}/virt.so
2455 %endif
2456
2457 %if %{with_log_logstash}
2458 %files log_logstash
2459 %{_libdir}/%{name}/log_logstash.so
2460 %endif
2461
2462 %if %{with_lua}
2463 %files lua
2464 %{_mandir}/man5/collectd-lua*
2465 %{_libdir}/%{name}/lua.so
2466 %endif
2467
2468 %if %{with_lvm}
2469 %files lvm
2470 %{_libdir}/%{name}/lvm.so
2471 %endif
2472
2473 %if %{with_memcachec}
2474 %files memcachec
2475 %{_libdir}/%{name}/memcachec.so
2476 %endif
2477
2478 %if %{with_mic}
2479 %files mic
2480 %{_libdir}/%{name}/mic.so
2481 %endif
2482
2483 %if %{with_modbus}
2484 %files modbus
2485 %{_libdir}/%{name}/modbus.so
2486 %endif
2487
2488 %if %{with_mqtt}
2489 %files mqtt
2490 %{_libdir}/%{name}/mqtt.so
2491 %endif
2492
2493 %if %{with_mysql}
2494 %files mysql
2495 %{_libdir}/%{name}/mysql.so
2496 %endif
2497
2498 %if %{with_netlink}
2499 %files netlink
2500 %{_libdir}/%{name}/netlink.so
2501 %endif
2502
2503 %if %{with_nginx}
2504 %files nginx
2505 %{_libdir}/%{name}/nginx.so
2506 %endif
2507
2508 %if %{with_notify_desktop}
2509 %files notify_desktop
2510 %{_libdir}/%{name}/notify_desktop.so
2511 %endif
2512
2513 %if %{with_notify_email}
2514 %files notify_email
2515 %{_libdir}/%{name}/notify_email.so
2516 %endif
2517
2518 %if %{with_nut}
2519 %files nut
2520 %{_libdir}/%{name}/nut.so
2521 %endif
2522
2523 %if %{with_openldap}
2524 %files openldap
2525 %{_libdir}/%{name}/openldap.so
2526 %endif
2527
2528 %if %{with_perl}
2529 %files perl
2530 %{perl_vendorlib}/Collectd.pm
2531 %{perl_vendorlib}/Collectd/
2532 %{_mandir}/man3/Collectd::Unixsock.3pm*
2533 %{_mandir}/man5/collectd-perl.5*
2534 %{_libdir}/%{name}/perl.so
2535 %endif
2536
2537 %if %{with_pinba}
2538 %files pinba
2539 %{_libdir}/%{name}/pinba.so
2540 %endif
2541
2542 %if %{with_ping}
2543 %files ping
2544 %{_libdir}/%{name}/ping.so
2545 %endif
2546
2547 %if %{with_postgresql}
2548 %files postgresql
2549 %{_datadir}/collectd/postgresql_default.conf
2550 %{_libdir}/%{name}/postgresql.so
2551 %endif
2552
2553 %if %{with_python}
2554 %files python
2555 %{_mandir}/man5/collectd-python*
2556 %{_libdir}/%{name}/python.so
2557 %endif
2558
2559 %if %{with_redis}
2560 %files redis
2561 %{_libdir}/%{name}/redis.so
2562 %endif
2563
2564 %if %{with_rrdcached}
2565 %files rrdcached
2566 %{_libdir}/%{name}/rrdcached.so
2567 %endif
2568
2569 %if %{with_rrdtool}
2570 %files rrdtool
2571 %{_libdir}/%{name}/rrdtool.so
2572 %endif
2573
2574 %if %{with_sensors}
2575 %files sensors
2576 %{_libdir}/%{name}/sensors.so
2577 %endif
2578
2579 %if %{with_sigrok}
2580 %files sigrok
2581 %{_libdir}/%{name}/sigrok.so
2582 %endif
2583
2584 %if %{with_smart}
2585 %files smart
2586 %{_libdir}/%{name}/smart.so
2587 %endif
2588
2589 %if %{with_snmp}
2590 %files snmp
2591 %{_mandir}/man5/collectd-snmp.5*
2592 %{_libdir}/%{name}/snmp.so
2593 %endif
2594
2595 %if %{with_varnish}
2596 %files varnish
2597 %{_libdir}/%{name}/varnish.so
2598 %endif
2599
2600 %if %{with_write_http}
2601 %files write_http
2602 %{_libdir}/%{name}/write_http.so
2603 %endif
2604
2605 %if %{with_write_kafka}
2606 %files write_kafka
2607 %{_libdir}/%{name}/write_kafka.so
2608 %endif
2609
2610 %if %{with_write_prometheus}
2611 %files write_prometheus
2612 %{_libdir}/%{name}/write_prometheus.so
2613 %endif
2614
2615 %if %{with_write_redis}
2616 %files write_redis
2617 %{_libdir}/%{name}/write_redis.so
2618 %endif
2619
2620 %if %{with_write_riemann}
2621 %files write_riemann
2622 %{_libdir}/%{name}/write_riemann.so
2623 %endif
2624
2625 %if %{with_xencpu}
2626 %files xencpu
2627 %{_libdir}/%{name}/xencpu.so
2628 %endif
2629
2630 %if %{with_xmms}
2631 %files xmms
2632 %{_libdir}/%{name}/xmms.so
2633 %endif
2634
2635 %files collection3
2636 %{_localstatedir}/www/collection3
2637 %{_sysconfdir}/httpd/conf.d/collection3.conf
2638
2639 %files php-collection
2640 %{_localstatedir}/www/php-collection
2641 %{_sysconfdir}/httpd/conf.d/php-collection.conf
2642
2643 %files contrib
2644 %doc contrib/
2645
2646 %changelog
2647 * Sun Mar 05 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-3
2648 - Add dpdkevents plugin, disabled by default
2649
2650 * Wed Feb 22 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-2
2651 - Enable XFS support in df plugin
2652 - Fix bogus date in changelog
2653
2654 * Sun Jan 01 2017 Marc Fournier <marc.fournier@camptocamp.com> - 5.7.1-1
2655 - New upstream version
2656
2657 * Sat Dec 31 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.0-4
2658 - Add new ovs_events plugin
2659
2660 * Sat Dec 31 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.0-3
2661 - Add new mcelog plugin
2662
2663 * Tue Nov 29 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.0-2
2664 - Disable redis plugin on RHEL 6, hiredis has been retired from EPEL6
2665
2666 * Mon Oct 10 2016 Marc Fournier <marc.fournier@camptocamp.com> - 5.7.0-1
2667 - New PRE-RELEASE version
2668 - New plugins enabled by default: hugepages, write_prometheus
2669 - New plugins disabled by default: dpdkstat, intel_rdt
2670
2671 * Mon Oct 10 2016 Victor Demonchy <v.demonchy@criteo.com> - 5.6.1-1
2672 - New upstream version
2673
2674 * Sun Aug 14 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.6.0-1
2675 - New upstream version
2676 - New plugins enabled by default: chrony, cpusleep, gps, lua, mqtt, notify_nagios
2677 - New plugins disabled by default: grpc, xencpu, zone
2678
2679 * Tue Jul 26 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.5.2-1
2680 - New upstream version
2681 - Contains fix for CVE-2016-6254
2682 - Change collectd.org url to https
2683
2684 * Sat Jun 04 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> 5.5.1-1
2685 - New upstream version
2686
2687 * Wed May 27 2015 Marc Fournier <marc.fournier@camptocamp.com> 5.5.0-1
2688 - New upstream version
2689 - New plugins enabled by default: ceph, drbd, log_logstash, write_tsdb, smart,
2690   openldap, redis, write_redis, zookeeper, write_log, write_sensu, ipc,
2691   turbostat, fhcount
2692 - New plugins disabled by default: barometer, write_kafka
2693 - Enable zfs_arc, now supported on Linux
2694 - Install disk plugin in a dedicated package, as it depends on libudev
2695 - use systemd on EL7, sysvinit on EL6 & EL5
2696 - Install collectdctl, collectd-tg and collectd-nagios in collectd-utils.rpm
2697 - Add build-dependency on libcap-devel
2698
2699 * Mon Aug 19 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.4.2-1
2700 - New upstream version
2701 - Build netlink plugin by default
2702 - Enable cgroups, lvm and statsd plugins
2703 - Enable (but don't build by default) mic, aquaero and sigrok plugins
2704 - Enable modbus, memcachec and xmms plugins on RHEL7
2705
2706 * Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
2707 - New upstream version
2708 - Added RHEL5 support:
2709   * conditionally disable plugins not building on this platform
2710   * add/specify some build dependencies and options
2711   * replace some RPM macros not available on this platform
2712 - Removed duplicate --enable-aggregation
2713 - Added some comments & usage examples
2714 - Replaced a couple of "Buildrequires" by "BuildRequires"
2715 - Enabled modbus plugin on RHEL6
2716 - Enabled netlink plugin on RHEL6 and RHEL7
2717 - Allow perl plugin to build on RHEL5
2718 - Add support for RHEL7
2719 - Misc perl-related improvements:
2720   * prevent rpmbuild from extracting dependencies from files in /usr/share/doc
2721   * don't package collection3 and php-collection twice
2722   * keep perl scripts from contrib/ in collectd-contrib
2723
2724 * Wed Apr 10 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.0-1
2725 - New upstream version
2726 - Enabled write_riemann plugin
2727 - Enabled tail_csv plugin
2728 - Installed collectd-tc manpage
2729
2730 * Fri Jan 11 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-3
2731 - remove dependency on libstatgrab, which isn't required on linux
2732
2733 * Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
2734 - collection3 and php-collection viewers are now in separate packages
2735
2736 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
2737 - New upstream version
2738 - Enabled aggregation plugin
2739 - Installed collectd-tc
2740 - Added network.h and network_buffer.h to libcollectdclient-devel
2741 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
2742 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
2743 - Added rrdcached and redis plugin descriptions
2744 - Mentioned new pf plugin in disabled plugins list
2745
2746 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
2747 - Follow Fedora Packaging Guidelines in java subpackage
2748
2749 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
2750 - Move perl stuff to perl_vendorlib
2751 - Replace hardcoded paths with macros
2752 - Remove unnecessary Requires
2753 - Removed .a and .la files
2754 - Some other small cleanups
2755
2756 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
2757 - New upstream version
2758 - Changes to support 5.1.0
2759 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
2760 - All plugins requiring external libraries are now shipped in separate
2761   packages.
2762 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
2763   the build process + ensure build deps are installed.
2764 - Dropped per-plugin configuration files, as they tend to diverge from upstream
2765   defaults.
2766 - Moved perl stuff to /usr/share/perl5/
2767 - Don't alter Interval and ReadThreads by default, let the user change this
2768   himself.
2769 - Initscript improvements:
2770   * checks configuration before (re)starting, based on debian's initscript
2771   * use /etc/sysconfig instdead of /etc/default
2772   * include optional $ARGS in arguments passed to collectd.
2773 - Drop collection.cgi from main package, as it's been obsoleted by collection3
2774 - Moved contrib/ to its own package, to avoid cluttering the main package with
2775   non-essential stuff.
2776 - Replaced BuildPrereq by BuildRequires
2777
2778 * Mon Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
2779 - New upstream version
2780 - Changes to support 5.0.1
2781
2782 * Mon Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
2783 - New upstream version
2784 - Changes to support 4.9.0
2785 - Added support for Java/GenericJMX plugin
2786
2787 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
2788 - New upstream version
2789 - Changes to support 4.3.1
2790 - Added More Prereqs to support more plugins
2791 - Added support for perl plugin
2792
2793 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
2794 - New upstream version
2795
2796 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
2797 - New major releas
2798 - Changes to support 4.0.5
2799
2800 * Thu Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
2801 - fixed spec file to build correctly on fedora core
2802 - added improved init.d script to work with chkconfig
2803 - added %%post and %%postun to call chkconfig automatically
2804
2805 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
2806 - New upstream version
2807
2808 * Sun Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
2809 - New upstream version
2810
2811 * Thu Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
2812 - New upstream version
2813
2814 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
2815 - New upstream version
2816
2817 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
2818 - New upstream version
2819
2820 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
2821 - New upstream version
2822
2823 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
2824 - New upstream version
2825 - Added the `apache' package.
2826
2827 * Tue Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
2828 - New upstream version
2829
2830 * Mon Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
2831 - New upstream version
2832
2833 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
2834 - New upstream version
2835
2836 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
2837 - Include `tape.so' so the build doesn't terminate because of missing files..
2838 - New upstream version
2839
2840 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
2841 - New upstream version
2842
2843 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
2844 - New upstream version
2845 - Removed the extra `hddtemp' package
2846
2847 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
2848 - New upstream version
2849
2850 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
2851 - New upstream version
2852
2853 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
2854 - New upstream version
2855 - Added config file, `collectd.conf(5)', `df.so'
2856 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
2857
2858 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
2859 - New upstream version
2860
2861 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
2862 - New upstream version
2863
2864 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
2865 - New upstream version
2866
2867 * Wed Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
2868 - New upstream version
2869 - Added statement to remove the `*.la' files. This fixes a problem when
2870   `Unpackaged files terminate build' is in effect.
2871 - Added `processes.so*' to the main package
2872
2873 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
2874 - New upstream version
2875 - Added package `collectd-hddtemp'
2876
2877 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
2878 - New upstream version
2879 - Split the package into `collectd' and `collectd-sensors'
2880
2881 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
2882 - New upstream version
2883
2884 * Sat Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
2885 - New upstream version
2886
2887 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
2888 - New upstream version
2889
2890 * Thu Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
2891 - New upstream version
2892
2893 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
2894 - New upstream version
2895
2896 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
2897 - New upstream version
2898
2899 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
2900 - New upstream version
2901
2902 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
2903 - New upstream version
2904
2905 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
2906 - Built on RedHat 7.3