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