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