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