Merge pull request #719 from mfournier/openldap-improvements-rebased
[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 # - copy this file in your ~/rpmbuild/SPECS/ directory
18 #
19 # - fetch the desired collectd release file from https://collectd.org/files/
20 #   and save it in your ~/rpmbuild/SOURCES/ directory
21 #
22 # - build the SRPM first:
23 #   mock -r centos-6-x86_64 --buildsrpm --spec ~/rpmbuild/SPECS/collectd.spec \
24 #     --sources ~/rpmbuild/SOURCES/
25 #
26 # - then build the RPMs:
27 #   mock -r centos-6-x86_64 --no-clean --rebuild \
28 #     /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
29 #
30 # - you can also optionally enable/disable plugins which are disabled/enabled
31 #   by default:
32 #   mock -r centos-6-x86_64 --no-clean --without=java --with=oracle --rebuild \
33 #     /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
34 #
35
36 %global _hardened_build 1
37
38 # plugins only buildable on RHEL6
39 # (NB: %{elN} macro is not available on RHEL < 6)
40 %{?el6:%global _has_libyajl 1}
41 %{?el6:%global _has_recent_libpcap 1}
42 %{?el6:%global _has_recent_sockios_h 1}
43 %{?el6:%global _has_recent_libganglia 1}
44 %{?el6:%global _has_working_libiptc 1}
45 %{?el6:%global _has_ip_vs_h 1}
46 %{?el6:%global _has_lvm2app_h 1}
47 %{?el6:%global _has_libmodbus 1}
48 %{?el6:%global _has_libudev 1}
49 %{?el6:%global _has_iproute 1}
50
51 %{?el7:%global _has_libyajl 1}
52 %{?el7:%global _has_recent_libpcap 1}
53 %{?el7:%global _has_recent_sockios_h 1}
54 %{?el7:%global _has_working_libiptc 1}
55 %{?el7:%global _has_ip_vs_h 1}
56 %{?el7:%global _has_lvm2app_h 1}
57 %{?el7:%global _has_libudev 1}
58 %{?el7:%global _has_recent_librrd 1}
59 %{?el7:%global _has_varnish4 1}
60 %{?el7:%global _has_broken_libmemcached 1}
61 %{?el7:%global _has_iproute 1}
62
63 # plugins enabled by default
64 %define with_aggregation 0%{!?_without_aggregation:1}
65 %define with_amqp 0%{!?_without_amqp:1}
66 %define with_apache 0%{!?_without_apache:1}
67 %define with_apcups 0%{!?_without_apcups:1}
68 %define with_ascent 0%{!?_without_ascent:1}
69 %define with_battery 0%{!?_without_battery:1}
70 %define with_bind 0%{!?_without_bind:1}
71 %define with_cgroups 0%{!?_without_cgroups:1}
72 %define with_conntrack 0%{!?_without_conntrack:1}
73 %define with_contextswitch 0%{!?_without_contextswitch:1}
74 %define with_cpu 0%{!?_without_cpu:1}
75 %define with_cpufreq 0%{!?_without_cpufreq:1}
76 %define with_csv 0%{!?_without_csv:1}
77 %define with_curl 0%{!?_without_curl:1}
78 %define with_curl_json 0%{!?_without_curl_json:0%{?_has_libyajl}}
79 %define with_curl_xml 0%{!?_without_curl_xml:1}
80 %define with_dbi 0%{!?_without_dbi:1}
81 %define with_df 0%{!?_without_df:1}
82 %define with_disk 0%{!?_without_disk:1}
83 %define with_dns 0%{!?_without_dns:0%{?_has_recent_libpcap}}
84 %define with_drbd 0%{!?_without_drbd:1}
85 %define with_email 0%{!?_without_email:1}
86 %define with_entropy 0%{!?_without_entropy:1}
87 %define with_ethstat 0%{!?_without_ethstat:0%{?_has_recent_sockios_h}}
88 %define with_exec 0%{!?_without_exec:1}
89 %define with_filecount 0%{!?_without_filecount:1}
90 %define with_fscache 0%{!?_without_fscache:1}
91 %define with_gmond 0%{!?_without_gmond:0%{?_has_recent_libganglia}}
92 %define with_hddtemp 0%{!?_without_hddtemp:1}
93 %define with_interface 0%{!?_without_interface:1}
94 %define with_ipmi 0%{!?_without_ipmi:1}
95 %define with_iptables 0%{!?_without_iptables:0%{?_has_working_libiptc}}
96 %define with_ipvs 0%{!?_without_ipvs:0%{?_has_ip_vs_h}}
97 %define with_irq 0%{!?_without_irq:1}
98 %define with_java 0%{!?_without_java:1}
99 %define with_virt 0%{!?_without_virt:1}
100 %define with_load 0%{!?_without_load:1}
101 %define with_logfile 0%{!?_without_logfile:1}
102 %define with_log_logstash 0%{!?_without_log_logstash:0%{?_has_libyajl}}
103 %define with_lvm 0%{!?_without_lvm:0%{?_has_lvm2app_h}}
104 %define with_madwifi 0%{!?_without_madwifi:1}
105 %define with_mbmon 0%{!?_without_mbmon:1}
106 %define with_md 0%{!?_without_md:1}
107 %define with_memcachec 0%{!?_without_memcachec:0%{!?_has_broken_libmemcached:1}}
108 %define with_memcached 0%{!?_without_memcached:1}
109 %define with_memory 0%{!?_without_memory:1}
110 %define with_multimeter 0%{!?_without_multimeter:1}
111 %define with_modbus 0%{!?_without_modbus:0%{?_has_libmodbus}}
112 %define with_mysql 0%{!?_without_mysql:1}
113 %define with_netlink 0%{!?_without_netlink:0%{?_has_iproute}}
114 %define with_network 0%{!?_without_network:1}
115 %define with_nfs 0%{!?_without_nfs:1}
116 %define with_nginx 0%{!?_without_nginx:1}
117 %define with_notify_desktop 0%{!?_without_notify_desktop:1}
118 %define with_notify_email 0%{!?_without_notify_email:1}
119 %define with_ntpd 0%{!?_without_ntpd:1}
120 %define with_numa 0%{!?_without_numa:1}
121 %define with_nut 0%{!?_without_nut:1}
122 %define with_olsrd 0%{!?_without_olsrd:1}
123 %define with_openvpn 0%{!?_without_openvpn:1}
124 %define with_perl 0%{!?_without_perl:1}
125 %define with_pinba 0%{!?_without_pinba:1}
126 %define with_ping 0%{!?_without_ping:1}
127 %define with_postgresql 0%{!?_without_postgresql:1}
128 %define with_powerdns 0%{!?_without_powerdns:1}
129 %define with_processes 0%{!?_without_processes:1}
130 %define with_protocols 0%{!?_without_protocols:1}
131 %define with_python 0%{!?_without_python:1}
132 %define with_rrdcached 0%{!?_without_rrdcached:0%{?_has_recent_librrd}}
133 %define with_rrdtool 0%{!?_without_rrdtool:1}
134 %define with_sensors 0%{!?_without_sensors:1}
135 %define with_serial 0%{!?_without_serial:1}
136 %define with_snmp 0%{!?_without_snmp:1}
137 %define with_statsd 0%{!?_without_statsd:1}
138 %define with_swap 0%{!?_without_swap:1}
139 %define with_syslog 0%{!?_without_syslog:1}
140 %define with_table 0%{!?_without_table:1}
141 %define with_tail 0%{!?_without_tail:1}
142 %define with_tail_csv 0%{!?_without_tail_csv:1}
143 %define with_tcpconns 0%{!?_without_tcpconns:1}
144 %define with_teamspeak2 0%{!?_without_teamspeak2:1}
145 %define with_ted 0%{!?_without_ted:1}
146 %define with_thermal 0%{!?_without_thermal:1}
147 %define with_threshold 0%{!?_without_threshold:1}
148 %define with_unixsock 0%{!?_without_unixsock:1}
149 %define with_uptime 0%{!?_without_uptime:1}
150 %define with_users 0%{!?_without_users:1}
151 %define with_uuid 0%{!?_without_uuid:1}
152 %define with_varnish 0%{!?_without_varnish:0%{!?_has_varnish4:1}}
153 %define with_vmem 0%{!?_without_vmem:1}
154 %define with_vserver 0%{!?_without_vserver:1}
155 %define with_wireless 0%{!?_without_wireless:1}
156 %define with_write_graphite 0%{!?_without_write_graphite:1}
157 %define with_write_http 0%{!?_without_write_http:1}
158 %define with_write_riemann 0%{!?_without_write_riemann:1}
159 %define with_write_tsdb 0%{!?_without_write_tsdb:1}
160 %define with_zfs_arc 0%{!?_without_zfs_arc:1}
161
162 # Plugins not built by default because of dependencies on libraries not
163 # available in RHEL or EPEL:
164
165 # plugin apple_sensors disabled, requires a Mac
166 %define with_apple_sensors 0%{!?_without_apple_sensors:0}
167 # plugin aquaero disabled, requires a libaquaero5
168 %define with_aquaero 0%{!?_without_aquaero:0}
169 # plugin barometer disabled, requires a libi2c
170 %define with_barometer 0%{!?_without_barometer:0}
171 # plugin lpar disabled, requires AIX
172 %define with_lpar 0%{!?_without_lpar:0}
173 # plugin mic disabled, requires Mic
174 %define with_mic 0%{!?_without_mic:0}
175 # plugin netapp disabled, requires libnetapp
176 %define with_netapp 0%{!?_without_netapp:0}
177 # plugin onewire disabled, requires libowfs
178 %define with_onewire 0%{!?_without_onewire:0}
179 # plugin oracle disabled, requires Oracle
180 %define with_oracle 0%{!?_without_oracle:0}
181 # plugin oracle disabled, requires BSD
182 %define with_pf 0%{!?_without_pf:0}
183 # plugin redis disabled, requires credis
184 %define with_redis 0%{!?_without_redis:0}
185 # plugin routeros disabled, requires librouteros
186 %define with_routeros 0%{!?_without_routeros:0}
187 # plugin sigrok disabled, requires libsigrok
188 %define with_sigrok 0%{!?_without_sigrok:0}
189 # plugin tape disabled, requires libkstat
190 %define with_tape 0%{!?_without_tape:0}
191 # plugin tokyotyrant disabled, requires tcrdb.h
192 %define with_tokyotyrant 0%{!?_without_tokyotyrant:0}
193 # plugin write_kafka disabled, requires librdkafka
194 %define with_write_kafka 0%{!?_without_write_kafka:0}
195 # plugin write_mongodb disabled, requires libmongoc
196 %define with_write_mongodb 0%{!?_without_write_mongodb:0}
197 # plugin write_redis disabled, requires credis
198 %define with_write_redis 0%{!?_without_write_redis:0}
199 # plugin xmms disabled, requires xmms
200 %define with_xmms 0%{!?_without_xmms:0}
201
202 Summary:        Statistics collection daemon for filling RRD files
203 Name:           collectd
204 Version:        5.4.0
205 Release:        1%{?dist}
206 URL:            http://collectd.org
207 Source:         http://collectd.org/files/%{name}-%{version}.tar.bz2
208 License:        GPLv2
209 Group:          System Environment/Daemons
210 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
211 BuildRequires:  libgcrypt-devel, kernel-headers
212 Vendor:         collectd development team <collectd@verplant.org>
213
214 Requires(post):         chkconfig
215 Requires(preun):        chkconfig, initscripts
216 Requires(postun):       initscripts
217
218 %description
219 collectd is a small daemon which collects system information periodically and
220 provides mechanisms to monitor and store the values in a variety of ways. It
221 is written in C for performance. Since the daemon doesn't need to start up
222 every time it wants to update the values it's very fast and easy on the
223 system. Also, the statistics are very fine grained since the files are updated
224 every 10 seconds by default.
225
226 %if %{with_amqp}
227 %package amqp
228 Summary:        AMQP plugin for collectd
229 Group:          System Environment/Daemons
230 Requires:       %{name}%{?_isa} = %{version}-%{release}
231 BuildRequires:  librabbitmq-devel
232 %description amqp
233 The AMQP plugin transmits or receives values collected by collectd via the
234 Advanced Message Queuing Protocol (AMQP).
235 %endif
236
237 %if %{with_apache}
238 %package apache
239 Summary:        Apache plugin for collectd
240 Group:          System Environment/Daemons
241 Requires:       %{name}%{?_isa} = %{version}-%{release}
242 BuildRequires:  curl-devel
243 %description apache
244 This plugin collects data provided by Apache's `mod_status'.
245 %endif
246
247 %if %{with_aquaero}
248 %package aquaero
249 Summary:        aquaero plugin for collectd
250 Group:          System Environment/Daemons
251 Requires:       %{name}%{?_isa} = %{version}-%{release}
252 %description aquaero
253 Various sensors in the Aquaero 5 watercooling board made by Aquacomputer.
254 %endif
255
256 %if %{with_ascent}
257 %package ascent
258 Summary:        Ascent plugin for collectd
259 Group:          System Environment/Daemons
260 Requires:       %{name}%{?_isa} = %{version}-%{release}
261 BuildRequires:  libxml2-devel, curl-devel
262 %description ascent
263 The Ascent plugin reads and parses the statistics page of Ascent, a free and
264 open-source server software for the game World of Warcraft by Blizzard
265 Entertainment.
266 %endif
267
268 %if %{with_barometer}
269 %package barometer
270 Summary:       barometer plugin for collectd
271 Group:         System Environment/Daemons
272 Requires:      %{name}%{?_isa} = %{version}-%{release}
273 %description barometer
274 Collects pressure and temperature from digital barometers.
275 %endif
276
277 %if %{with_bind}
278 %package bind
279 Summary:        Bind plugin for collectd
280 Group:          System Environment/Daemons
281 Requires:       %{name}%{?_isa} = %{version}-%{release}
282 BuildRequires:  libxml2-devel, curl-devel
283 %description bind
284 The BIND plugin retrieves this information that's encoded in XML and provided
285 via HTTP and submits the values to collectd.
286 %endif
287
288 %if %{with_curl}
289 %package curl
290 Summary:        Curl plugin for collectd
291 Group:          System Environment/Daemons
292 Requires:       %{name}%{?_isa} = %{version}-%{release}
293 BuildRequires:  curl-devel
294 %description curl
295 The cURL plugin uses libcurl to read files and then parses them according to
296 the configuration.
297 %endif
298
299 %if %{with_curl_json}
300 %package curl_json
301 Summary:        Curl_json plugin for collectd
302 Group:          System Environment/Daemons
303 Requires:       %{name}%{?_isa} = %{version}-%{release}
304 BuildRequires:  curl-devel, yajl-devel
305 %description curl_json
306 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
307 cURL library and parses it according to the user's configuration.
308 %endif
309
310 %if %{with_curl_xml}
311 %package curl_xml
312 Summary:        Curl_xml plugin for collectd
313 Group:          System Environment/Daemons
314 Requires:       %{name}%{?_isa} = %{version}-%{release}
315 BuildRequires:  curl-devel, libxml2-devel
316 %description curl_xml
317 The cURL-XML plugin reads files using libcurl and parses it as Extensible
318 Markup Language (XML).
319 %endif
320
321 %if %{with_dbi}
322 %package dbi
323 Summary:        DBI plugin for collectd
324 Group:          System Environment/Daemons
325 Requires:       %{name}%{?_isa} = %{version}-%{release}
326 BuildRequires:  libdbi-devel
327 %description dbi
328 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
329 statements on a database and read back the result.
330 %endif
331
332 %if %{with_disk}
333 %package disk
334 Summary:        disk plugin for collectd
335 Group:          System Environment/Daemons
336 Requires:       %{name}%{?_isa} = %{version}-%{release}
337 %{?_has_libudev:BuildRequires:  libudev-devel}
338 %description disk
339 The "disk" plugin collects information about the usage of physical disks and
340 logical disks (partitions).
341 %endif
342
343 %if %{with_dns}
344 %package dns
345 Summary:        DNS plugin for collectd
346 Group:          System Environment/Daemons
347 Requires:       %{name}%{?_isa} = %{version}-%{release}, libpcap >= 1.0
348 BuildRequires:  libpcap-devel >= 1.0
349 %description dns
350 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
351 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
352 packets and collects statistics of your DNS traffic.
353 %endif
354
355 %if %{with_email}
356 %package email
357 Summary:        Email plugin for collectd
358 Group:          System Environment/Daemons
359 Requires:       %{name}%{?_isa} = %{version}-%{release}, spamassassin
360 %description email
361 This plugin collects data provided by spamassassin.
362 %endif
363
364 %if %{with_gmond}
365 %package gmond
366 Summary:        Gmond plugin for collectd
367 Group:          System Environment/Daemons
368 Requires:       %{name}%{?_isa} = %{version}-%{release}
369 BuildRequires:  ganglia-devel
370 %description gmond
371 The gmond plugin subscribes to a Multicast group to receive data from gmond,
372 the client daemon of the Ganglia project.
373 %endif
374
375 %if %{with_hddtemp}
376 %package hddtemp
377 Summary:        Hddtemp plugin for collectd
378 Group:          System Environment/Daemons
379 Requires:       %{name}%{?_isa} = %{version}-%{release}, hddtemp
380 %description hddtemp
381 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
382 provided via SMART and queried by the external hddtemp daemon.
383 %endif
384
385 %if %{with_ipmi}
386 %package ipmi
387 Summary:        IPMI plugin for collectd
388 Group:          System Environment/Daemons
389 Requires:       %{name}%{?_isa} = %{version}-%{release}
390 BuildRequires:  OpenIPMI-devel
391 %description ipmi
392 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
393 using the Intelligent Platform Management Interface (IPMI).
394 %endif
395
396 %if %{with_iptables}
397 %package iptables
398 Summary:        IPtables plugin for collectd
399 Group:          System Environment/Daemons
400 Requires:       %{name}%{?_isa} = %{version}-%{release}
401 BuildRequires:  iptables-devel
402 %description iptables
403 The IPtables plugin can gather statistics from your ip_tables based packet
404 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
405 the byte- and packet-counters of selected rules and submit them to collectd.
406 %endif
407
408 %if %{with_java}
409 %package java
410 Summary:        Java plugin for collectd
411 Group:          System Environment/Daemons
412 Requires:       %{name}%{?_isa} = %{version}-%{release}
413 BuildRequires:  java-devel, jpackage-utils
414 Requires:       java, jpackage-utils
415 %description java
416 This plugin for collectd allows plugins to be written in Java and executed
417 in an embedded JVM.
418 %endif
419
420 %if %{with_log_logstash}
421 %package log_logstash
422 Summary:       log_logstash plugin for collectd
423 Group:         System Environment/Daemons
424 Requires:      %{name}%{?_isa} = %{version}-%{release}
425 BuildRequires: yajl-devel
426 %description log_logstash
427 This plugin logs in logstash JSON format
428 %endif
429
430 %if %{with_lvm}
431 %package lvm
432 Summary:        LVM plugin for collectd
433 Group:          System Environment/Daemons
434 Requires:       %{name}%{?_isa} = %{version}-%{release}
435 BuildRequires:  lvm2-devel
436 %description lvm
437 This plugin collects size of “Logical Volumes” (LV) and “Volume Groups” (VG)
438 of Linux' “Logical Volume Manager” (LVM).
439 %endif
440
441 %if %{with_memcachec}
442 %package memcachec
443 Summary:        Memcachec plugin for collectd
444 Group:          System Environment/Daemons
445 Requires:       %{name}%{?_isa} = %{version}-%{release}
446 BuildRequires:  libmemcached-devel
447 %description memcachec
448 The Memcachec plugin uses libmemcached to read statistics from a Memcached
449 instance. Note that another plugin, named `memcached', exists and does a
450 similar job, without requiring the installation of libmemcached.
451 %endif
452
453 %if %{with_mic}
454 %package mic
455 Summary:        mic plugin for collectd
456 Group:          System Environment/Daemons
457 Requires:       %{name}%{?_isa} = %{version}-%{release}
458 %description mic
459 The mic plugin collects CPU usage, memory usage, temperatures and power
460 consumption from Intel Many Integrated Core (MIC) CPUs.
461 %endif
462
463 %if %{with_modbus}
464 %package modbus
465 Summary:       modbus plugin for collectd
466 Group:         System Environment/Daemons
467 Requires:      %{name}%{?_isa} = %{version}-%{release}
468 BuildRequires:  libmodbus-devel
469 %description modbus
470 The modbus plugin collects values from Modbus/TCP enabled devices
471 %endif
472
473 %if %{with_mysql}
474 %package mysql
475 Summary:        MySQL plugin for collectd
476 Group:          System Environment/Daemons
477 Requires:       %{name}%{?_isa} = %{version}-%{release}
478 BuildRequires:  mysql-devel
479 %description mysql
480 MySQL querying plugin. This plugin provides data of issued commands, called
481 handlers and database traffic.
482 %endif
483
484 %if %{with_netlink}
485 %package netlink
486 Summary:        netlink plugin for collectd
487 Group:          System Environment/Daemons
488 Requires:       %{name}%{?_isa} = %{version}-%{release}
489 BuildRequires:  libmnl-devel, iproute-devel
490 %description netlink
491 The netlink plugin collects detailed network interface and routing statistics.
492 %endif
493
494 %if %{with_nginx}
495 %package nginx
496 Summary:        Nginx plugin for collectd
497 Group:          System Environment/Daemons
498 Requires:       %{name}%{?_isa} = %{version}-%{release}
499 BuildRequires:  curl-devel
500 %description nginx
501 This plugin gets data provided by nginx.
502 %endif
503
504 %if %{with_notify_desktop}
505 %package notify_desktop
506 Summary:        Notify_desktop plugin for collectd
507 Group:          System Environment/Daemons
508 Requires:       %{name}%{?_isa} = %{version}-%{release}
509 BuildRequires:  libnotify-devel, gtk2-devel
510 %description notify_desktop
511 The Notify Desktop plugin uses libnotify to display notifications to the user
512 via the desktop notification specification, i. e. on an X display.
513 %endif
514
515 %if %{with_notify_email}
516 %package notify_email
517 Summary:        Notify_email plugin for collectd
518 Group:          System Environment/Daemons
519 Requires:       %{name}%{?_isa} = %{version}-%{release}
520 BuildRequires:  libesmtp-devel
521 %description notify_email
522 The Notify Email plugin uses libESMTP to send notifications to a configured
523 email address.
524 %endif
525
526 %if %{with_nut}
527 %package nut
528 Summary:        Nut plugin for collectd
529 Group:          System Environment/Daemons
530 Requires:       %{name}%{?_isa} = %{version}-%{release}
531 BuildRequires:  nut-devel
532 %description nut
533 This plugin for collectd provides Network UPS Tools support.
534 %endif
535
536 %if %{with_perl}
537 %package perl
538 Summary:        Perl plugin for collectd
539 Group:          System Environment/Daemons
540 Requires:       %{name}%{?_isa} = %{version}-%{release}
541 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
542 %if 0%{?rhel} >= 6
543 BuildRequires:  perl-ExtUtils-Embed
544 %else
545 BuildRequires:  perl
546 %endif
547 %description perl
548 The Perl plugin embeds a Perl interpreter into collectd and exposes the
549 application programming interface (API) to Perl-scripts.
550 %endif
551
552 %if %{with_pinba}
553 %package pinba
554 Summary:        Pinba plugin for collectd
555 Group:          System Environment/Daemons
556 Requires:       %{name}%{?_isa} = %{version}-%{release}
557 BuildRequires:  protobuf-c-devel
558 %description pinba
559 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
560 extension for PHP.
561 %endif
562
563 %if %{with_ping}
564 %package ping
565 Summary:        Ping plugin for collectd
566 Group:          System Environment/Daemons
567 Requires:       %{name}%{?_isa} = %{version}-%{release}
568 BuildRequires:  liboping-devel
569 %description ping
570 The Ping plugin measures network latency using ICMP “echo requests”, usually
571 known as “ping”.
572 %endif
573
574 %if %{with_postgresql}
575 %package postgresql
576 Summary:        PostgreSQL plugin for collectd
577 Group:          System Environment/Daemons
578 Requires:       %{name}%{?_isa} = %{version}-%{release}
579 BuildRequires:  postgresql-devel
580 %description postgresql
581 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
582 database.
583 %endif
584
585 %if %{with_python}
586 %package python
587 Summary:        Python plugin for collectd
588 Group:          System Environment/Daemons
589 Requires:       %{name}%{?_isa} = %{version}-%{release}
590 %if 0%{?rhel} >= 6
591 BuildRequires: python-devel
592 %else
593 BuildRequires: python26-devel
594 %endif
595 %description python
596 The Python plugin embeds a Python interpreter into collectd and exposes the
597 application programming interface (API) to Python-scripts.
598 %endif
599
600 %if %{with_redis}
601 %package redis
602 Summary:        Redis plugin for collectd
603 Group:          System Environment/Daemons
604 Requires:       %{name}%{?_isa} = %{version}-%{release}
605 BuildRequires:  credis-devel
606 %description redis
607 The Redis plugin connects to one or more instances of Redis, a key-value store,
608 and collects usage information using the credis library.
609 %endif
610
611 %if %{with_rrdcached}
612 %package rrdcached
613 Summary:        RRDCached plugin for collectd
614 Group:          System Environment/Daemons
615 Requires:       %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
616 BuildRequires:  rrdtool-devel
617 %description rrdcached
618 The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
619 submits updates for RRD files to that daemon.
620 %endif
621
622 %if %{with_rrdtool}
623 %package rrdtool
624 Summary:        RRDtool plugin for collectd
625 Group:          System Environment/Daemons
626 Requires:       %{name}%{?_isa} = %{version}-%{release}
627 BuildRequires:  rrdtool-devel
628 %description rrdtool
629 The RRDtool plugin writes values to RRD-files using librrd.
630 %endif
631
632 %if %{with_sensors}
633 %package sensors
634 Summary:        Sensors plugin for collectd
635 Group:          System Environment/Daemons
636 Requires:       %{name}%{?_isa} = %{version}-%{release}
637 BuildRequires:  lm_sensors-devel
638 %description sensors
639 This plugin for collectd provides querying of sensors supported by lm_sensors.
640 %endif
641
642 %if %{with_sigrok}
643 %package sigrok
644 Summary:        sigrok plugin for collectd
645 Group:          System Environment/Daemons
646 Requires:       %{name}%{?_isa} = %{version}-%{release}
647 %description sigrok
648 Uses libsigrok as a backend, allowing any sigrok-supported device to have its
649 measurements fed to collectd. This includes multimeters, sound level meters,
650 thermometers, and much more.
651 %endif
652
653 %if %{with_snmp}
654 %package snmp
655 Summary:        SNMP plugin for collectd
656 Group:          System Environment/Daemons
657 Requires:       %{name}%{?_isa} = %{version}-%{release}
658 BuildRequires:  net-snmp-devel
659 %description snmp
660 This plugin for collectd allows querying of network equipment using SNMP.
661 %endif
662
663 %if %{with_varnish}
664 %package varnish
665 Summary:        Varnish plugin for collectd
666 Group:          System Environment/Daemons
667 Requires:       %{name}%{?_isa} = %{version}-%{release}
668 BuildRequires:  varnish-libs-devel
669 %description varnish
670 The Varnish plugin collects information about Varnish, an HTTP accelerator.
671 %endif
672
673 %if %{with_virt}
674 %package virt
675 Summary:        Virt plugin for collectd
676 Group:          System Environment/Daemons
677 Requires:       %{name}%{?_isa} = %{version}-%{release}
678 BuildRequires:  libvirt-devel
679 %description virt
680 This plugin collects information from virtualized guests.
681 %endif
682
683 %if %{with_write_http}
684 %package write_http
685 Summary:        Write-HTTP plugin for collectd
686 Group:          System Environment/Daemons
687 Requires:       %{name}%{?_isa} = %{version}-%{release}
688 BuildRequires:  curl-devel
689 %description write_http
690 The Write-HTTP plugin sends the values collected by collectd to a web-server
691 using HTTP POST requests.
692 %endif
693
694 %if %{with_write_kafka}
695 %package write_kafka
696 Summary:       Write-kafka plugin for collectd
697 Group:         System Environment/Daemons
698 Requires:      %{name}%{?_isa} = %{version}-%{release}
699 BuildRequires: rdkafka-devel
700 %description write_kafka
701 The write_kafka plugin sends values to kafka, a distributed messaging system.
702 %endif
703
704 %if %{with_write_redis}
705 %package write_redis
706 Summary:        Write-Redis plugin for collectd
707 Group:          System Environment/Daemons
708 Requires:       %{name}%{?_isa} = %{version}-%{release}
709 BuildRequires:  credis-devel
710 %description write_redis
711 The Write Redis plugin stores values in Redis, a “data structures server”.
712 %endif
713
714 %if %{with_write_riemann}
715 %package write_riemann
716 Summary:        riemann plugin for collectd
717 Group:          System Environment/Daemons
718 Requires:       %{name}%{?_isa} = %{version}-%{release}
719 BuildRequires:  protobuf-c-devel
720 %description write_riemann
721 The riemann plugin submits values to Riemann, an event stream processor.
722 %endif
723
724 %package collection3
725 Summary:        Web-based viewer for collectd
726 Group:          System Environment/Daemons
727 Requires:       %{name}%{?_isa} = %{version}-%{release}
728 Requires: httpd
729 %description collection3
730 collection3 is a graphing front-end for the RRD files created by and filled
731 with collectd. It is written in Perl and should be run as an CGI-script.
732 Graphs are generated on-the-fly, so no cron job or similar is necessary.
733
734 %package php-collection
735 Summary:        collect php webfrontent
736 Group:          System Environment/Daemons
737 Requires:       collectd = %{version}-%{release}
738 Requires:       httpd
739 Requires:       php
740 Requires:       php-rrdtool
741 %description php-collection
742 PHP graphing frontend for RRD files created by and filled with collectd.
743
744 %package contrib
745 Summary:        Contrib files for collectd
746 Group:          System Environment/Daemons
747 Requires:       %{name}%{?_isa} = %{version}-%{release}
748 %description contrib
749 All the files found under contrib/ in the source tree are bundled in this
750 package.
751
752 %package -n libcollectdclient
753 Summary:        Collectd client library
754 Group:          System Environment/Daemons
755 %description -n libcollectdclient
756 Collectd client library
757
758 %package -n libcollectdclient-devel
759 Summary:        Development files for libcollectdclient
760 Group:          System Environment/Daemons
761 Requires:       pkgconfig
762 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
763 %description -n libcollectdclient-devel
764 Development files for libcollectdclient
765
766
767 %prep
768 %setup -q
769
770 %build
771 %if %{with_aggregation}
772 %define _with_aggregation --enable-aggregation
773 %else
774 %define _with_aggregation --disable-aggregation
775 %endif
776
777 %if %{with_amqp}
778 %define _with_amqp --enable-amqp
779 %else
780 %define _with_amqp --disable-amqp
781 %endif
782
783 %if %{with_apache}
784 %define _with_apache --enable-apache
785 %else
786 %define _with_apache --disable-apache
787 %endif
788
789 %if %{with_apcups}
790 %define _with_apcups --enable-apcups
791 %else
792 %define _with_apcups --disable-apcups
793 %endif
794
795 %if %{with_apple_sensors}
796 %define _with_apple_sensors --enable-apple_sensors
797 %else
798 %define _with_apple_sensors --disable-apple_sensors
799 %endif
800
801 %if %{with_aquaero}
802 %define _with_aquaero --enable-aquaero
803 %else
804 %define _with_aquaero --disable-aquaero
805 %endif
806
807 %if %{with_ascent}
808 %define _with_ascent --enable-ascent
809 %else
810 %define _with_ascent --disable-ascent
811 %endif
812
813 %if %{with_barometer}
814 %define _with_barometer --enable-barometer
815 %else
816 %define _with_barometer --disable-barometer
817 %endif
818
819 %if %{with_battery}
820 %define _with_battery --enable-battery
821 %else
822 %define _with_battery --disable-battery
823 %endif
824
825 %if %{with_bind}
826 %define _with_bind --enable-bind
827 %else
828 %define _with_bind --disable-bind
829 %endif
830
831 %if %{with_cgroups}
832 %define _with_cgroups --enable-cgroups
833 %else
834 %define _with_cgroups --disable-cgroups
835 %endif
836
837 %if %{with_conntrack}
838 %define _with_conntrack --enable-conntrack
839 %else
840 %define _with_conntrack --disable-conntrack
841 %endif
842
843 %if %{with_contextswitch}
844 %define _with_contextswitch --enable-contextswitch
845 %else
846 %define _with_contextswitch --disable-contextswitch
847 %endif
848
849 %if %{with_cpu}
850 %define _with_cpu --enable-cpu
851 %else
852 %define _with_cpu --disable-cpu
853 %endif
854
855 %if %{with_cpufreq}
856 %define _with_cpufreq --enable-cpufreq
857 %else
858 %define _with_cpufreq --disable-cpufreq
859 %endif
860
861 %if %{with_csv}
862 %define _with_csv --enable-csv
863 %else
864 %define _with_csv --disable-csv
865 %endif
866
867 %if %{with_curl}
868 %define _with_curl --enable-curl
869 %else
870 %define _with_curl --disable-curl
871 %endif
872
873 %if %{with_curl_json}
874 %define _with_curl_json --enable-curl_json
875 %else
876 %define _with_curl_json --disable-curl_json
877 %endif
878
879 %if %{with_curl_xml}
880 %define _with_curl_xml --enable-curl_xml
881 %else
882 %define _with_curl_xml --disable-curl_xml
883 %endif
884
885 %if %{with_dbi}
886 %define _with_dbi --enable-dbi
887 %else
888 %define _with_dbi --disable-dbi --without-libdbi
889 %endif
890
891 %if %{with_df}
892 %define _with_df --enable-df
893 %else
894 %define _with_df --disable-df
895 %endif
896
897 %if %{with_disk}
898 %define _with_disk --enable-disk
899 %else
900 %define _with_disk --disable-disk
901 %endif
902
903 %if %{with_dns}
904 %define _with_dns --enable-dns
905 %else
906 %define _with_dns --disable-dns
907 %endif
908
909 %if %{with_drbd}
910 %define _with_drbd --enable-drbd
911 %else
912 %define _with_drbd --disable-drbd
913 %endif
914
915 %if %{with_email}
916 %define _with_email --enable-email
917 %else
918 %define _with_email --disable-email
919 %endif
920
921 %if %{with_entropy}
922 %define _with_entropy --enable-entropy
923 %else
924 %define _with_entropy --disable-entropy
925 %endif
926
927 %if %{with_ethstat}
928 %define _with_ethstat --enable-ethstat
929 %else
930 %define _with_ethstat --disable-ethstat
931 %endif
932
933 %if %{with_exec}
934 %define _with_exec --enable-exec
935 %else
936 %define _with_exec --disable-exec
937 %endif
938
939 %if %{with_filecount}
940 %define _with_filecount --enable-filecount
941 %else
942 %define _with_filecount --disable-filecount
943 %endif
944
945 %if %{with_fscache}
946 %define _with_fscache --enable-fscache
947 %else
948 %define _with_fscache --disable-fscache
949 %endif
950
951 %if %{with_gmond}
952 %define _with_gmond --enable-gmond
953 %else
954 %define _with_gmond --disable-gmond
955 %endif
956
957 %if %{with_hddtemp}
958 %define _with_hddtemp --enable-hddtemp
959 %else
960 %define _with_hddtemp --disable-hddtemp
961 %endif
962
963 %if %{with_interface}
964 %define _with_interface --enable-interface
965 %else
966 %define _with_interface --disable-interface
967 %endif
968
969 %if %{with_ipmi}
970 %define _with_ipmi --enable-ipmi
971 %else
972 %define _with_ipmi --disable-ipmi
973 %endif
974
975 %if %{with_iptables}
976 %define _with_iptables --enable-iptables
977 %else
978 %define _with_iptables --disable-iptables
979 %endif
980
981 %if %{with_ipvs}
982 %define _with_ipvs --enable-ipvs
983 %else
984 %define _with_ipvs --disable-ipvs
985 %endif
986
987 %if %{with_irq}
988 %define _with_irq --enable-irq
989 %else
990 %define _with_irq --disable-irq
991 %endif
992
993 %if %{with_java}
994 %define _with_java --enable-java --with-java=%{java_home}/
995 %else
996 %define _with_java --disable-java
997 %endif
998
999 %if %{with_virt}
1000 %define _with_virt --enable-virt
1001 %else
1002 %define _with_virt --disable-virt
1003 %endif
1004
1005 %if %{with_load}
1006 %define _with_load --enable-load
1007 %else
1008 %define _with_load --disable-load
1009 %endif
1010
1011 %if %{with_logfile}
1012 %define _with_logfile --enable-logfile
1013 %else
1014 %define _with_logfile --disable-logfile
1015 %endif
1016
1017 %if %{with_log_logstash}
1018 %define _with_log_logstash --enable-log_logstash
1019 %else
1020 %define _with_log_logstash --disable-log_logstash
1021 %endif
1022
1023 %if %{with_lpar}
1024 %define _with_lpar --enable-lpar
1025 %else
1026 %define _with_lpar --disable-lpar
1027 %endif
1028
1029 %if %{with_lvm}
1030 %define _with_lvm --enable-lvm
1031 %else
1032 %define _with_lvm --disable-lvm
1033 %endif
1034
1035 %if %{with_madwifi}
1036 %define _with_madwifi --enable-madwifi
1037 %else
1038 %define _with_madwifi --disable-madwifi
1039 %endif
1040
1041 %if %{with_mbmon}
1042 %define _with_mbmon --enable-mbmon
1043 %else
1044 %define _with_mbmon --disable-mbmon
1045 %endif
1046
1047 %if %{with_md}
1048 %define _with_md --enable-md
1049 %else
1050 %define _with_md --disable-md
1051 %endif
1052
1053 %if %{with_memcachec}
1054 %define _with_memcachec --enable-memcachec
1055 %else
1056 %define _with_memcachec --disable-memcachec
1057 %endif
1058
1059 %if %{with_memcached}
1060 %define _with_memcached --enable-memcached
1061 %else
1062 %define _with_memcached --disable-memcached
1063 %endif
1064
1065 %if %{with_memory}
1066 %define _with_memory --enable-memory
1067 %else
1068 %define _with_memory --disable-memory
1069 %endif
1070
1071 %if %{with_mic}
1072 %define _with_mic --enable-mic
1073 %else
1074 %define _with_mic --disable-mic
1075 %endif
1076
1077 %if %{with_modbus}
1078 %define _with_modbus --enable-modbus
1079 %else
1080 %define _with_modbus --disable-modbus
1081 %endif
1082
1083 %if %{with_multimeter}
1084 %define _with_multimeter --enable-multimeter
1085 %else
1086 %define _with_multimeter --disable-multimeter
1087 %endif
1088
1089 %if %{with_mysql}
1090 %define _with_mysql --enable-mysql
1091 %else
1092 %define _with_mysql --disable-mysql
1093 %endif
1094
1095 %if %{with_netapp}
1096 %define _with_netapp --enable-netapp
1097 %else
1098 %define _with_netapp --disable-netapp
1099 %endif
1100
1101 %if %{with_netlink}
1102 %define _with_netlink --enable-netlink
1103 %else
1104 %define _with_netlink --disable-netlink
1105 %endif
1106
1107 %if %{with_network}
1108 %define _with_network --enable-network
1109 %else
1110 %define _with_network --disable-network
1111 %endif
1112
1113 %if %{with_nfs}
1114 %define _with_nfs --enable-nfs
1115 %else
1116 %define _with_nfs --disable-nfs
1117 %endif
1118
1119 %if %{with_nginx}
1120 %define _with_nginx --enable-nginx
1121 %else
1122 %define _with_nginx --disable-nginx
1123 %endif
1124
1125 %if %{with_notify_desktop}
1126 %define _with_notify_desktop --enable-notify_desktop
1127 %else
1128 %define _with_notify_desktop --disable-notify_desktop
1129 %endif
1130
1131 %if %{with_notify_email}
1132 %define _with_notify_email --enable-notify_email
1133 %else
1134 %define _with_notify_email --disable-notify_email --without-libesmpt
1135 %endif
1136
1137 %if %{with_ntpd}
1138 %define _with_ntpd --enable-ntpd
1139 %else
1140 %define _with_ntpd --disable-ntpd
1141 %endif
1142
1143 %if %{with_numa}
1144 %define _with_numa --enable-numa
1145 %else
1146 %define _with_numa --disable-numa
1147 %endif
1148
1149 %if %{with_nut}
1150 %define _with_nut --enable-nut
1151 %else
1152 %define _with_nut --disable-nut
1153 %endif
1154
1155 %if %{with_olsrd}
1156 %define _with_olsrd --enable-olsrd
1157 %else
1158 %define _with_olsrd --disable-olsrd
1159 %endif
1160
1161 %if %{with_onewire}
1162 %define _with_onewire --enable-onewire
1163 %else
1164 %define _with_onewire --disable-onewire
1165 %endif
1166
1167 %if %{with_openvpn}
1168 %define _with_openvpn --enable-openvpn
1169 %else
1170 %define _with_openvpn --disable-openvpn
1171 %endif
1172
1173 %if %{with_oracle}
1174 %define _with_oracle --enable-oracle
1175 %else
1176 %define _with_oracle --disable-oracle
1177 %endif
1178
1179 %if %{with_perl}
1180 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
1181 %else
1182 %define _with_perl --disable-perl --without-libperl
1183 %endif
1184
1185 %if %{with_pf}
1186 %define _with_pf --enable-pf
1187 %else
1188 %define _with_pf --disable-pf
1189 %endif
1190
1191 %if %{with_pinba}
1192 %define _with_pinba --enable-pinba
1193 %else
1194 %define _with_pinba --disable-pinba
1195 %endif
1196
1197 %if %{with_ping}
1198 %define _with_ping --enable-ping
1199 %else
1200 %define _with_ping --disable-ping
1201 %endif
1202
1203 %if %{with_postgresql}
1204 %define _with_postgresql --enable-postgresql
1205 %else
1206 %define _with_postgresql --disable-postgresql
1207 %endif
1208
1209 %if %{with_powerdns}
1210 %define _with_powerdns --enable-powerdns
1211 %else
1212 %define _with_powerdns --disable-powerdns
1213 %endif
1214
1215 %if %{with_processes}
1216 %define _with_processes --enable-processes
1217 %else
1218 %define _with_processes --disable-processes
1219 %endif
1220
1221 %if %{with_protocols}
1222 %define _with_protocols --enable-protocols
1223 %else
1224 %define _with_protocols --disable-protocols
1225 %endif
1226
1227 %if %{with_python}
1228 %if 0%{?rhel} >= 6
1229 %define _with_python --enable-python
1230 %else
1231 %define _with_python --enable-python --with-python=%{_bindir}/python2.6
1232 %endif
1233 %else
1234 %define _with_python --disable-python
1235 %endif
1236
1237 %if %{with_redis}
1238 %define _with_redis --enable-redis
1239 %else
1240 %define _with_redis --disable-redis
1241 %endif
1242
1243 %if %{with_routeros}
1244 %define _with_routeros --enable-routeros
1245 %else
1246 %define _with_routeros --disable-routeros
1247 %endif
1248
1249 %if %{with_rrdcached}
1250 %define _with_rrdcached --enable-rrdcached
1251 %else
1252 %define _with_rrdcached --disable-rrdcached
1253 %endif
1254
1255 %if %{with_rrdtool}
1256 %define _with_rrdtool --enable-rrdtool
1257 %else
1258 %define _with_rrdtool --disable-rrdtool
1259 %endif
1260
1261 %if %{with_sensors}
1262 %define _with_sensors --enable-sensors
1263 %else
1264 %define _with_sensors --disable-sensors
1265 %endif
1266
1267 %if %{with_serial}
1268 %define _with_serial --enable-serial
1269 %else
1270 %define _with_serial --disable-serial
1271 %endif
1272
1273 %if %{with_sigrok}
1274 %define _with_sigrok --enable-sigrok
1275 %else
1276 %define _with_sigrok --disable-sigrok
1277 %endif
1278
1279 %if %{with_snmp}
1280 %define _with_snmp --enable-snmp
1281 %else
1282 %define _with_snmp --disable-snmp
1283 %endif
1284
1285 %if %{with_statsd}
1286 %define _with_statsd --enable-statsd
1287 %else
1288 %define _with_statsd --disable-statsd
1289 %endif
1290
1291 %if %{with_swap}
1292 %define _with_swap --enable-swap
1293 %else
1294 %define _with_swap --disable-swap
1295 %endif
1296
1297 %if %{with_syslog}
1298 %define _with_syslog --enable-syslog
1299 %else
1300 %define _with_syslog --disable-syslog
1301 %endif
1302
1303 %if %{with_table}
1304 %define _with_table --enable-table
1305 %else
1306 %define _with_table --disable-table
1307 %endif
1308
1309 %if %{with_tail}
1310 %define _with_tail --enable-tail
1311 %else
1312 %define _with_tail --disable-tail
1313 %endif
1314
1315 %if %{with_tail_csv}
1316 %define _with_tail_csv --enable-tail_csv
1317 %else
1318 %define _with_tail_csv --disable-tail_csv
1319 %endif
1320
1321 %if %{with_tape}
1322 %define _with_tape --enable-tape
1323 %else
1324 %define _with_tape --disable-tape
1325 %endif
1326
1327 %if %{with_tcpconns}
1328 %define _with_tcpconns --enable-tcpconns
1329 %else
1330 %define _with_tcpconns --disable-tcpconns
1331 %endif
1332
1333 %if %{with_teamspeak2}
1334 %define _with_teamspeak2 --enable-teamspeak2
1335 %else
1336 %define _with_teamspeak2 --disable-teamspeak2
1337 %endif
1338
1339 %if %{with_ted}
1340 %define _with_ted --enable-ted
1341 %else
1342 %define _with_ted --disable-ted
1343 %endif
1344
1345 %if %{with_thermal}
1346 %define _with_thermal --enable-thermal
1347 %else
1348 %define _with_thermal --disable-thermal
1349 %endif
1350
1351 %if %{with_threshold}
1352 %define _with_threshold --enable-threshold
1353 %else
1354 %define _with_threshold --disable-threshold
1355 %endif
1356
1357 %if %{with_tokyotyrant}
1358 %define _with_tokyotyrant --enable-tokyotyrant
1359 %else
1360 %define _with_tokyotyrant --disable-tokyotyrant
1361 %endif
1362
1363 %if %{with_unixsock}
1364 %define _with_unixsock --enable-unixsock
1365 %else
1366 %define _with_unixsock --disable-unixsock
1367 %endif
1368
1369 %if %{with_uptime}
1370 %define _with_uptime --enable-uptime
1371 %else
1372 %define _with_uptime --disable-uptime
1373 %endif
1374
1375 %if %{with_users}
1376 %define _with_users --enable-users
1377 %else
1378 %define _with_users --disable-users
1379 %endif
1380
1381 %if %{with_uuid}
1382 %define _with_uuid --enable-uuid
1383 %else
1384 %define _with_uuid --disable-uuid
1385 %endif
1386
1387 %if %{with_varnish}
1388 %define _with_varnish --enable-varnish
1389 %else
1390 %define _with_varnish --disable-varnish
1391 %endif
1392
1393 %if %{with_vmem}
1394 %define _with_vmem --enable-vmem
1395 %else
1396 %define _with_vmem --disable-vmem
1397 %endif
1398
1399 %if %{with_vserver}
1400 %define _with_vserver --enable-vserver
1401 %else
1402 %define _with_vserver --disable-vserver
1403 %endif
1404
1405 %if %{with_wireless}
1406 %define _with_wireless --enable-wireless
1407 %else
1408 %define _with_wireless --disable-wireless
1409 %endif
1410
1411 %if %{with_write_graphite}
1412 %define _with_write_graphite --enable-write_graphite
1413 %else
1414 %define _with_write_graphite --disable-write_graphite
1415 %endif
1416
1417 %if %{with_write_http}
1418 %define _with_write_http --enable-write_http
1419 %else
1420 %define _with_write_http --disable-write_http
1421 %endif
1422
1423 %if %{with_write_kafka}
1424 %define _with_write_kafka --enable-write_kafka
1425 %else
1426 %define _with_write_kafka --disable-write_kafka
1427 %endif
1428
1429 %if %{with_write_mongodb}
1430 %define _with_write_mongodb --enable-write_mongodb
1431 %else
1432 %define _with_write_mongodb --disable-write_mongodb --without-libmongoc
1433 %endif
1434
1435 %if %{with_write_redis}
1436 %define _with_write_redis --enable-write_redis
1437 %else
1438 %define _with_write_redis --disable-write_redis --without-libcredis
1439 %endif
1440
1441 %if %{with_write_riemann}
1442 %define _with_write_riemann --enable-write_riemann
1443 %else
1444 %define _with_write_riemann --disable-write_riemann
1445 %endif
1446
1447 %if %{with_write_tsdb}
1448 %define _with_write_tsdb --enable-write_tsdb
1449 %else
1450 %define _with_write_tsdb --disable-write_tsdb
1451 %endif
1452
1453 %if %{with_xmms}
1454 %define _with_xmms --enable-xmms
1455 %else
1456 %define _with_xmms --disable-xmms
1457 %endif
1458
1459 %if %{with_zfs_arc}
1460 %define _with_zfs_arc --enable-zfs_arc
1461 %else
1462 %define _with_zfs_arc --disable-zfs_arc
1463 %endif
1464
1465 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1466         --disable-static \
1467         --without-included-ltdl \
1468         --enable-all-plugins=yes \
1469         --enable-match_empty_counter \
1470         --enable-match_hashed \
1471         --enable-match_regex \
1472         --enable-match_timediff \
1473         --enable-match_value \
1474         --enable-target_notification \
1475         --enable-target_replace \
1476         --enable-target_scale \
1477         --enable-target_set \
1478         --enable-target_v5upgrade \
1479         %{?_with_aggregation} \
1480         %{?_with_amqp} \
1481         %{?_with_apache} \
1482         %{?_with_apcups} \
1483         %{?_with_apple_sensors} \
1484         %{?_with_aquaero} \
1485         %{?_with_ascent} \
1486         %{?_with_barometer} \
1487         %{?_with_battery} \
1488         %{?_with_bind} \
1489         %{?_with_cgroups} \
1490         %{?_with_conntrack} \
1491         %{?_with_contextswitch} \
1492         %{?_with_cpu} \
1493         %{?_with_cpufreq} \
1494         %{?_with_csv} \
1495         %{?_with_curl} \
1496         %{?_with_curl_json} \
1497         %{?_with_curl_xml} \
1498         %{?_with_dbi} \
1499         %{?_with_df} \
1500         %{?_with_disk} \
1501         %{?_with_dns} \
1502         %{?_with_drbd} \
1503         %{?_with_email} \
1504         %{?_with_entropy} \
1505         %{?_with_ethstat} \
1506         %{?_with_exec} \
1507         %{?_with_filecount} \
1508         %{?_with_fscache} \
1509         %{?_with_gmond} \
1510         %{?_with_hddtemp} \
1511         %{?_with_interface} \
1512         %{?_with_ipmi} \
1513         %{?_with_iptables} \
1514         %{?_with_ipvs} \
1515         %{?_with_java} \
1516         %{?_with_virt} \
1517         %{?_with_log_logstash} \
1518         %{?_with_lpar} \
1519         %{?_with_lvm} \
1520         %{?_with_memcachec} \
1521         %{?_with_mic} \
1522         %{?_with_modbus} \
1523         %{?_with_multimeter} \
1524         %{?_with_mysql} \
1525         %{?_with_netapp} \
1526         %{?_with_netlink} \
1527         %{?_with_nginx} \
1528         %{?_with_notify_desktop} \
1529         %{?_with_notify_email} \
1530         %{?_with_nut} \
1531         %{?_with_onewire} \
1532         %{?_with_oracle} \
1533         %{?_with_perl} \
1534         %{?_with_pf} \
1535         %{?_with_pinba} \
1536         %{?_with_ping} \
1537         %{?_with_postgresql} \
1538         %{?_with_python} \
1539         %{?_with_redis} \
1540         %{?_with_routeros} \
1541         %{?_with_rrdcached} \
1542         %{?_with_rrdtool} \
1543         %{?_with_sensors} \
1544         %{?_with_sigrok} \
1545         %{?_with_snmp} \
1546         %{?_with_tape} \
1547         %{?_with_tokyotyrant} \
1548         %{?_with_varnish} \
1549         %{?_with_write_http} \
1550         %{?_with_write_kafka} \
1551         %{?_with_write_mongodb} \
1552         %{?_with_write_redis} \
1553         %{?_with_xmms} \
1554         %{?_with_zfs_arc} \
1555         %{?_with_irq} \
1556         %{?_with_load} \
1557         %{?_with_logfile} \
1558         %{?_with_madwifi} \
1559         %{?_with_mbmon} \
1560         %{?_with_md} \
1561         %{?_with_memcached} \
1562         %{?_with_memory} \
1563         %{?_with_network} \
1564         %{?_with_nfs} \
1565         %{?_with_ntpd} \
1566         %{?_with_numa} \
1567         %{?_with_olsrd} \
1568         %{?_with_openvpn} \
1569         %{?_with_powerdns} \
1570         %{?_with_processes} \
1571         %{?_with_protocols} \
1572         %{?_with_serial} \
1573         %{?_with_statsd} \
1574         %{?_with_swap} \
1575         %{?_with_syslog} \
1576         %{?_with_table} \
1577         %{?_with_tail} \
1578         %{?_with_tail_csv} \
1579         %{?_with_tcpconns} \
1580         %{?_with_teamspeak2} \
1581         %{?_with_ted} \
1582         %{?_with_thermal} \
1583         %{?_with_threshold} \
1584         %{?_with_unixsock} \
1585         %{?_with_uptime} \
1586         %{?_with_users} \
1587         %{?_with_uuid} \
1588         %{?_with_vmem} \
1589         %{?_with_vserver} \
1590         %{?_with_wireless}\
1591         %{?_with_write_graphite} \
1592         %{?_with_write_http} \
1593         %{?_with_write_riemann} \
1594         %{?_with_write_tsdb}
1595
1596
1597 %{__make} %{?_smp_mflags}
1598
1599
1600 %install
1601 rm -rf %{buildroot}
1602 %{__make} install DESTDIR=%{buildroot}
1603 %{__install} -Dp -m 0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1604 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1605 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
1606 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1607
1608 %{__mkdir} -p %{buildroot}%{_localstatedir}/www
1609 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
1610
1611 %{__cp} -a contrib/collection3 %{buildroot}%{_localstatedir}/www
1612 %{__cp} -a contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1613
1614 %{__cp} -a contrib/php-collection %{buildroot}%{_localstatedir}/www
1615 %{__cp} -a contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1616
1617 ### Clean up docs
1618 find contrib/ -type f -exec %{__chmod} a-x {} \;
1619 # *.la files shouldn't be distributed.
1620 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1621
1622 # Move the Perl examples to a separate directory.
1623 mkdir perl-examples
1624 find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
1625
1626 # Remove Perl hidden .packlist files.
1627 find %{buildroot} -type f -name .packlist -delete
1628 # Remove Perl temporary file perllocal.pod
1629 find %{buildroot} -type f -name perllocal.pod -delete
1630
1631 %if ! %{with_java}
1632 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
1633 %endif
1634
1635 %if ! %{with_perl}
1636 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
1637 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
1638 rm -fr perl-examples/
1639 rm -fr %{buildroot}/usr/lib/perl5/
1640 %endif
1641
1642 %if ! %{with_python}
1643 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
1644 %endif
1645
1646 %if ! %{with_snmp}
1647 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
1648 %endif
1649
1650
1651 %clean
1652 rm -rf %{buildroot}
1653
1654 %post
1655 /sbin/chkconfig --add collectd
1656
1657 %preun
1658 if [ $1 -eq 0 ]; then
1659         /sbin/service collectd stop &>/dev/null
1660         /sbin/chkconfig --del collectd
1661 fi
1662
1663 %postun
1664 if [ $1 -ge 1 ]; then
1665         /sbin/service collectd condrestart &>/dev/null || :
1666 fi
1667
1668 %post -n libcollectdclient -p /sbin/ldconfig
1669 %postun -n libcollectdclient -p /sbin/ldconfig
1670
1671
1672 %files
1673 %doc AUTHORS COPYING ChangeLog README
1674 %config(noreplace) %{_sysconfdir}/collectd.conf
1675 %{_initrddir}/collectd
1676 %{_sbindir}/collectd
1677 %{_bindir}/collectd-nagios
1678 %{_bindir}/collectd-tg
1679 %{_bindir}/collectdctl
1680 %{_sbindir}/collectdmon
1681 %{_datadir}/collectd/
1682 %{_sharedstatedir}/collectd
1683 %{_mandir}/man1/collectd-nagios.1*
1684 %{_mandir}/man1/collectd.1*
1685 %{_mandir}/man1/collectdctl.1*
1686 %{_mandir}/man1/collectdmon.1*
1687 %{_mandir}/man1/collectd-tg.1*
1688 %{_mandir}/man5/collectd-email.5*
1689 %{_mandir}/man5/collectd-exec.5*
1690 %{_mandir}/man5/collectd-threshold.5*
1691 %{_mandir}/man5/collectd-unixsock.5*
1692 %{_mandir}/man5/collectd.conf.5*
1693 %{_mandir}/man5/types.db.5*
1694
1695 # all plugins bundled with the main collectd package
1696 %{_libdir}/%{name}/match_empty_counter.so
1697 %{_libdir}/%{name}/match_hashed.so
1698 %{_libdir}/%{name}/match_regex.so
1699 %{_libdir}/%{name}/match_timediff.so
1700 %{_libdir}/%{name}/match_value.so
1701 %{_libdir}/%{name}/target_notification.so
1702 %{_libdir}/%{name}/target_replace.so
1703 %{_libdir}/%{name}/target_scale.so
1704 %{_libdir}/%{name}/target_set.so
1705 %{_libdir}/%{name}/target_v5upgrade.so
1706
1707 %if %{with_aggregation}
1708 %{_libdir}/%{name}/aggregation.so
1709 %endif
1710 %if %{with_apcups}
1711 %{_libdir}/%{name}/apcups.so
1712 %endif
1713 %if %{with_battery}
1714 %{_libdir}/%{name}/battery.so
1715 %endif
1716 %if %{with_cgroups}
1717 %{_libdir}/%{name}/cgroups.so
1718 %endif
1719 %if %{with_conntrack}
1720 %{_libdir}/%{name}/conntrack.so
1721 %endif
1722 %if %{with_contextswitch}
1723 %{_libdir}/%{name}/contextswitch.so
1724 %endif
1725 %if %{with_cpu}
1726 %{_libdir}/%{name}/cpu.so
1727 %endif
1728 %if %{with_cpufreq}
1729 %{_libdir}/%{name}/cpufreq.so
1730 %endif
1731 %if %{with_csv}
1732 %{_libdir}/%{name}/csv.so
1733 %endif
1734 %if %{with_df}
1735 %{_libdir}/%{name}/df.so
1736 %endif
1737 %if %{with_drbd}
1738 %{_libdir}/%{name}/drbd.so
1739 %endif
1740 %if %{with_ethstat}
1741 %{_libdir}/%{name}/ethstat.so
1742 %endif
1743 %if %{with_entropy}
1744 %{_libdir}/%{name}/entropy.so
1745 %endif
1746 %if %{with_exec}
1747 %{_libdir}/%{name}/exec.so
1748 %endif
1749 %if %{with_filecount}
1750 %{_libdir}/%{name}/filecount.so
1751 %endif
1752 %if %{with_fscache}
1753 %{_libdir}/%{name}/fscache.so
1754 %endif
1755 %if %{with_interface}
1756 %{_libdir}/%{name}/interface.so
1757 %endif
1758 %if %{with_ipvs}
1759 %{_libdir}/%{name}/ipvs.so
1760 %endif
1761 %if %{with_irq}
1762 %{_libdir}/%{name}/irq.so
1763 %endif
1764 %if %{with_load}
1765 %{_libdir}/%{name}/load.so
1766 %endif
1767 %if %{with_logfile}
1768 %{_libdir}/%{name}/logfile.so
1769 %endif
1770 %if %{with_madwifi}
1771 %{_libdir}/%{name}/madwifi.so
1772 %endif
1773 %if %{with_mbmon}
1774 %{_libdir}/%{name}/mbmon.so
1775 %endif
1776 %if %{with_md}
1777 %{_libdir}/%{name}/md.so
1778 %endif
1779 %if %{with_memcached}
1780 %{_libdir}/%{name}/memcached.so
1781 %endif
1782 %if %{with_memory}
1783 %{_libdir}/%{name}/memory.so
1784 %endif
1785 %if %{with_multimeter}
1786 %{_libdir}/%{name}/multimeter.so
1787 %endif
1788 %if %{with_network}
1789 %{_libdir}/%{name}/network.so
1790 %endif
1791 %if %{with_nfs}
1792 %{_libdir}/%{name}/nfs.so
1793 %endif
1794 %if %{with_ntpd}
1795 %{_libdir}/%{name}/ntpd.so
1796 %endif
1797 %if %{with_numa}
1798 %{_libdir}/%{name}/numa.so
1799 %endif
1800 %if %{with_openvpn}
1801 %{_libdir}/%{name}/openvpn.so
1802 %endif
1803 %if %{with_olsrd}
1804 %{_libdir}/%{name}/olsrd.so
1805 %endif
1806 %if %{with_powerdns}
1807 %{_libdir}/%{name}/powerdns.so
1808 %endif
1809 %if %{with_processes}
1810 %{_libdir}/%{name}/processes.so
1811 %endif
1812 %if %{with_protocols}
1813 %{_libdir}/%{name}/protocols.so
1814 %endif
1815 %if %{with_serial}
1816 %{_libdir}/%{name}/serial.so
1817 %endif
1818 %if %{with_statsd}
1819 %{_libdir}/%{name}/statsd.so
1820 %endif
1821 %if %{with_swap}
1822 %{_libdir}/%{name}/swap.so
1823 %endif
1824 %if %{with_syslog}
1825 %{_libdir}/%{name}/syslog.so
1826 %endif
1827 %if %{with_table}
1828 %{_libdir}/%{name}/table.so
1829 %endif
1830 %if %{with_tail}
1831 %{_libdir}/%{name}/tail.so
1832 %endif
1833 %if %{with_tail_csv}
1834 %{_libdir}/%{name}/tail_csv.so
1835 %endif
1836 %if %{with_tcpconns}
1837 %{_libdir}/%{name}/tcpconns.so
1838 %endif
1839 %if %{with_teamspeak2}
1840 %{_libdir}/%{name}/teamspeak2.so
1841 %endif
1842 %if %{with_ted}
1843 %{_libdir}/%{name}/ted.so
1844 %endif
1845 %if %{with_thermal}
1846 %{_libdir}/%{name}/thermal.so
1847 %endif
1848 %if %{with_load}
1849 %{_libdir}/%{name}/threshold.so
1850 %endif
1851 %if %{with_unixsock}
1852 %{_libdir}/%{name}/unixsock.so
1853 %endif
1854 %if %{with_uptime}
1855 %{_libdir}/%{name}/uptime.so
1856 %endif
1857 %if %{with_users}
1858 %{_libdir}/%{name}/users.so
1859 %endif
1860 %if %{with_uuid}
1861 %{_libdir}/%{name}/uuid.so
1862 %endif
1863 %if %{with_vmem}
1864 %{_libdir}/%{name}/vmem.so
1865 %endif
1866 %if %{with_vserver}
1867 %{_libdir}/%{name}/vserver.so
1868 %endif
1869 %if %{with_wireless}
1870 %{_libdir}/%{name}/wireless.so
1871 %endif
1872 %if %{with_write_graphite}
1873 %{_libdir}/%{name}/write_graphite.so
1874 %endif
1875 %if %{with_write_tsdb}
1876 %{_libdir}/%{name}/write_tsdb.so
1877 %endif
1878 %if %{with_zfs_arc}
1879 %{_libdir}/%{name}/zfs_arc.so
1880 %endif
1881
1882 %files -n libcollectdclient-devel
1883 %{_includedir}/collectd/client.h
1884 %{_includedir}/collectd/network.h
1885 %{_includedir}/collectd/network_buffer.h
1886 %{_includedir}/collectd/lcc_features.h
1887 %{_libdir}/pkgconfig/libcollectdclient.pc
1888
1889 %files -n libcollectdclient
1890 %{_libdir}/libcollectdclient.so
1891 %{_libdir}/libcollectdclient.so.*
1892
1893 %if %{with_amqp}
1894 %files amqp
1895 %{_libdir}/%{name}/amqp.so
1896 %endif
1897
1898 %if %{with_apache}
1899 %files apache
1900 %{_libdir}/%{name}/apache.so
1901 %endif
1902
1903 %if %{with_aquaero}
1904 %files aquaero
1905 %{_libdir}/%{name}/aquaero.so
1906 %endif
1907
1908 %if %{with_ascent}
1909 %files ascent
1910 %{_libdir}/%{name}/ascent.so
1911 %endif
1912
1913 %if %{with_barometer}
1914 %files barometer
1915 %{_libdir}/%{name}/barometer.so
1916 %endif
1917
1918 %if %{with_bind}
1919 %files bind
1920 %{_libdir}/%{name}/bind.so
1921 %endif
1922
1923 %if %{with_curl}
1924 %files curl
1925 %{_libdir}/%{name}/curl.so
1926 %endif
1927
1928 %if %{with_curl_json}
1929 %files curl_json
1930 %{_libdir}/%{name}/curl_json.so
1931 %endif
1932
1933 %if %{with_curl_xml}
1934 %files curl_xml
1935 %{_libdir}/%{name}/curl_xml.so
1936 %endif
1937
1938 %if %{with_disk}
1939 %files disk
1940 %{_libdir}/%{name}/disk.so
1941 %endif
1942
1943 %if %{with_dns}
1944 %files dns
1945 %{_libdir}/%{name}/dns.so
1946 %endif
1947
1948 %if %{with_dbi}
1949 %files dbi
1950 %{_libdir}/%{name}/dbi.so
1951 %endif
1952
1953 %if %{with_email}
1954 %files email
1955 %{_libdir}/%{name}/email.so
1956 %endif
1957
1958 %if %{with_gmond}
1959 %files gmond
1960 %{_libdir}/%{name}/gmond.so
1961 %endif
1962
1963 %if %{with_hddtemp}
1964 %files hddtemp
1965 %{_libdir}/%{name}/hddtemp.so
1966 %endif
1967
1968 %if %{with_ipmi}
1969 %files ipmi
1970 %{_libdir}/%{name}/ipmi.so
1971 %endif
1972
1973 %if %{with_iptables}
1974 %files iptables
1975 %{_libdir}/%{name}/iptables.so
1976 %endif
1977
1978 %if %{with_java}
1979 %files java
1980 %{_prefix}/share/collectd/java/collectd-api.jar
1981 %{_prefix}/share/collectd/java/generic-jmx.jar
1982 %{_libdir}/%{name}/java.so
1983 %{_mandir}/man5/collectd-java.5*
1984 %endif
1985
1986 %if %{with_virt}
1987 %files virt
1988 %{_libdir}/%{name}/virt.so
1989 %endif
1990
1991 %if %{with_log_logstash}
1992 %files log_logstash
1993 %{_libdir}/%{name}/log_logstash.so
1994 %endif
1995
1996 %if %{with_lvm}
1997 %files lvm
1998 %{_libdir}/%{name}/lvm.so
1999 %endif
2000
2001 %if %{with_memcachec}
2002 %files memcachec
2003 %{_libdir}/%{name}/memcachec.so
2004 %endif
2005
2006 %if %{with_mic}
2007 %files mic
2008 %{_libdir}/%{name}/mic.so
2009 %endif
2010
2011 %if %{with_modbus}
2012 %files modbus
2013 %{_libdir}/%{name}/modbus.so
2014 %endif
2015
2016 %if %{with_mysql}
2017 %files mysql
2018 %{_libdir}/%{name}/mysql.so
2019 %endif
2020
2021 %if %{with_netlink}
2022 %files netlink
2023 %{_libdir}/%{name}/netlink.so
2024 %endif
2025
2026 %if %{with_nginx}
2027 %files nginx
2028 %{_libdir}/%{name}/nginx.so
2029 %endif
2030
2031 %if %{with_notify_desktop}
2032 %files notify_desktop
2033 %{_libdir}/%{name}/notify_desktop.so
2034 %endif
2035
2036 %if %{with_notify_email}
2037 %files notify_email
2038 %{_libdir}/%{name}/notify_email.so
2039 %endif
2040
2041 %if %{with_nut}
2042 %files nut
2043 %{_libdir}/%{name}/nut.so
2044 %endif
2045
2046 %if %{with_perl}
2047 %files perl
2048 %doc perl-examples/*
2049 %{perl_vendorlib}/Collectd.pm
2050 %{perl_vendorlib}/Collectd/
2051 %{_mandir}/man3/Collectd::Unixsock.3pm*
2052 %{_mandir}/man5/collectd-perl.5*
2053 %{_libdir}/%{name}/perl.so
2054 %endif
2055
2056 %if %{with_pinba}
2057 %files pinba
2058 %{_libdir}/%{name}/pinba.so
2059 %endif
2060
2061 %if %{with_ping}
2062 %files ping
2063 %{_libdir}/%{name}/ping.so
2064 %endif
2065
2066 %if %{with_postgresql}
2067 %files postgresql
2068 %{_prefix}/share/collectd/postgresql_default.conf
2069 %{_libdir}/%{name}/postgresql.so
2070 %endif
2071
2072 %if %{with_python}
2073 %files python
2074 %{_mandir}/man5/collectd-python*
2075 %{_libdir}/%{name}/python.so
2076 %endif
2077
2078 %if %{with_redis}
2079 %files redis
2080 %{_libdir}/%{name}/redis.so
2081 %endif
2082
2083 %if %{with_rrdcached}
2084 %files rrdcached
2085 %{_libdir}/%{name}/rrdcached.so
2086 %endif
2087
2088 %if %{with_rrdtool}
2089 %files rrdtool
2090 %{_libdir}/%{name}/rrdtool.so
2091 %endif
2092
2093 %if %{with_sensors}
2094 %files sensors
2095 %{_libdir}/%{name}/sensors.so
2096 %endif
2097
2098 %if %{with_sigrok}
2099 %files sigrok
2100 %{_libdir}/%{name}/sigrok.so
2101 %endif
2102
2103 %if %{with_snmp}
2104 %files snmp
2105 %{_mandir}/man5/collectd-snmp.5*
2106 %{_libdir}/%{name}/snmp.so
2107 %endif
2108
2109 %if %{with_varnish}
2110 %files varnish
2111 %{_libdir}/%{name}/varnish.so
2112 %endif
2113
2114 %if %{with_write_http}
2115 %files write_http
2116 %{_libdir}/%{name}/write_http.so
2117 %endif
2118
2119 %if %{with_write_kafka}
2120 %files write_kafka
2121 %{_libdir}/%{name}/write_kafka.so
2122 %endif
2123
2124 %if %{with_write_redis}
2125 %files write_redis
2126 %{_libdir}/%{name}/write_redis.so
2127 %endif
2128
2129 %if %{with_write_riemann}
2130 %files write_riemann
2131 %{_libdir}/%{name}/write_riemann.so
2132 %endif
2133
2134 %files collection3
2135 %{_localstatedir}/www/collection3
2136 %{_sysconfdir}/httpd/conf.d/collection3.conf
2137
2138 %files php-collection
2139 %{_localstatedir}/www/php-collection
2140 %{_sysconfdir}/httpd/conf.d/php-collection.conf
2141
2142 %files contrib
2143 %doc contrib/
2144
2145 %changelog
2146 # * TODO 5.5.0-1
2147 # - New upstream version
2148 # - New plugins enabled by default: drbd, log_logstash, write_tsdb
2149 # - New plugins disabled by default: barometer, write_kafka
2150 # - Enable zfs_arc, now supported on Linux
2151 # - Install disk plugin in an dedicated package, as it depends on libudev
2152
2153 * Mon Aug 19 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.4.0-1
2154 - New upstream version
2155 - Build netlink plugin by default
2156 - Enable cgroups, lvm and statsd plugins
2157 - Enable (but don't build by default) mic, aquaero and sigrok plugins
2158
2159 * Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
2160 - New upstream version
2161 - Added RHEL5 support:
2162   * conditionally disable plugins not building on this platform
2163   * add/specify some build dependencies and options
2164   * replace some RPM macros not available on this platform
2165 - Removed duplicate --enable-aggregation
2166 - Added some comments & usage examples
2167 - Replaced a couple of "Buildrequires" by "BuildRequires"
2168 - Enabled modbus plugin on RHEL6
2169 - Enabled netlink plugin on RHEL6 and RHEL7
2170 - Allow perl plugin to build on RHEL5
2171 - Add support for RHEL7
2172
2173 * Wed Apr 10 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.0-1
2174 - New upstream version
2175 - Enabled write_riemann plugin
2176 - Enabled tail_csv plugin
2177 - Installed collectd-tc manpage
2178
2179 * Fri Jan 11 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-3
2180 - remove dependency on libstatgrab, which isn't required on linux
2181
2182 * Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
2183 - collection3 and php-collection viewers are now in separate packages
2184
2185 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
2186 - New upstream version
2187 - Enabled aggregation plugin
2188 - Installed collectd-tc
2189 - Added network.h and network_buffer.h to libcollectdclient-devel
2190 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
2191 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
2192 - Added rrdcached and redis plugin descriptions
2193 - Mentioned new pf plugin in disabled plugins list
2194
2195 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
2196 - Follow Fedora Packaging Guidelines in java subpackage
2197
2198 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
2199 - Move perl stuff to perl_vendorlib
2200 - Replace hardcoded paths with macros
2201 - Remove unnecessary Requires
2202 - Removed .a and .la files
2203 - Some other small cleanups
2204
2205 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
2206 - New upstream version
2207 - Changes to support 5.1.0
2208 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
2209 - All plugins requiring external libraries are now shipped in separate
2210   packages.
2211 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
2212   the build process + ensure build deps are installed.
2213 - Dropped per-plugin configuration files, as they tend to diverge from upstream
2214   defaults.
2215 - Moved perl stuff to /usr/share/perl5/
2216 - Don't alter Interval and ReadThreads by default, let the user change this
2217   himself.
2218 - Initscript improvements:
2219   * checks configuration before (re)starting, based on debian's initscript
2220   * use /etc/sysconfig instdead of /etc/default
2221   * include optional $ARGS in arguments passed to collectd.
2222 - Drop collection.cgi from main package, as it's been obsoleted by collection3
2223 - Moved contrib/ to its own package, to avoid cluttering the main package with
2224   non-essential stuff.
2225 - Replaced BuildPrereq by BuildRequires
2226
2227 * Mon Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
2228 - New upstream version
2229 - Changes to support 5.0.1
2230
2231 * Mon Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
2232 - New upstream version
2233 - Changes to support 4.9.0
2234 - Added support for Java/GenericJMX plugin
2235
2236 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
2237 - New upstream version
2238 - Changes to support 4.3.1
2239 - Added More Prereqs to support more plugins
2240 - Added support for perl plugin
2241
2242 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
2243 - New upstream version
2244
2245 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
2246 - New major releas
2247 - Changes to support 4.0.5
2248
2249 * Thu Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
2250 - fixed spec file to build correctly on fedora core
2251 - added improved init.d script to work with chkconfig
2252 - added %%post and %%postun to call chkconfig automatically
2253
2254 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
2255 - New upstream version
2256
2257 * Sun Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
2258 - New upstream version
2259
2260 * Thu Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
2261 - New upstream version
2262
2263 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
2264 - New upstream version
2265
2266 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
2267 - New upstream version
2268
2269 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
2270 - New upstream version
2271
2272 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
2273 - New upstream version
2274 - Added the `apache' package.
2275
2276 * Tue Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
2277 - New upstream version
2278
2279 * Mon Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
2280 - New upstream version
2281
2282 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
2283 - New upstream version
2284
2285 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
2286 - Include `tape.so' so the build doesn't terminate because of missing files..
2287 - New upstream version
2288
2289 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
2290 - New upstream version
2291
2292 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
2293 - New upstream version
2294 - Removed the extra `hddtemp' package
2295
2296 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
2297 - New upstream version
2298
2299 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
2300 - New upstream version
2301
2302 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
2303 - New upstream version
2304 - Added config file, `collectd.conf(5)', `df.so'
2305 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
2306
2307 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
2308 - New upstream version
2309
2310 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
2311 - New upstream version
2312
2313 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
2314 - New upstream version
2315
2316 * Wed Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
2317 - New upstream version
2318 - Added statement to remove the `*.la' files. This fixes a problem when
2319   `Unpackaged files terminate build' is in effect.
2320 - Added `processes.so*' to the main package
2321
2322 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
2323 - New upstream version
2324 - Added package `collectd-hddtemp'
2325
2326 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
2327 - New upstream version
2328 - Split the package into `collectd' and `collectd-sensors'
2329
2330 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
2331 - New upstream version
2332
2333 * Sat Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
2334 - New upstream version
2335
2336 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
2337 - New upstream version
2338
2339 * Thu Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
2340 - New upstream version
2341
2342 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
2343 - New upstream version
2344
2345 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
2346 - New upstream version
2347
2348 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
2349 - New upstream version
2350
2351 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
2352 - New upstream version
2353
2354 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
2355 - Built on RedHat 7.3