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