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