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.
9 # q: And how can I do that ?
10 # a: By following these instructions, using mock:
12 # - install and configure mock (https://fedoraproject.org/wiki/Projects/Mock)
14 # - enable the EPEL repository (http://dl.fedoraproject.org/pub/epel/) in the
15 # configuration files for your target systems (/etc/mock/*.cfg).
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)
21 # - copy this file in your ~/rpmbuild/SPECS/ directory. Make sure the
22 # "Version:" tag matches the version from the tarball.
24 # - build the SRPM first:
25 # mock -r centos-6-x86_64 --buildsrpm --spec ~/rpmbuild/SPECS/collectd.spec \
26 # --sources ~/rpmbuild/SOURCES/
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
32 # - you can also optionally enable/disable plugins which are disabled/enabled
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
38 %global _hardened_build 1
39 %{?perl_default_filter}
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_interface 0%{!?_without_interface:1}
77 %define with_ipc 0%{!?_without_ipc:1}
78 %define with_ipmi 0%{!?_without_ipmi:1}
79 %define with_iptables 0%{!?_without_iptables:1}
80 %define with_ipvs 0%{!?_without_ipvs:1}
81 %define with_irq 0%{!?_without_irq:1}
82 %define with_java 0%{!?_without_java:1}
83 %define with_load 0%{!?_without_load:1}
84 %define with_log_logstash 0%{!?_without_log_logstash:1}
85 %define with_logfile 0%{!?_without_logfile:1}
86 %define with_lua 0%{!?_without_lua:1}
87 %define with_lvm 0%{!?_without_lvm:1}
88 %define with_madwifi 0%{!?_without_madwifi:1}
89 %define with_mbmon 0%{!?_without_mbmon:1}
90 %define with_md 0%{!?_without_md:1}
91 %define with_memcachec 0%{!?_without_memcachec:1}
92 %define with_memcached 0%{!?_without_memcached:1}
93 %define with_memory 0%{!?_without_memory:1}
94 %define with_modbus 0%{!?_without_modbus:1}
95 %define with_mqtt 0%{!?_without_mqtt:1}
96 %define with_multimeter 0%{!?_without_multimeter:1}
97 %define with_mysql 0%{!?_without_mysql:1}
98 %define with_netlink 0%{!?_without_netlink:1}
99 %define with_network 0%{!?_without_network:1}
100 %define with_nfs 0%{!?_without_nfs:1}
101 %define with_nginx 0%{!?_without_nginx:1}
102 %define with_notify_desktop 0%{!?_without_notify_desktop:1}
103 %define with_notify_email 0%{!?_without_notify_email:1}
104 %define with_notify_nagios 0%{!?_without_notify_nagios:1}
105 %define with_ntpd 0%{!?_without_ntpd:1}
106 %define with_numa 0%{!?_without_numa:1}
107 %define with_nut 0%{!?_without_nut:1}
108 %define with_olsrd 0%{!?_without_olsrd:1}
109 %define with_openldap 0%{!?_without_openldap:1}
110 %define with_openvpn 0%{!?_without_openvpn:1}
111 %define with_perl 0%{!?_without_perl:1}
112 %define with_pinba 0%{!?_without_pinba:1}
113 %define with_ping 0%{!?_without_ping:1}
114 %define with_postgresql 0%{!?_without_postgresql:1}
115 %define with_powerdns 0%{!?_without_powerdns:1}
116 %define with_processes 0%{!?_without_processes:1}
117 %define with_protocols 0%{!?_without_protocols:1}
118 %define with_python 0%{!?_without_python:1}
119 %define with_redis 0%{!?_without_redis:1}
120 %define with_rrdcached 0%{!?_without_rrdcached:1}
121 %define with_rrdtool 0%{!?_without_rrdtool:1}
122 %define with_sensors 0%{!?_without_sensors:1}
123 %define with_serial 0%{!?_without_serial:1}
124 %define with_smart 0%{!?_without_smart:1}
125 %define with_snmp 0%{!?_without_snmp:1}
126 %define with_statsd 0%{!?_without_statsd:1}
127 %define with_swap 0%{!?_without_swap:1}
128 %define with_syslog 0%{!?_without_syslog:1}
129 %define with_table 0%{!?_without_table:1}
130 %define with_tail 0%{!?_without_tail:1}
131 %define with_tail_csv 0%{!?_without_tail_csv:1}
132 %define with_tcpconns 0%{!?_without_tcpconns:1}
133 %define with_teamspeak2 0%{!?_without_teamspeak2:1}
134 %define with_ted 0%{!?_without_ted:1}
135 %define with_thermal 0%{!?_without_thermal:1}
136 %define with_threshold 0%{!?_without_threshold:1}
137 %define with_turbostat 0%{!?_without_turbostat:1}
138 %define with_unixsock 0%{!?_without_unixsock:1}
139 %define with_uptime 0%{!?_without_uptime:1}
140 %define with_users 0%{!?_without_users:1}
141 %define with_uuid 0%{!?_without_uuid:1}
142 %define with_varnish 0%{!?_without_varnish:1}
143 %define with_virt 0%{!?_without_virt:1}
144 %define with_vmem 0%{!?_without_vmem:1}
145 %define with_vserver 0%{!?_without_vserver:1}
146 %define with_wireless 0%{!?_without_wireless:1}
147 %define with_write_graphite 0%{!?_without_write_graphite:1}
148 %define with_write_http 0%{!?_without_write_http:1}
149 %define with_write_log 0%{!?_without_write_log:1}
150 %define with_write_redis 0%{!?_without_write_redis:1}
151 %define with_write_sensu 0%{!?_without_write_sensu:1}
152 %define with_write_tsdb 0%{!?_without_write_tsdb:1}
153 %define with_xmms 0%{!?_without_xmms:0%{?_has_xmms}}
154 %define with_zfs_arc 0%{!?_without_zfs_arc:1}
155 %define with_zookeeper 0%{!?_without_zookeeper:1}
157 # Plugins not built by default because of dependencies on libraries not
158 # available in RHEL or EPEL:
160 # plugin apple_sensors disabled, requires a Mac
161 %define with_apple_sensors 0%{!?_without_apple_sensors:0}
162 # plugin aquaero disabled, requires a libaquaero5
163 %define with_aquaero 0%{!?_without_aquaero:0}
164 # plugin barometer disabled, requires a libi2c
165 %define with_barometer 0%{!?_without_barometer:0}
166 # plugin grpc disabled, requires protobuf-compiler >= 3.0
167 %define with_grpc 0%{!?_without_grpc:0}
168 # plugin lpar disabled, requires AIX
169 %define with_lpar 0%{!?_without_lpar:0}
170 # plugin mic disabled, requires Mic
171 %define with_mic 0%{!?_without_mic:0}
172 # plugin netapp disabled, requires libnetapp
173 %define with_netapp 0%{!?_without_netapp:0}
174 # plugin onewire disabled, requires libowfs
175 %define with_onewire 0%{!?_without_onewire:0}
176 # plugin oracle disabled, requires Oracle
177 %define with_oracle 0%{!?_without_oracle:0}
178 # plugin oracle disabled, requires BSD
179 %define with_pf 0%{!?_without_pf:0}
180 # plugin routeros disabled, requires librouteros
181 %define with_routeros 0%{!?_without_routeros:0}
182 # plugin sigrok disabled, requires libsigrok
183 %define with_sigrok 0%{!?_without_sigrok:0}
184 # plugin tape disabled, requires libkstat
185 %define with_tape 0%{!?_without_tape:0}
186 # plugin tokyotyrant disabled, requires tcrdb.h
187 %define with_tokyotyrant 0%{!?_without_tokyotyrant:0}
188 # plugin write_kafka disabled, requires librdkafka
189 %define with_write_kafka 0%{!?_without_write_kafka:0}
190 # plugin write_mongodb disabled, requires libmongoc
191 %define with_write_mongodb 0%{!?_without_write_mongodb:0}
192 # plugin write_riemann disabled, requires a new enough riemann_c_client
193 %define with_write_riemann 0%{!?_without_write_riemann:0}
194 # plugin xencpu disabled, requires xen-devel from non-default repo
195 %define with_xencpu 0%{!?_without_xencpu:0}
196 # plugin zone disabled, requires Solaris
197 %define with_zone 0%{!?_without_zone:0}
199 # Plugins not buildable on RHEL < 6
200 %if 0%{?rhel} && 0%{?rhel} < 6
202 %define with_curl_json 0
203 %define with_log_logstash 0
205 %define with_ethstat 0
207 %define with_iptables 0
210 %define with_modbus 0
211 %define with_netlink 0
214 %define with_turbostat 0
215 %define with_write_redis 0
218 # Plugins not buildable on RHEL < 7
219 %if 0%{?rhel} && 0%{?rhel} < 7
220 %define with_cpusleep 0
224 %define with_rrdcached 0
225 %define with_write_redis 0
229 Summary: Statistics collection and monitoring daemon
233 URL: https://collectd.org
234 Source: https://collectd.org/files/%{name}-%{version}.tar.bz2
236 Group: System Environment/Daemons
237 BuildRoot: %{_tmppath}/%{name}-%{version}-root
238 BuildRequires: libgcrypt-devel, kernel-headers, libtool-ltdl-devel, libcap-devel, which
239 Vendor: collectd development team <collectd@verplant.org>
241 %if 0%{?fedora} || 0%{?rhel} >= 7
243 BuildRequires: systemd
245 Requires(post): chkconfig
246 Requires(preun): chkconfig, initscripts
247 Requires(postun): initscripts
251 collectd is a small daemon which collects system information periodically and
252 provides mechanisms to monitor and store the values in a variety of ways. It
253 is written in C for performance. Since the daemon doesn't need to start up
254 every time it wants to update the values it's very fast and easy on the
255 system. Also, the statistics are very fine grained since the files are updated
256 every 10 seconds by default.
260 Summary: AMQP plugin for collectd
261 Group: System Environment/Daemons
262 Requires: %{name}%{?_isa} = %{version}-%{release}
263 BuildRequires: librabbitmq-devel
265 The AMQP plugin transmits or receives values collected by collectd via the
266 Advanced Message Queuing Protocol (AMQP).
271 Summary: Apache plugin for collectd
272 Group: System Environment/Daemons
273 Requires: %{name}%{?_isa} = %{version}-%{release}
274 BuildRequires: curl-devel
276 This plugin collects data provided by Apache's `mod_status'.
281 Summary: aquaero plugin for collectd
282 Group: System Environment/Daemons
283 Requires: %{name}%{?_isa} = %{version}-%{release}
285 Various sensors in the Aquaero 5 watercooling board made by Aquacomputer.
290 Summary: Ascent plugin for collectd
291 Group: System Environment/Daemons
292 Requires: %{name}%{?_isa} = %{version}-%{release}
293 BuildRequires: libxml2-devel, curl-devel
295 The Ascent plugin reads and parses the statistics page of Ascent, a free and
296 open-source server software for the game World of Warcraft by Blizzard
300 %if %{with_barometer}
302 Summary: barometer plugin for collectd
303 Group: System Environment/Daemons
304 Requires: %{name}%{?_isa} = %{version}-%{release}
305 %description barometer
306 Collects pressure and temperature from digital barometers.
311 Summary: Bind plugin for collectd
312 Group: System Environment/Daemons
313 Requires: %{name}%{?_isa} = %{version}-%{release}
314 BuildRequires: libxml2-devel, curl-devel
316 The BIND plugin retrieves this information that's encoded in XML and provided
317 via HTTP and submits the values to collectd.
322 Summary: Ceph plugin for collectd
323 Group: System Environment/Daemons
324 Requires: %{name}%{?_isa} = %{version}-%{release}
325 BuildRequires: yajl-devel
327 Ceph plugin for collectd
332 Summary: Chrony plugin for collectd
333 Group: System Environment/Daemons
334 Requires: %{name}%{?_isa} = %{version}-%{release}
336 Chrony plugin for collectd
341 Summary: Curl plugin for collectd
342 Group: System Environment/Daemons
343 Requires: %{name}%{?_isa} = %{version}-%{release}
344 BuildRequires: curl-devel
346 The cURL plugin uses libcurl to read files and then parses them according to
350 %if %{with_curl_json}
352 Summary: Curl_json plugin for collectd
353 Group: System Environment/Daemons
354 Requires: %{name}%{?_isa} = %{version}-%{release}
355 BuildRequires: curl-devel, yajl-devel
356 %description curl_json
357 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
358 cURL library and parses it according to the user's configuration.
363 Summary: Curl_xml plugin for collectd
364 Group: System Environment/Daemons
365 Requires: %{name}%{?_isa} = %{version}-%{release}
366 BuildRequires: curl-devel, libxml2-devel
367 %description curl_xml
368 The cURL-XML plugin reads files using libcurl and parses it as Extensible
369 Markup Language (XML).
374 Summary: DBI plugin for collectd
375 Group: System Environment/Daemons
376 Requires: %{name}%{?_isa} = %{version}-%{release}
377 BuildRequires: libdbi-devel
379 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
380 statements on a database and read back the result.
385 Summary: disk plugin for collectd
386 Group: System Environment/Daemons
387 Requires: %{name}%{?_isa} = %{version}-%{release}
388 %{?_has_libudev:BuildRequires: libudev-devel}
390 The "disk" plugin collects information about the usage of physical disks and
391 logical disks (partitions).
396 Summary: DNS plugin for collectd
397 Group: System Environment/Daemons
398 Requires: %{name}%{?_isa} = %{version}-%{release}, libpcap >= 1.0
399 BuildRequires: libpcap-devel >= 1.0
401 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
402 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
403 packets and collects statistics of your DNS traffic.
408 Summary: Email plugin for collectd
409 Group: System Environment/Daemons
410 Requires: %{name}%{?_isa} = %{version}-%{release}, spamassassin
412 This plugin collects data provided by spamassassin.
417 Summary: Gmond plugin for collectd
418 Group: System Environment/Daemons
419 Requires: %{name}%{?_isa} = %{version}-%{release}
420 BuildRequires: ganglia-devel
422 The gmond plugin subscribes to a Multicast group to receive data from gmond,
423 the client daemon of the Ganglia project.
428 Summary: GPS plugin for collectd
429 Group: System Environment/Daemons
430 Requires: %{name}%{?_isa} = %{version}-%{release}
431 BuildRequires: gpsd-devel
433 This plugin monitor gps related data through gpsd.
438 Summary: GRPC plugin for collectd
439 Group: System Environment/Daemons
440 Requires: %{name}%{?_isa} = %{version}-%{release}
441 BuildRequires: protobuf-compiler
443 This plugin embeds a gRPC server into Collectd.
448 Summary: Hddtemp plugin for collectd
449 Group: System Environment/Daemons
450 Requires: %{name}%{?_isa} = %{version}-%{release}, hddtemp
452 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
453 provided via SMART and queried by the external hddtemp daemon.
458 Summary: IPMI plugin for collectd
459 Group: System Environment/Daemons
460 Requires: %{name}%{?_isa} = %{version}-%{release}
461 BuildRequires: OpenIPMI-devel
463 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
464 using the Intelligent Platform Management Interface (IPMI).
469 Summary: IPtables plugin for collectd
470 Group: System Environment/Daemons
471 Requires: %{name}%{?_isa} = %{version}-%{release}
472 BuildRequires: iptables-devel
473 %description iptables
474 The IPtables plugin can gather statistics from your ip_tables based packet
475 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
476 the byte- and packet-counters of selected rules and submit them to collectd.
481 Summary: Java plugin for collectd
482 Group: System Environment/Daemons
483 Requires: %{name}%{?_isa} = %{version}-%{release}
484 BuildRequires: java-devel, jpackage-utils
485 Requires: java, jpackage-utils
487 This plugin for collectd allows plugins to be written in Java and executed
491 %if %{with_log_logstash}
492 %package log_logstash
493 Summary: log_logstash plugin for collectd
494 Group: System Environment/Daemons
495 Requires: %{name}%{?_isa} = %{version}-%{release}
496 BuildRequires: yajl-devel
497 %description log_logstash
498 This plugin logs in logstash JSON format
503 Summary: Lua plugin for collectd
504 Group: System Environment/Daemons
505 Requires: %{name}%{?_isa} = %{version}-%{release}
506 BuildRequires: lua-devel
508 The Lua plugin embeds a Lua interpreter into collectd and exposes the
509 application programming interface (API) to Lua scripts.
514 Summary: LVM plugin for collectd
515 Group: System Environment/Daemons
516 Requires: %{name}%{?_isa} = %{version}-%{release}
517 BuildRequires: lvm2-devel
519 This plugin collects size of “Logical Volumes” (LV) and “Volume Groups” (VG)
520 of Linux' “Logical Volume Manager” (LVM).
523 %if %{with_memcachec}
525 Summary: Memcachec plugin for collectd
526 Group: System Environment/Daemons
527 Requires: %{name}%{?_isa} = %{version}-%{release}
528 BuildRequires: libmemcached-devel
529 %description memcachec
530 The Memcachec plugin uses libmemcached to read statistics from a Memcached
531 instance. Note that another plugin, named `memcached', exists and does a
532 similar job, without requiring the installation of libmemcached.
537 Summary: mic plugin for collectd
538 Group: System Environment/Daemons
539 Requires: %{name}%{?_isa} = %{version}-%{release}
541 The mic plugin collects CPU usage, memory usage, temperatures and power
542 consumption from Intel Many Integrated Core (MIC) CPUs.
547 Summary: modbus plugin for collectd
548 Group: System Environment/Daemons
549 Requires: %{name}%{?_isa} = %{version}-%{release}
550 BuildRequires: libmodbus-devel
552 The modbus plugin collects values from Modbus/TCP enabled devices
557 Summary: MySQL plugin for collectd
558 Group: System Environment/Daemons
559 Requires: %{name}%{?_isa} = %{version}-%{release}
560 BuildRequires: mysql-devel
562 MySQL querying plugin. This plugin provides data of issued commands, called
563 handlers and database traffic.
568 Summary: mqtt plugin for collectd
569 Group: System Environment/Daemons
570 Requires: %{name}%{?_isa} = %{version}-%{release}
571 BuildRequires: mosquitto-devel
573 The MQTT plugin publishes and subscribes to MQTT topics.
578 Summary: netlink plugin for collectd
579 Group: System Environment/Daemons
580 Requires: %{name}%{?_isa} = %{version}-%{release}
581 BuildRequires: libmnl-devel, iproute-devel
583 The netlink plugin collects detailed network interface and routing statistics.
588 Summary: Nginx plugin for collectd
589 Group: System Environment/Daemons
590 Requires: %{name}%{?_isa} = %{version}-%{release}
591 BuildRequires: curl-devel
593 This plugin gets data provided by nginx.
596 %if %{with_notify_desktop}
597 %package notify_desktop
598 Summary: Notify_desktop plugin for collectd
599 Group: System Environment/Daemons
600 Requires: %{name}%{?_isa} = %{version}-%{release}
601 BuildRequires: libnotify-devel, gtk2-devel
602 %description notify_desktop
603 The Notify Desktop plugin uses libnotify to display notifications to the user
604 via the desktop notification specification, i. e. on an X display.
607 %if %{with_notify_email}
608 %package notify_email
609 Summary: Notify_email plugin for collectd
610 Group: System Environment/Daemons
611 Requires: %{name}%{?_isa} = %{version}-%{release}
612 BuildRequires: libesmtp-devel
613 %description notify_email
614 The Notify Email plugin uses libESMTP to send notifications to a configured
620 Summary: Nut plugin for collectd
621 Group: System Environment/Daemons
622 Requires: %{name}%{?_isa} = %{version}-%{release}
623 BuildRequires: nut-devel
625 This plugin for collectd provides Network UPS Tools support.
630 Summary: Openldap plugin for collectd
631 Group: System Environment/Daemons
632 Requires: %{name}%{?_isa} = %{version}-%{release}
633 BuildRequires: openldap-devel
634 %description openldap
635 This plugin reads monitoring information from OpenLDAP's cn=Monitor subtree.
640 Summary: Perl plugin for collectd
641 Group: System Environment/Daemons
642 Requires: %{name}%{?_isa} = %{version}-%{release}
643 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
644 %if 0%{?rhel} && 0%{?rhel} < 6
647 BuildRequires: perl-ExtUtils-Embed
650 The Perl plugin embeds a Perl interpreter into collectd and exposes the
651 application programming interface (API) to Perl-scripts.
656 Summary: Pinba plugin for collectd
657 Group: System Environment/Daemons
658 Requires: %{name}%{?_isa} = %{version}-%{release}
659 BuildRequires: protobuf-c-devel
661 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
667 Summary: Ping plugin for collectd
668 Group: System Environment/Daemons
669 Requires: %{name}%{?_isa} = %{version}-%{release}
670 BuildRequires: liboping-devel
672 The Ping plugin measures network latency using ICMP “echo requests”, usually
676 %if %{with_postgresql}
678 Summary: PostgreSQL plugin for collectd
679 Group: System Environment/Daemons
680 Requires: %{name}%{?_isa} = %{version}-%{release}
681 BuildRequires: postgresql-devel
682 %description postgresql
683 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
689 Summary: Python plugin for collectd
690 Group: System Environment/Daemons
691 Requires: %{name}%{?_isa} = %{version}-%{release}
692 %if 0%{?rhel} && 0%{?rhel} < 6
693 BuildRequires: python26-devel
695 BuildRequires: python-devel
698 The Python plugin embeds a Python interpreter into collectd and exposes the
699 application programming interface (API) to Python-scripts.
704 Summary: Redis plugin for collectd
705 Group: System Environment/Daemons
706 Requires: %{name}%{?_isa} = %{version}-%{release}
707 BuildRequires: hiredis-devel
709 The Redis plugin connects to one or more instances of Redis, a key-value store,
710 and collects usage information using the hiredis library.
713 %if %{with_rrdcached}
715 Summary: RRDCached plugin for collectd
716 Group: System Environment/Daemons
717 Requires: %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
718 BuildRequires: rrdtool-devel
719 %description rrdcached
720 The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
721 submits updates for RRD files to that daemon.
726 Summary: RRDtool plugin for collectd
727 Group: System Environment/Daemons
728 Requires: %{name}%{?_isa} = %{version}-%{release}
729 BuildRequires: rrdtool-devel
731 The RRDtool plugin writes values to RRD-files using librrd.
736 Summary: Sensors plugin for collectd
737 Group: System Environment/Daemons
738 Requires: %{name}%{?_isa} = %{version}-%{release}
739 BuildRequires: lm_sensors-devel
741 This plugin for collectd provides querying of sensors supported by lm_sensors.
746 Summary: sigrok plugin for collectd
747 Group: System Environment/Daemons
748 Requires: %{name}%{?_isa} = %{version}-%{release}
750 Uses libsigrok as a backend, allowing any sigrok-supported device to have its
751 measurements fed to collectd. This includes multimeters, sound level meters,
752 thermometers, and much more.
757 Summary: SMART plugin for collectd
758 Group: System Environment/Daemons
759 Requires: %{name}%{?_isa} = %{version}-%{release}
760 BuildRequires: libatasmart-devel
762 Collect SMART statistics, notably load cycle count, temperature and bad
768 Summary: SNMP plugin for collectd
769 Group: System Environment/Daemons
770 Requires: %{name}%{?_isa} = %{version}-%{release}
771 BuildRequires: net-snmp-devel
773 This plugin for collectd allows querying of network equipment using SNMP.
778 Summary: Varnish plugin for collectd
779 Group: System Environment/Daemons
780 Requires: %{name}%{?_isa} = %{version}-%{release}
781 BuildRequires: varnish-libs-devel
783 The Varnish plugin collects information about Varnish, an HTTP accelerator.
788 Summary: Virt plugin for collectd
789 Group: System Environment/Daemons
790 Requires: %{name}%{?_isa} = %{version}-%{release}
791 BuildRequires: libvirt-devel
793 This plugin collects information from virtualized guests.
796 %if %{with_write_http}
798 Summary: Write-HTTP plugin for collectd
799 Group: System Environment/Daemons
800 Requires: %{name}%{?_isa} = %{version}-%{release}
801 BuildRequires: curl-devel
802 %description write_http
803 The Write-HTTP plugin sends the values collected by collectd to a web-server
804 using HTTP POST requests.
807 %if %{with_write_kafka}
809 Summary: Write-kafka plugin for collectd
810 Group: System Environment/Daemons
811 Requires: %{name}%{?_isa} = %{version}-%{release}
812 BuildRequires: librdkafka-devel
813 %description write_kafka
814 The write_kafka plugin sends values to kafka, a distributed messaging system.
817 %if %{with_write_redis}
819 Summary: Write-Redis plugin for collectd
820 Group: System Environment/Daemons
821 Requires: %{name}%{?_isa} = %{version}-%{release}
822 BuildRequires: hiredis-devel
823 %description write_redis
824 The Write Redis plugin stores values in Redis, a “data structures server”.
827 %if %{with_write_riemann}
828 %package write_riemann
829 Summary: riemann plugin for collectd
830 Group: System Environment/Daemons
831 Requires: %{name}%{?_isa} = %{version}-%{release}
832 BuildRequires: protobuf-c-devel
833 %description write_riemann
834 The riemann plugin submits values to Riemann, an event stream processor.
839 Summary: xencpu plugin for collectd
840 Group: System Environment/Daemons
841 Requires: %{name}%{?_isa} = %{version}-%{release}
842 BuildRequires: xen-devel
844 The xencpu plugin collects CPU statistics from Xen.
849 Summary: XMMS plugin for collectd
850 Group: System Environment/Daemons
851 Requires: %{name}%{?_isa} = %{version}-%{release}
852 BuildRequires: xmms-devel
854 The xmms plugin collects information from the XMMS music player.
858 Summary: Web-based viewer for collectd
859 Group: System Environment/Daemons
860 Requires: %{name}%{?_isa} = %{version}-%{release}
862 %description collection3
863 collection3 is a graphing front-end for the RRD files created by and filled
864 with collectd. It is written in Perl and should be run as an CGI-script.
865 Graphs are generated on-the-fly, so no cron job or similar is necessary.
867 %package php-collection
868 Summary: collect php webfrontent
869 Group: System Environment/Daemons
870 Requires: collectd = %{version}-%{release}
873 Requires: php-rrdtool
874 %description php-collection
875 PHP graphing frontend for RRD files created by and filled with collectd.
878 Summary: Contrib files for collectd
879 Group: System Environment/Daemons
880 Requires: %{name}%{?_isa} = %{version}-%{release}
882 All the files found under contrib/ in the source tree are bundled in this
885 %package -n libcollectdclient
886 Summary: Collectd client library
887 Group: System Environment/Daemons
888 %description -n libcollectdclient
889 Collectd client library
891 %package -n libcollectdclient-devel
892 Summary: Development files for libcollectdclient
893 Group: System Environment/Daemons
895 Requires: libcollectdclient%{?_isa} = %{version}-%{release}
896 %description -n libcollectdclient-devel
897 Development files for libcollectdclient
899 %package -n collectd-utils
900 Summary: Collectd utilities
901 Group: System Environment/Daemons
902 Requires: libcollectdclient%{?_isa} = %{version}-%{release}
903 Requires: collectd%{?_isa} = %{version}-%{release}
904 %description -n collectd-utils
911 %if %{with_aggregation}
912 %define _with_aggregation --enable-aggregation
914 %define _with_aggregation --disable-aggregation
918 %define _with_amqp --enable-amqp
920 %define _with_amqp --disable-amqp
924 %define _with_apache --enable-apache
926 %define _with_apache --disable-apache
930 %define _with_apcups --enable-apcups
932 %define _with_apcups --disable-apcups
935 %if %{with_apple_sensors}
936 %define _with_apple_sensors --enable-apple_sensors
938 %define _with_apple_sensors --disable-apple_sensors
942 %define _with_aquaero --enable-aquaero
944 %define _with_aquaero --disable-aquaero
948 %define _with_ascent --enable-ascent
950 %define _with_ascent --disable-ascent
953 %if %{with_barometer}
954 %define _with_barometer --enable-barometer
956 %define _with_barometer --disable-barometer
960 %define _with_battery --enable-battery
962 %define _with_battery --disable-battery
966 %define _with_bind --enable-bind
968 %define _with_bind --disable-bind
972 %define _with_cgroups --enable-cgroups
974 %define _with_cgroups --disable-cgroups
978 %define _with_chrony --enable-chrony
980 %define _with_chrony --disable-chrony
983 %if %{with_conntrack}
984 %define _with_conntrack --enable-conntrack
986 %define _with_conntrack --disable-conntrack
989 %if %{with_contextswitch}
990 %define _with_contextswitch --enable-contextswitch
992 %define _with_contextswitch --disable-contextswitch
996 %define _with_cpu --enable-cpu
998 %define _with_cpu --disable-cpu
1002 %define _with_cpufreq --enable-cpufreq
1004 %define _with_cpufreq --disable-cpufreq
1007 %if %{with_cpusleep}
1008 %define _with_cpusleep --enable-cpusleep
1010 %define _with_cpusleep --disable-cpusleep
1014 %define _with_csv --enable-csv
1016 %define _with_csv --disable-csv
1020 %define _with_ceph --enable-ceph
1022 %define _with_ceph --disable-ceph
1026 %define _with_curl --enable-curl
1028 %define _with_curl --disable-curl
1031 %if %{with_curl_json}
1032 %define _with_curl_json --enable-curl_json
1034 %define _with_curl_json --disable-curl_json
1037 %if %{with_curl_xml}
1038 %define _with_curl_xml --enable-curl_xml
1040 %define _with_curl_xml --disable-curl_xml
1044 %define _with_dbi --enable-dbi
1046 %define _with_dbi --disable-dbi
1050 %define _with_df --enable-df
1052 %define _with_df --disable-df
1056 %define _with_disk --enable-disk
1058 %define _with_disk --disable-disk
1062 %define _with_dns --enable-dns
1064 %define _with_dns --disable-dns
1068 %define _with_drbd --enable-drbd
1070 %define _with_drbd --disable-drbd
1074 %define _with_email --enable-email
1076 %define _with_email --disable-email
1080 %define _with_entropy --enable-entropy
1082 %define _with_entropy --disable-entropy
1086 %define _with_ethstat --enable-ethstat
1088 %define _with_ethstat --disable-ethstat
1092 %define _with_exec --enable-exec
1094 %define _with_exec --disable-exec
1098 %define _with_fhcount --enable-fhcount
1100 %define _with_fhcount --disable-fhcount
1103 %if %{with_filecount}
1104 %define _with_filecount --enable-filecount
1106 %define _with_filecount --disable-filecount
1110 %define _with_fscache --enable-fscache
1112 %define _with_fscache --disable-fscache
1116 %define _with_gmond --enable-gmond
1118 %define _with_gmond --disable-gmond
1122 %define _with_gps --enable-gps
1124 %define _with_gps --disable-gps
1128 %define _with_grpc --enable-grpc
1130 %define _with_grpc --disable-grpc
1134 %define _with_hddtemp --enable-hddtemp
1136 %define _with_hddtemp --disable-hddtemp
1139 %if %{with_interface}
1140 %define _with_interface --enable-interface
1142 %define _with_interface --disable-interface
1146 %define _with_ipc --enable-ipc
1148 %define _with_ipc --disable-ipc
1152 %define _with_ipmi --enable-ipmi
1154 %define _with_ipmi --disable-ipmi
1157 %if %{with_iptables}
1158 %define _with_iptables --enable-iptables
1160 %define _with_iptables --disable-iptables
1164 %define _with_ipvs --enable-ipvs
1166 %define _with_ipvs --disable-ipvs
1170 %define _with_irq --enable-irq
1172 %define _with_irq --disable-irq
1176 %define _with_java --enable-java --with-java=%{java_home}/
1178 %define _with_java --disable-java
1182 %define _with_virt --enable-virt
1184 %define _with_virt --disable-virt
1188 %define _with_load --enable-load
1190 %define _with_load --disable-load
1194 %define _with_logfile --enable-logfile
1196 %define _with_logfile --disable-logfile
1199 %if %{with_log_logstash}
1200 %define _with_log_logstash --enable-log_logstash
1202 %define _with_log_logstash --disable-log_logstash
1206 %define _with_lpar --enable-lpar
1208 %define _with_lpar --disable-lpar
1212 %define _with_lua --enable-lua
1214 %define _with_lua --disable-lua
1218 %define _with_lvm --enable-lvm
1220 %define _with_lvm --disable-lvm
1224 %define _with_madwifi --enable-madwifi
1226 %define _with_madwifi --disable-madwifi
1230 %define _with_mbmon --enable-mbmon
1232 %define _with_mbmon --disable-mbmon
1236 %define _with_md --enable-md
1238 %define _with_md --disable-md
1241 %if %{with_memcachec}
1242 %define _with_memcachec --enable-memcachec
1244 %define _with_memcachec --disable-memcachec
1247 %if %{with_memcached}
1248 %define _with_memcached --enable-memcached
1250 %define _with_memcached --disable-memcached
1254 %define _with_memory --enable-memory
1256 %define _with_memory --disable-memory
1260 %define _with_mic --enable-mic
1262 %define _with_mic --disable-mic
1266 %define _with_modbus --enable-modbus
1268 %define _with_modbus --disable-modbus
1271 %if %{with_multimeter}
1272 %define _with_multimeter --enable-multimeter
1274 %define _with_multimeter --disable-multimeter
1278 %define _with_mqtt --enable-mqtt
1280 %define _with_mqtt --disable-mqtt
1284 %define _with_mysql --enable-mysql
1286 %define _with_mysql --disable-mysql
1290 %define _with_netapp --enable-netapp
1292 %define _with_netapp --disable-netapp
1296 %define _with_netlink --enable-netlink
1298 %define _with_netlink --disable-netlink
1302 %define _with_network --enable-network
1304 %define _with_network --disable-network
1308 %define _with_nfs --enable-nfs
1310 %define _with_nfs --disable-nfs
1314 %define _with_nginx --enable-nginx
1316 %define _with_nginx --disable-nginx
1319 %if %{with_notify_desktop}
1320 %define _with_notify_desktop --enable-notify_desktop
1322 %define _with_notify_desktop --disable-notify_desktop
1325 %if %{with_notify_email}
1326 %define _with_notify_email --enable-notify_email
1328 %define _with_notify_email --disable-notify_email
1331 %if %{with_notify_nagios}
1332 %define _with_notify_nagios --enable-notify_nagios
1334 %define _with_notify_nagios --disable-notify_nagios
1338 %define _with_ntpd --enable-ntpd
1340 %define _with_ntpd --disable-ntpd
1344 %define _with_numa --enable-numa
1346 %define _with_numa --disable-numa
1350 %define _with_nut --enable-nut
1352 %define _with_nut --disable-nut
1356 %define _with_olsrd --enable-olsrd
1358 %define _with_olsrd --disable-olsrd
1362 %define _with_onewire --enable-onewire
1364 %define _with_onewire --disable-onewire
1367 %if %{with_openldap}
1368 %define _with_openldap --enable-openldap
1370 %define _with_openldap --disable-openldap
1374 %define _with_openvpn --enable-openvpn
1376 %define _with_openvpn --disable-openvpn
1380 %define _with_oracle --enable-oracle
1382 %define _with_oracle --disable-oracle
1386 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
1388 %define _with_perl --disable-perl
1392 %define _with_pf --enable-pf
1394 %define _with_pf --disable-pf
1398 %define _with_pinba --enable-pinba
1400 %define _with_pinba --disable-pinba
1404 %define _with_ping --enable-ping
1406 %define _with_ping --disable-ping
1409 %if %{with_postgresql}
1410 %define _with_postgresql --enable-postgresql
1412 %define _with_postgresql --disable-postgresql
1415 %if %{with_powerdns}
1416 %define _with_powerdns --enable-powerdns
1418 %define _with_powerdns --disable-powerdns
1421 %if %{with_processes}
1422 %define _with_processes --enable-processes
1424 %define _with_processes --disable-processes
1427 %if %{with_protocols}
1428 %define _with_protocols --enable-protocols
1430 %define _with_protocols --disable-protocols
1434 %if 0%{?rhel} && 0%{?rhel} < 6
1435 %define _with_python --enable-python --with-python=%{_bindir}/python2.6
1436 %define _python_config PYTHON_CONFIG="%{_bindir}/python2.6-config"
1438 %define _with_python --enable-python
1441 %define _with_python --disable-python
1445 %define _with_redis --enable-redis
1447 %define _with_redis --disable-redis
1450 %if %{with_routeros}
1451 %define _with_routeros --enable-routeros
1453 %define _with_routeros --disable-routeros
1456 %if %{with_rrdcached}
1457 %define _with_rrdcached --enable-rrdcached
1459 %define _with_rrdcached --disable-rrdcached
1463 %define _with_rrdtool --enable-rrdtool
1465 %define _with_rrdtool --disable-rrdtool
1469 %define _with_sensors --enable-sensors
1471 %define _with_sensors --disable-sensors
1475 %define _with_serial --enable-serial
1477 %define _with_serial --disable-serial
1481 %define _with_sigrok --enable-sigrok
1483 %define _with_sigrok --disable-sigrok
1487 %define _with_smart --enable-smart
1489 %define _with_smart --disable-smart
1493 %define _with_snmp --enable-snmp
1495 %define _with_snmp --disable-snmp
1499 %define _with_statsd --enable-statsd
1501 %define _with_statsd --disable-statsd
1505 %define _with_swap --enable-swap
1507 %define _with_swap --disable-swap
1511 %define _with_syslog --enable-syslog
1513 %define _with_syslog --disable-syslog
1517 %define _with_table --enable-table
1519 %define _with_table --disable-table
1523 %define _with_tail --enable-tail
1525 %define _with_tail --disable-tail
1528 %if %{with_tail_csv}
1529 %define _with_tail_csv --enable-tail_csv
1531 %define _with_tail_csv --disable-tail_csv
1535 %define _with_tape --enable-tape
1537 %define _with_tape --disable-tape
1540 %if %{with_tcpconns}
1541 %define _with_tcpconns --enable-tcpconns
1543 %define _with_tcpconns --disable-tcpconns
1546 %if %{with_teamspeak2}
1547 %define _with_teamspeak2 --enable-teamspeak2
1549 %define _with_teamspeak2 --disable-teamspeak2
1553 %define _with_ted --enable-ted
1555 %define _with_ted --disable-ted
1559 %define _with_thermal --enable-thermal
1561 %define _with_thermal --disable-thermal
1564 %if %{with_threshold}
1565 %define _with_threshold --enable-threshold
1567 %define _with_threshold --disable-threshold
1570 %if %{with_tokyotyrant}
1571 %define _with_tokyotyrant --enable-tokyotyrant
1573 %define _with_tokyotyrant --disable-tokyotyrant
1576 %if %{with_turbostat}
1577 %define _with_turbostat --enable-turbostat
1579 %define _with_turbostat --disable-turbostat
1582 %if %{with_unixsock}
1583 %define _with_unixsock --enable-unixsock
1585 %define _with_unixsock --disable-unixsock
1589 %define _with_uptime --enable-uptime
1591 %define _with_uptime --disable-uptime
1595 %define _with_users --enable-users
1597 %define _with_users --disable-users
1601 %define _with_uuid --enable-uuid
1603 %define _with_uuid --disable-uuid
1607 %define _with_varnish --enable-varnish
1609 %define _with_varnish --disable-varnish
1613 %define _with_vmem --enable-vmem
1615 %define _with_vmem --disable-vmem
1619 %define _with_vserver --enable-vserver
1621 %define _with_vserver --disable-vserver
1624 %if %{with_wireless}
1625 %define _with_wireless --enable-wireless
1627 %define _with_wireless --disable-wireless
1630 %if %{with_write_graphite}
1631 %define _with_write_graphite --enable-write_graphite
1633 %define _with_write_graphite --disable-write_graphite
1636 %if %{with_write_http}
1637 %define _with_write_http --enable-write_http
1639 %define _with_write_http --disable-write_http
1642 %if %{with_write_kafka}
1643 %define _with_write_kafka --enable-write_kafka
1645 %define _with_write_kafka --disable-write_kafka
1648 %if %{with_write_log}
1649 %define _with_write_log --enable-write_log
1651 %define _with_write_log --disable-write_log
1654 %if %{with_write_mongodb}
1655 %define _with_write_mongodb --enable-write_mongodb
1657 %define _with_write_mongodb --disable-write_mongodb
1660 %if %{with_write_redis}
1661 %define _with_write_redis --enable-write_redis
1663 %define _with_write_redis --disable-write_redis
1666 %if %{with_write_riemann}
1667 %define _with_write_riemann --enable-write_riemann
1669 %define _with_write_riemann --disable-write_riemann
1672 %if %{with_write_sensu}
1673 %define _with_write_sensu --enable-write_sensu
1675 %define _with_write_sensu --disable-write_sensu
1678 %if %{with_write_tsdb}
1679 %define _with_write_tsdb --enable-write_tsdb
1681 %define _with_write_tsdb --disable-write_tsdb
1685 %define _with_xencpu --enable-xencpu
1687 %define _with_xencpu --disable-xencpu
1691 %define _with_xmms --enable-xmms
1693 %define _with_xmms --disable-xmms
1697 %define _with_zfs_arc --enable-zfs_arc
1699 %define _with_zfs_arc --disable-zfs_arc
1703 %define _with_zone --enable-zone
1705 %define _with_zone --disable-zone
1708 %if %{with_zookeeper}
1709 %define _with_zookeeper --enable-zookeeper
1711 %define _with_zookeeper --disable-zookeeper
1714 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1715 %{?_python_config} \
1717 --without-included-ltdl \
1718 --enable-all-plugins=yes \
1719 --enable-match_empty_counter \
1720 --enable-match_hashed \
1721 --enable-match_regex \
1722 --enable-match_timediff \
1723 --enable-match_value \
1724 --enable-target_notification \
1725 --enable-target_replace \
1726 --enable-target_scale \
1727 --enable-target_set \
1728 --enable-target_v5upgrade \
1729 %{?_with_aggregation} \
1733 %{?_with_apple_sensors} \
1736 %{?_with_barometer} \
1742 %{?_with_conntrack} \
1743 %{?_with_contextswitch} \
1745 %{?_with_cpusleep} \
1748 %{?_with_curl_json} \
1749 %{?_with_curl_xml} \
1761 %{?_with_filecount} \
1767 %{?_with_interface} \
1770 %{?_with_iptables} \
1775 %{?_with_log_logstash} \
1783 %{?_with_memcachec} \
1784 %{?_with_memcached} \
1789 %{?_with_multimeter} \
1796 %{?_with_notify_desktop} \
1797 %{?_with_notify_email} \
1798 %{?_with_notify_nagios} \
1804 %{?_with_openldap} \
1811 %{?_with_postgresql} \
1812 %{?_with_powerdns} \
1813 %{?_with_processes} \
1814 %{?_with_protocols} \
1817 %{?_with_routeros} \
1818 %{?_with_rrdcached} \
1829 %{?_with_tail_csv} \
1832 %{?_with_tcpconns} \
1833 %{?_with_teamspeak2} \
1836 %{?_with_threshold} \
1837 %{?_with_tokyotyrant} \
1838 %{?_with_turbostat} \
1839 %{?_with_unixsock} \
1848 %{?_with_write_graphite} \
1849 %{?_with_write_http} \
1850 %{?_with_write_http} \
1851 %{?_with_write_kafka} \
1852 %{?_with_write_log} \
1853 %{?_with_write_mongodb} \
1854 %{?_with_write_redis} \
1855 %{?_with_write_riemann} \
1856 %{?_with_write_sensu} \
1857 %{?_with_write_tsdb} \
1865 %{__make} %{?_smp_mflags}
1870 %{__make} install DESTDIR=%{buildroot}
1871 %if 0%{?fedora} || 0%{?rhel} >= 7
1872 %{__install} -Dp -m0644 contrib/systemd.collectd.service %{buildroot}%{_unitdir}/collectd.service
1874 %{__install} -Dp -m0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1876 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1877 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
1878 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1880 %{__mkdir} -p %{buildroot}%{_localstatedir}/www
1881 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
1883 %{__mv} contrib/collection3 %{buildroot}%{_localstatedir}/www
1884 %{__mv} contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1886 %{__mv} contrib/php-collection %{buildroot}%{_localstatedir}/www
1887 %{__mv} contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1890 find contrib/ -type f -exec %{__chmod} a-x {} \;
1891 # *.la files shouldn't be distributed.
1892 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1894 # Remove Perl hidden .packlist files.
1895 find %{buildroot} -type f -name .packlist -delete
1896 # Remove Perl temporary file perllocal.pod
1897 find %{buildroot} -type f -name perllocal.pod -delete
1900 rm -f %{buildroot}%{_datadir}/collectd/java/collectd-api.jar
1901 rm -f %{buildroot}%{_datadir}/collectd/java/generic-jmx.jar
1902 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
1906 rm -f %{buildroot}%{_mandir}/man5/collectd-lua.5*
1910 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
1911 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
1912 rm -fr %{buildroot}/usr/lib/perl5/
1915 %if ! %{with_postgresql}
1916 rm -f %{buildroot}%{_datadir}/collectd/postgresql_default.conf
1919 %if ! %{with_python}
1920 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
1924 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
1932 %if 0%{?fedora} || 0%{?rhel} >= 7
1933 %systemd_post collectd.service
1935 /sbin/chkconfig --add collectd || :
1939 %if 0%{?fedora} || 0%{?rhel} >= 7
1940 %systemd_preun collectd.service
1942 # stop collectd only when uninstalling
1943 if [ $1 -eq 0 ]; then
1944 /sbin/service collectd stop >/dev/null 2>&1 || :
1945 /sbin/chkconfig --del collectd || :
1950 %if 0%{?fedora} || 0%{?rhel} >= 7
1951 %systemd_postun_with_restart collectd.service
1953 # restart collectd only when upgrading
1954 if [ $1 -eq 1 ]; then
1955 /sbin/service collectd condrestart >/dev/null 2>&1 || :
1959 %post -n libcollectdclient -p /sbin/ldconfig
1960 %postun -n libcollectdclient -p /sbin/ldconfig
1964 %doc AUTHORS COPYING ChangeLog README
1965 %config(noreplace) %{_sysconfdir}/collectd.conf
1966 %if 0%{?fedora} || 0%{?rhel} >= 7
1967 %{_unitdir}/collectd.service
1969 %{_initrddir}/collectd
1971 %{_sbindir}/collectd
1972 %{_sbindir}/collectdmon
1973 %{_datadir}/collectd/types.db
1974 %{_sharedstatedir}/collectd
1975 %{_mandir}/man1/collectd.1*
1976 %{_mandir}/man1/collectdmon.1*
1977 %{_mandir}/man5/collectd-email.5*
1978 %{_mandir}/man5/collectd-exec.5*
1979 %{_mandir}/man5/collectd-threshold.5*
1980 %{_mandir}/man5/collectd-unixsock.5*
1981 %{_mandir}/man5/collectd.conf.5*
1982 %{_mandir}/man5/types.db.5*
1984 # all plugins bundled with the main collectd package
1985 %{_libdir}/%{name}/match_empty_counter.so
1986 %{_libdir}/%{name}/match_hashed.so
1987 %{_libdir}/%{name}/match_regex.so
1988 %{_libdir}/%{name}/match_timediff.so
1989 %{_libdir}/%{name}/match_value.so
1990 %{_libdir}/%{name}/target_notification.so
1991 %{_libdir}/%{name}/target_replace.so
1992 %{_libdir}/%{name}/target_scale.so
1993 %{_libdir}/%{name}/target_set.so
1994 %{_libdir}/%{name}/target_v5upgrade.so
1996 %if %{with_aggregation}
1997 %{_libdir}/%{name}/aggregation.so
2000 %{_libdir}/%{name}/apcups.so
2003 %{_libdir}/%{name}/battery.so
2006 %{_libdir}/%{name}/cgroups.so
2008 %if %{with_conntrack}
2009 %{_libdir}/%{name}/conntrack.so
2011 %if %{with_contextswitch}
2012 %{_libdir}/%{name}/contextswitch.so
2015 %{_libdir}/%{name}/cpu.so
2018 %{_libdir}/%{name}/cpufreq.so
2020 %if %{with_cpusleep}
2021 %{_libdir}/%{name}/cpusleep.so
2024 %{_libdir}/%{name}/csv.so
2027 %{_libdir}/%{name}/df.so
2030 %{_libdir}/%{name}/drbd.so
2033 %{_libdir}/%{name}/ethstat.so
2036 %{_libdir}/%{name}/entropy.so
2039 %{_libdir}/%{name}/exec.so
2042 %{_libdir}/%{name}/fhcount.so
2044 %if %{with_filecount}
2045 %{_libdir}/%{name}/filecount.so
2048 %{_libdir}/%{name}/fscache.so
2050 %if %{with_interface}
2051 %{_libdir}/%{name}/interface.so
2054 %{_libdir}/%{name}/ipc.so
2057 %{_libdir}/%{name}/ipvs.so
2060 %{_libdir}/%{name}/irq.so
2063 %{_libdir}/%{name}/load.so
2066 %{_libdir}/%{name}/logfile.so
2069 %{_libdir}/%{name}/madwifi.so
2072 %{_libdir}/%{name}/mbmon.so
2075 %{_libdir}/%{name}/md.so
2077 %if %{with_memcached}
2078 %{_libdir}/%{name}/memcached.so
2081 %{_libdir}/%{name}/memory.so
2083 %if %{with_multimeter}
2084 %{_libdir}/%{name}/multimeter.so
2087 %{_libdir}/%{name}/network.so
2090 %{_libdir}/%{name}/nfs.so
2092 %if %{with_notify_nagios}
2093 %{_libdir}/%{name}/notify_nagios.so
2096 %{_libdir}/%{name}/ntpd.so
2099 %{_libdir}/%{name}/numa.so
2102 %{_libdir}/%{name}/openvpn.so
2105 %{_libdir}/%{name}/olsrd.so
2107 %if %{with_powerdns}
2108 %{_libdir}/%{name}/powerdns.so
2110 %if %{with_processes}
2111 %{_libdir}/%{name}/processes.so
2113 %if %{with_protocols}
2114 %{_libdir}/%{name}/protocols.so
2117 %{_libdir}/%{name}/serial.so
2120 %{_libdir}/%{name}/statsd.so
2123 %{_libdir}/%{name}/swap.so
2126 %{_libdir}/%{name}/syslog.so
2129 %{_libdir}/%{name}/table.so
2132 %{_libdir}/%{name}/tail.so
2134 %if %{with_tail_csv}
2135 %{_libdir}/%{name}/tail_csv.so
2137 %if %{with_tcpconns}
2138 %{_libdir}/%{name}/tcpconns.so
2140 %if %{with_teamspeak2}
2141 %{_libdir}/%{name}/teamspeak2.so
2144 %{_libdir}/%{name}/ted.so
2147 %{_libdir}/%{name}/thermal.so
2149 %if %{with_threshold}
2150 %{_libdir}/%{name}/threshold.so
2152 %if %{with_turbostat}
2153 %{_libdir}/%{name}/turbostat.so
2155 %if %{with_unixsock}
2156 %{_libdir}/%{name}/unixsock.so
2159 %{_libdir}/%{name}/uptime.so
2162 %{_libdir}/%{name}/users.so
2165 %{_libdir}/%{name}/uuid.so
2168 %{_libdir}/%{name}/vmem.so
2171 %{_libdir}/%{name}/vserver.so
2173 %if %{with_wireless}
2174 %{_libdir}/%{name}/wireless.so
2176 %if %{with_write_graphite}
2177 %{_libdir}/%{name}/write_graphite.so
2179 %if %{with_write_log}
2180 %{_libdir}/%{name}/write_log.so
2182 %if %{with_write_sensu}
2183 %{_libdir}/%{name}/write_sensu.so
2185 %if %{with_write_tsdb}
2186 %{_libdir}/%{name}/write_tsdb.so
2189 %{_libdir}/%{name}/zfs_arc.so
2191 %if %{with_zookeeper}
2192 %{_libdir}/%{name}/zookeeper.so
2195 %files -n libcollectdclient-devel
2196 %{_includedir}/collectd/client.h
2197 %{_includedir}/collectd/network.h
2198 %{_includedir}/collectd/network_buffer.h
2199 %{_includedir}/collectd/lcc_features.h
2200 %{_libdir}/pkgconfig/libcollectdclient.pc
2201 %{_libdir}/libcollectdclient.so
2203 %files -n libcollectdclient
2204 %{_libdir}/libcollectdclient.so.*
2206 %files -n collectd-utils
2207 %{_bindir}/collectd-nagios
2208 %{_bindir}/collectd-tg
2209 %{_bindir}/collectdctl
2210 %{_mandir}/man1/collectdctl.1*
2211 %{_mandir}/man1/collectd-nagios.1*
2212 %{_mandir}/man1/collectd-tg.1*
2216 %{_libdir}/%{name}/amqp.so
2221 %{_libdir}/%{name}/apache.so
2226 %{_libdir}/%{name}/aquaero.so
2231 %{_libdir}/%{name}/ascent.so
2234 %if %{with_barometer}
2236 %{_libdir}/%{name}/barometer.so
2241 %{_libdir}/%{name}/bind.so
2246 %{_libdir}/%{name}/ceph.so
2251 %{_libdir}/%{name}/chrony.so
2256 %{_libdir}/%{name}/curl.so
2259 %if %{with_curl_json}
2261 %{_libdir}/%{name}/curl_json.so
2264 %if %{with_curl_xml}
2266 %{_libdir}/%{name}/curl_xml.so
2271 %{_libdir}/%{name}/disk.so
2276 %{_libdir}/%{name}/dns.so
2281 %{_libdir}/%{name}/dbi.so
2286 %{_libdir}/%{name}/email.so
2291 %{_libdir}/%{name}/gmond.so
2296 %{_libdir}/%{name}/gps.so
2301 %{_libdir}/%{name}/grpc.so
2306 %{_libdir}/%{name}/hddtemp.so
2311 %{_libdir}/%{name}/ipmi.so
2314 %if %{with_iptables}
2316 %{_libdir}/%{name}/iptables.so
2321 %{_datadir}/collectd/java/collectd-api.jar
2322 %{_datadir}/collectd/java/generic-jmx.jar
2323 %{_libdir}/%{name}/java.so
2324 %{_mandir}/man5/collectd-java.5*
2329 %{_libdir}/%{name}/virt.so
2332 %if %{with_log_logstash}
2334 %{_libdir}/%{name}/log_logstash.so
2339 %{_mandir}/man5/collectd-lua*
2340 %{_libdir}/%{name}/lua.so
2345 %{_libdir}/%{name}/lvm.so
2348 %if %{with_memcachec}
2350 %{_libdir}/%{name}/memcachec.so
2355 %{_libdir}/%{name}/mic.so
2360 %{_libdir}/%{name}/modbus.so
2365 %{_libdir}/%{name}/mqtt.so
2370 %{_libdir}/%{name}/mysql.so
2375 %{_libdir}/%{name}/netlink.so
2380 %{_libdir}/%{name}/nginx.so
2383 %if %{with_notify_desktop}
2384 %files notify_desktop
2385 %{_libdir}/%{name}/notify_desktop.so
2388 %if %{with_notify_email}
2390 %{_libdir}/%{name}/notify_email.so
2395 %{_libdir}/%{name}/nut.so
2398 %if %{with_openldap}
2400 %{_libdir}/%{name}/openldap.so
2405 %{perl_vendorlib}/Collectd.pm
2406 %{perl_vendorlib}/Collectd/
2407 %{_mandir}/man3/Collectd::Unixsock.3pm*
2408 %{_mandir}/man5/collectd-perl.5*
2409 %{_libdir}/%{name}/perl.so
2414 %{_libdir}/%{name}/pinba.so
2419 %{_libdir}/%{name}/ping.so
2422 %if %{with_postgresql}
2424 %{_datadir}/collectd/postgresql_default.conf
2425 %{_libdir}/%{name}/postgresql.so
2430 %{_mandir}/man5/collectd-python*
2431 %{_libdir}/%{name}/python.so
2436 %{_libdir}/%{name}/redis.so
2439 %if %{with_rrdcached}
2441 %{_libdir}/%{name}/rrdcached.so
2446 %{_libdir}/%{name}/rrdtool.so
2451 %{_libdir}/%{name}/sensors.so
2456 %{_libdir}/%{name}/sigrok.so
2461 %{_libdir}/%{name}/smart.so
2466 %{_mandir}/man5/collectd-snmp.5*
2467 %{_libdir}/%{name}/snmp.so
2472 %{_libdir}/%{name}/varnish.so
2475 %if %{with_write_http}
2477 %{_libdir}/%{name}/write_http.so
2480 %if %{with_write_kafka}
2482 %{_libdir}/%{name}/write_kafka.so
2485 %if %{with_write_redis}
2487 %{_libdir}/%{name}/write_redis.so
2490 %if %{with_write_riemann}
2491 %files write_riemann
2492 %{_libdir}/%{name}/write_riemann.so
2497 %{_libdir}/%{name}/xencpu.so
2502 %{_libdir}/%{name}/xmms.so
2506 %{_localstatedir}/www/collection3
2507 %{_sysconfdir}/httpd/conf.d/collection3.conf
2509 %files php-collection
2510 %{_localstatedir}/www/php-collection
2511 %{_sysconfdir}/httpd/conf.d/php-collection.conf
2517 * Tue Nov 29 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.6.1-2
2518 - Disable redis plugin on RHEL < 7, hiredis has been retired from EPEL6
2520 * Mon Oct 10 2016 Victor Demonchy <v.demonchy@criteo.com> - 5.6.1-1
2521 - New upstream version
2523 * Sun Aug 14 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.6.0-1
2524 - New upstream version
2525 - New plugins enabled by default: chrony, cpusleep, gps, lua, mqtt, notify_nagios
2526 - New plugins disabled by default: grpc, xencpu, zone
2528 * Tue Jul 26 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.5.2-1
2529 - New upstream version
2530 - Contains fix for CVE-2016-6254
2531 - Change collectd.org url to https
2533 * Sat Jun 04 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> 5.5.1-1
2534 - New upstream version
2536 * Wed May 27 2015 Marc Fournier <marc.fournier@camptocamp.com> 5.5.0-1
2537 - New upstream version
2538 - New plugins enabled by default: ceph, drbd, log_logstash, write_tsdb, smart,
2539 openldap, redis, write_redis, zookeeper, write_log, write_sensu, ipc,
2541 - New plugins disabled by default: barometer, write_kafka
2542 - Enable zfs_arc, now supported on Linux
2543 - Install disk plugin in a dedicated package, as it depends on libudev
2544 - use systemd on EL7, sysvinit on EL6 & EL5
2545 - Install collectdctl, collectd-tg and collectd-nagios in collectd-utils.rpm
2546 - Add build-dependency on libcap-devel
2548 * Mon Aug 19 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.4.2-1
2549 - New upstream version
2550 - Build netlink plugin by default
2551 - Enable cgroups, lvm and statsd plugins
2552 - Enable (but don't build by default) mic, aquaero and sigrok plugins
2553 - Enable modbus, memcachec and xmms plugins on RHEL7
2555 * Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
2556 - New upstream version
2557 - Added RHEL5 support:
2558 * conditionally disable plugins not building on this platform
2559 * add/specify some build dependencies and options
2560 * replace some RPM macros not available on this platform
2561 - Removed duplicate --enable-aggregation
2562 - Added some comments & usage examples
2563 - Replaced a couple of "Buildrequires" by "BuildRequires"
2564 - Enabled modbus plugin on RHEL6
2565 - Enabled netlink plugin on RHEL6 and RHEL7
2566 - Allow perl plugin to build on RHEL5
2567 - Add support for RHEL7
2568 - Misc perl-related improvements:
2569 * prevent rpmbuild from extracting dependencies from files in /usr/share/doc
2570 * don't package collection3 and php-collection twice
2571 * keep perl scripts from contrib/ in collectd-contrib
2573 * Wed Apr 10 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.0-1
2574 - New upstream version
2575 - Enabled write_riemann plugin
2576 - Enabled tail_csv plugin
2577 - Installed collectd-tc manpage
2579 * Fri Jan 11 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-3
2580 - remove dependency on libstatgrab, which isn't required on linux
2582 * Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
2583 - collection3 and php-collection viewers are now in separate packages
2585 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
2586 - New upstream version
2587 - Enabled aggregation plugin
2588 - Installed collectd-tc
2589 - Added network.h and network_buffer.h to libcollectdclient-devel
2590 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
2591 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
2592 - Added rrdcached and redis plugin descriptions
2593 - Mentioned new pf plugin in disabled plugins list
2595 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
2596 - Follow Fedora Packaging Guidelines in java subpackage
2598 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
2599 - Move perl stuff to perl_vendorlib
2600 - Replace hardcoded paths with macros
2601 - Remove unnecessary Requires
2602 - Removed .a and .la files
2603 - Some other small cleanups
2605 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
2606 - New upstream version
2607 - Changes to support 5.1.0
2608 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
2609 - All plugins requiring external libraries are now shipped in separate
2611 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
2612 the build process + ensure build deps are installed.
2613 - Dropped per-plugin configuration files, as they tend to diverge from upstream
2615 - Moved perl stuff to /usr/share/perl5/
2616 - Don't alter Interval and ReadThreads by default, let the user change this
2618 - Initscript improvements:
2619 * checks configuration before (re)starting, based on debian's initscript
2620 * use /etc/sysconfig instdead of /etc/default
2621 * include optional $ARGS in arguments passed to collectd.
2622 - Drop collection.cgi from main package, as it's been obsoleted by collection3
2623 - Moved contrib/ to its own package, to avoid cluttering the main package with
2624 non-essential stuff.
2625 - Replaced BuildPrereq by BuildRequires
2627 * Mon Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
2628 - New upstream version
2629 - Changes to support 5.0.1
2631 * Mon Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
2632 - New upstream version
2633 - Changes to support 4.9.0
2634 - Added support for Java/GenericJMX plugin
2636 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
2637 - New upstream version
2638 - Changes to support 4.3.1
2639 - Added More Prereqs to support more plugins
2640 - Added support for perl plugin
2642 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
2643 - New upstream version
2645 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
2647 - Changes to support 4.0.5
2649 * Thu Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
2650 - fixed spec file to build correctly on fedora core
2651 - added improved init.d script to work with chkconfig
2652 - added %%post and %%postun to call chkconfig automatically
2654 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
2655 - New upstream version
2657 * Sun Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
2658 - New upstream version
2660 * Thu Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
2661 - New upstream version
2663 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
2664 - New upstream version
2666 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
2667 - New upstream version
2669 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
2670 - New upstream version
2672 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
2673 - New upstream version
2674 - Added the `apache' package.
2676 * Tue Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
2677 - New upstream version
2679 * Mon Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
2680 - New upstream version
2682 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
2683 - New upstream version
2685 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
2686 - Include `tape.so' so the build doesn't terminate because of missing files..
2687 - New upstream version
2689 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
2690 - New upstream version
2692 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
2693 - New upstream version
2694 - Removed the extra `hddtemp' package
2696 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
2697 - New upstream version
2699 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
2700 - New upstream version
2702 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
2703 - New upstream version
2704 - Added config file, `collectd.conf(5)', `df.so'
2705 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
2707 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
2708 - New upstream version
2710 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
2711 - New upstream version
2713 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
2714 - New upstream version
2716 * Wed Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
2717 - New upstream version
2718 - Added statement to remove the `*.la' files. This fixes a problem when
2719 `Unpackaged files terminate build' is in effect.
2720 - Added `processes.so*' to the main package
2722 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
2723 - New upstream version
2724 - Added package `collectd-hddtemp'
2726 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
2727 - New upstream version
2728 - Split the package into `collectd' and `collectd-sensors'
2730 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
2731 - New upstream version
2733 * Sat Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
2734 - New upstream version
2736 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
2737 - New upstream version
2739 * Thu Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
2740 - New upstream version
2742 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
2743 - New upstream version
2745 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
2746 - New upstream version
2748 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
2749 - New upstream version
2751 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
2752 - New upstream version
2754 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
2755 - Built on RedHat 7.3