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