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