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