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