1 %global _hardened_build 1
4 %define with_aggregation 0%{!?_without_aggregation:1}
5 %define with_amqp 0%{!?_without_amqp:1}
6 %define with_apache 0%{!?_without_apache:1}
7 %define with_apcups 0%{!?_without_apcups:1}
8 %define with_ascent 0%{!?_without_ascent:1}
9 %define with_battery 0%{!?_without_battery:1}
10 %define with_bind 0%{!?_without_bind:1}
11 %define with_conntrack 0%{!?_without_conntrack:1}
12 %define with_contextswitch 0%{!?_without_contextswitch:1}
13 %define with_cpu 0%{!?_without_cpu:1}
14 %define with_cpufreq 0%{!?_without_cpufreq:1}
15 %define with_csv 0%{!?_without_csv:1}
16 %define with_curl 0%{!?_without_curl:1}
17 %define with_curl_json 0%{!?_without_curl_json:1}
18 %define with_curl_xml 0%{!?_without_curl_xml:1}
19 %define with_dbi 0%{!?_without_dbi:1}
20 %define with_df 0%{!?_without_df:1}
21 %define with_disk 0%{!?_without_disk:1}
22 %define with_dns 0%{!?_without_dns:1}
23 %define with_email 0%{!?_without_email:1}
24 %define with_entropy 0%{!?_without_entropy:1}
25 %define with_ethstat 0%{!?_without_ethstat:1}
26 %define with_exec 0%{!?_without_exec:1}
27 %define with_filecount 0%{!?_without_filecount:1}
28 %define with_fscache 0%{!?_without_fscache:1}
29 %define with_gmond 0%{!?_without_gmond:1}
30 %define with_hddtemp 0%{!?_without_hddtemp:1}
31 %define with_interface 0%{!?_without_interface:1}
32 %define with_ipmi 0%{!?_without_ipmi:1}
33 %define with_iptables 0%{!?_without_iptables:1}
34 %define with_ipvs 0%{!?_without_ipvs:1}
35 %define with_irq 0%{!?_without_irq:1}
36 %define with_java 0%{!?_without_java:1}
37 %define with_libvirt 0%{!?_without_libvirt:1}
38 %define with_load 0%{!?_without_load:1}
39 %define with_logfile 0%{!?_without_logfile:1}
40 %define with_madwifi 0%{!?_without_madwifi:1}
41 %define with_mbmon 0%{!?_without_mbmon:1}
42 %define with_md 0%{!?_without_md:1}
43 %define with_memcachec 0%{!?_without_memcachec:1}
44 %define with_memcached 0%{!?_without_memcached:1}
45 %define with_memory 0%{!?_without_memory:1}
46 %define with_multimeter 0%{!?_without_multimeter:1}
47 %define with_mysql 0%{!?_without_mysql:1}
48 %define with_network 0%{!?_without_network:1}
49 %define with_nfs 0%{!?_without_nfs:1}
50 %define with_nginx 0%{!?_without_nginx:1}
51 %define with_notify_desktop 0%{!?_without_notify_desktop:1}
52 %define with_notify_email 0%{!?_without_notify_email:1}
53 %define with_ntpd 0%{!?_without_ntpd:1}
54 %define with_numa 0%{!?_without_numa:1}
55 %define with_nut 0%{!?_without_nut:1}
56 %define with_olsrd 0%{!?_without_olsrd:1}
57 %define with_openvpn 0%{!?_without_openvpn:1}
58 %define with_perl 0%{!?_without_perl:1}
59 %define with_pinba 0%{!?_without_pinba:1}
60 %define with_ping 0%{!?_without_ping:1}
61 %define with_postgresql 0%{!?_without_postgresql:1}
62 %define with_powerdns 0%{!?_without_powerdns:1}
63 %define with_processes 0%{!?_without_processes:1}
64 %define with_protocols 0%{!?_without_protocols:1}
65 %define with_python 0%{!?_without_python:1}
66 %define with_rrdtool 0%{!?_without_rrdtool:1}
67 %define with_sensors 0%{!?_without_sensors:1}
68 %define with_serial 0%{!?_without_serial:1}
69 %define with_snmp 0%{!?_without_snmp:1}
70 %define with_swap 0%{!?_without_swap:1}
71 %define with_syslog 0%{!?_without_syslog:1}
72 %define with_table 0%{!?_without_table:1}
73 %define with_tail 0%{!?_without_tail:1}
74 %define with_tcpconns 0%{!?_without_tcpconns:1}
75 %define with_teamspeak2 0%{!?_without_teamspeak2:1}
76 %define with_ted 0%{!?_without_ted:1}
77 %define with_thermal 0%{!?_without_thermal:1}
78 %define with_threshold 0%{!?_without_threshold:1}
79 %define with_unixsock 0%{!?_without_unixsock:1}
80 %define with_uptime 0%{!?_without_uptime:1}
81 %define with_users 0%{!?_without_users:1}
82 %define with_uuid 0%{!?_without_uuid:1}
83 %define with_varnish 0%{!?_without_varnish:1}
84 %define with_vmem 0%{!?_without_vmem:1}
85 %define with_vserver 0%{!?_without_vserver:1}
86 %define with_wireless 0%{!?_without_wireless:1}
87 %define with_write_graphite 0%{!?_without_write_graphite:1}
88 %define with_write_http 0%{!?_without_write_http:1}
91 %define with_apple_sensors 0%{!?_without_apple_sensors:0}
92 %define with_lpar 0%{!?_without_lpar:0}
93 %define with_modbus 0%{!?_without_modbus:0}
94 %define with_netapp 0%{!?_without_netapp:0}
95 %define with_netlink 0%{!?_without_netlink:0}
96 %define with_onewire 0%{!?_without_onewire:0}
97 %define with_oracle 0%{!?_without_oracle:0}
98 %define with_pf 0%{!?_without_pf:0}
99 %define with_redis 0%{!?_without_redis:0}
100 %define with_routeros 0%{!?_without_routeros:0}
101 %define with_rrdcached 0%{!?_without_rrdcached:0}
102 %define with_tape 0%{!?_without_tape:0}
103 %define with_tokyotyrant 0%{!?_without_tokyotyrant:0}
104 %define with_write_mongodb 0%{!?_without_write_mongodb:0}
105 %define with_write_redis 0%{!?_without_write_redis:0}
106 %define with_xmms 0%{!?_without_xmms:0}
107 %define with_zfs_arc 0%{!?_without_zfs_arc:0}
109 Summary: Statistics collection daemon for filling RRD files
113 URL: http://collectd.org
114 Source: http://collectd.org/files/%{name}-%{version}.tar.gz
116 Group: System Environment/Daemons
117 BuildRoot: %{_tmppath}/%{name}-%{version}-root
118 BuildRequires: libgcrypt-devel, libstatgrab-devel
119 Vendor: collectd development team <collectd@verplant.org>
121 Requires(post): chkconfig
122 Requires(preun): chkconfig, initscripts
123 Requires(postun): initscripts
126 collectd is a small daemon which collects system information periodically and
127 provides mechanisms to monitor and store the values in a variety of ways. It
128 is written in C for performance. Since the daemon doesn't need to start up
129 every time it wants to update the values it's very fast and easy on the
130 system. Also, the statistics are very fine grained since the files are updated
131 every 10 seconds by default.
135 Summary: AMQP plugin for collectd
136 Group: System Environment/Daemons
137 Requires: %{name}%{?_isa} = %{version}-%{release}
138 BuildRequires: librabbitmq-devel
140 The AMQP plugin transmits or receives values collected by collectd via the
141 Advanced Message Queuing Protocol (AMQP).
146 Summary: Apache plugin for collectd
147 Group: System Environment/Daemons
148 Requires: %{name}%{?_isa} = %{version}-%{release}
149 BuildRequires: curl-devel
151 This plugin collects data provided by Apache's `mod_status'.
156 Summary: Ascent plugin for collectd
157 Group: System Environment/Daemons
158 Requires: %{name}%{?_isa} = %{version}-%{release}
159 BuildRequires: libxml2-devel, curl-devel
161 The Ascent plugin reads and parses the statistics page of Ascent, a free and
162 open-source server software for the game World of Warcraft by Blizzard
168 Summary: Bind plugin for collectd
169 Group: System Environment/Daemons
170 Requires: %{name}%{?_isa} = %{version}-%{release}
171 BuildRequires: libxml2-devel, curl-devel
173 The BIND plugin retrieves this information that's encoded in XML and provided
174 via HTTP and submits the values to collectd.
179 Summary: Curl plugin for collectd
180 Group: System Environment/Daemons
181 Requires: %{name}%{?_isa} = %{version}-%{release}
182 BuildRequires: curl-devel
184 The cURL plugin uses libcurl to read files and then parses them according to
188 %if %{with_curl_json}
190 Summary: Curl_json plugin for collectd
191 Group: System Environment/Daemons
192 Requires: %{name}%{?_isa} = %{version}-%{release}
193 Buildrequires: curl-devel, yajl-devel
194 %description curl_json
195 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
196 cURL library and parses it according to the user's configuration.
201 Summary: Curl_xml plugin for collectd
202 Group: System Environment/Daemons
203 Requires: %{name}%{?_isa} = %{version}-%{release}
204 BuildRequires: curl-devel, libxml2-devel
205 %description curl_xml
206 The cURL-XML plugin reads files using libcurl and parses it as Extensible
207 Markup Language (XML).
212 Summary: DBI plugin for collectd
213 Group: System Environment/Daemons
214 Requires: %{name}%{?_isa} = %{version}-%{release}
215 Buildrequires: libdbi-devel
217 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
218 statements on a database and read back the result.
223 Summary: DNS plugin for collectd
224 Group: System Environment/Daemons
225 Requires: %{name}%{?_isa} = %{version}-%{release}
226 Buildrequires: libpcap-devel
228 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
229 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
230 packets and collects statistics of your DNS traffic.
235 Summary: Email plugin for collectd
236 Group: System Environment/Daemons
237 Requires: %{name}%{?_isa} = %{version}-%{release}, spamassassin
239 This plugin collects data provided by spamassassin.
244 Summary: Gmond plugin for collectd
245 Group: System Environment/Daemons
246 Requires: %{name}%{?_isa} = %{version}-%{release}
247 BuildRequires: ganglia-devel
249 The gmond plugin subscribes to a Multicast group to receive data from gmond,
250 the client daemon of the Ganglia project.
255 Summary: Hddtemp plugin for collectd
256 Group: System Environment/Daemons
257 Requires: %{name}%{?_isa} = %{version}-%{release}, hddtemp
259 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
260 provided via SMART and queried by the external hddtemp daemon.
265 Summary: IPMI plugin for collectd
266 Group: System Environment/Daemons
267 Requires: %{name}%{?_isa} = %{version}-%{release}
268 BuildRequires: OpenIPMI-devel
270 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
271 using the Intelligent Platform Management Interface (IPMI).
276 Summary: IPtables plugin for collectd
277 Group: System Environment/Daemons
278 Requires: %{name}%{?_isa} = %{version}-%{release}
279 BuildRequires: iptables-devel
280 %description iptables
281 The IPtables plugin can gather statistics from your ip_tables based packet
282 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
283 the byte- and packet-counters of selected rules and submit them to collectd.
288 Summary: Java plugin for collectd
289 Group: System Environment/Daemons
290 Requires: %{name}%{?_isa} = %{version}-%{release}
291 BuildRequires: java-devel, jpackage-utils
292 Requires: java, jpackage-utils
294 This plugin for collectd allows plugins to be written in Java and executed
300 Summary: Libvirt plugin for collectd
301 Group: System Environment/Daemons
302 Requires: %{name}%{?_isa} = %{version}-%{release}
303 BuildRequires: libvirt-devel
305 This plugin collects information from virtualized guests.
308 %if %{with_memcachec}
310 Summary: Memcachec plugin for collectd
311 Group: System Environment/Daemons
312 Requires: %{name}%{?_isa} = %{version}-%{release}
313 BuildRequires: libmemcached-devel
314 %description memcachec
315 The Memcachec plugin uses libmemcached to read statistics from a Memcached
316 instance. Note that another plugin, named `memcached', exists and does a
317 similar job, without requiring the installation of libmemcached.
322 Summary: MySQL plugin for collectd
323 Group: System Environment/Daemons
324 Requires: %{name}%{?_isa} = %{version}-%{release}
325 BuildRequires: mysql-devel
327 MySQL querying plugin. This plugin provides data of issued commands, called
328 handlers and database traffic.
333 Summary: Nginx plugin for collectd
334 Group: System Environment/Daemons
335 Requires: %{name}%{?_isa} = %{version}-%{release}
336 BuildRequires: curl-devel
338 This plugin gets data provided by nginx.
341 %if %{with_notify_desktop}
342 %package notify_desktop
343 Summary: Notify_desktop plugin for collectd
344 Group: System Environment/Daemons
345 Requires: %{name}%{?_isa} = %{version}-%{release}
346 BuildRequires: libnotify-devel
347 %description notify_desktop
348 The Notify Desktop plugin uses libnotify to display notifications to the user
349 via the desktop notification specification, i. e. on an X display.
352 %if %{with_notify_email}
353 %package notify_email
354 Summary: Notify_email plugin for collectd
355 Group: System Environment/Daemons
356 Requires: %{name}%{?_isa} = %{version}-%{release}
357 BuildRequires: libesmtp-devel
358 %description notify_email
359 The Notify Email plugin uses libESMTP to send notifications to a configured
365 Summary: Nut plugin for collectd
366 Group: System Environment/Daemons
367 Requires: %{name}%{?_isa} = %{version}-%{release}
368 BuildRequires: nut-devel
370 This plugin for collectd provides Network UPS Tools support.
375 Summary: Perl plugin for collectd
376 Group: System Environment/Daemons
377 Requires: %{name}%{?_isa} = %{version}-%{release}
378 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
379 BuildRequires: perl-ExtUtils-Embed
381 The Perl plugin embeds a Perl interpreter into collectd and exposes the
382 application programming interface (API) to Perl-scripts.
387 Summary: Pinba plugin for collectd
388 Group: System Environment/Daemons
389 Requires: %{name}%{?_isa} = %{version}-%{release}
390 BuildRequires: protobuf-c-devel
392 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
398 Summary: Ping plugin for collectd
399 Group: System Environment/Daemons
400 Requires: %{name}%{?_isa} = %{version}-%{release}
401 BuildRequires: liboping-devel
403 The Ping plugin measures network latency using ICMP “echo requests”, usually
407 %if %{with_postgresql}
409 Summary: PostgreSQL plugin for collectd
410 Group: System Environment/Daemons
411 Requires: %{name}%{?_isa} = %{version}-%{release}
412 BuildRequires: postgresql-devel
413 %description postgresql
414 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
420 Summary: Python plugin for collectd
421 Group: System Environment/Daemons
422 Requires: %{name}%{?_isa} = %{version}-%{release}
423 BuildRequires: python-devel
425 The Python plugin embeds a Python interpreter into collectd and exposes the
426 application programming interface (API) to Python-scripts.
431 Summary: Redis plugin for collectd
432 Group: System Environment/Daemons
433 Requires: %{name}%{?_isa} = %{version}-%{release}
434 BuildRequires: credis-devel
436 The Redis plugin connects to one or more instances of Redis, a key-value store,
437 and collects usage information using the credis library.
440 %if %{with_rrdcached}
442 Summary: RRDCached plugin for collectd
443 Group: System Environment/Daemons
444 Requires: %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
445 BuildRequires: rrdtool-devel
446 %description rrdcached
447 The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
448 submits updates for RRD files to that daemon.
453 Summary: RRDtool plugin for collectd
454 Group: System Environment/Daemons
455 Requires: %{name}%{?_isa} = %{version}-%{release}
456 BuildRequires: rrdtool-devel
458 The RRDtool plugin writes values to RRD-files using librrd.
463 Summary: Sensors plugin for collectd
464 Group: System Environment/Daemons
465 Requires: %{name}%{?_isa} = %{version}-%{release}
466 BuildRequires: lm_sensors-devel
468 This plugin for collectd provides querying of sensors supported by lm_sensors.
473 Summary: SNMP plugin for collectd
474 Group: System Environment/Daemons
475 Requires: %{name}%{?_isa} = %{version}-%{release}
476 BuildRequires: net-snmp-devel
478 This plugin for collectd allows querying of network equipment using SNMP.
483 Summary: Varnish plugin for collectd
484 Group: System Environment/Daemons
485 Requires: %{name}%{?_isa} = %{version}-%{release}
486 BuildRequires: varnish-libs-devel
488 The Varnish plugin collects information about Varnish, an HTTP accelerator.
491 %if %{with_write_http}
493 Summary: Write-HTTP plugin for collectd
494 Group: System Environment/Daemons
495 Requires: %{name}%{?_isa} = %{version}-%{release}
496 BuildRequires: curl-devel
497 %description write_http
498 The Write-HTTP plugin sends the values collected by collectd to a web-server
499 using HTTP POST requests.
502 %if %{with_write_redis}
504 Summary: Write-Redis plugin for collectd
505 Group: System Environment/Daemons
506 Requires: %{name}%{?_isa} = %{version}-%{release}
507 BuildRequires: credis-devel
508 %description write_redis
509 The Write Redis plugin stores values in Redis, a “data structures server”.
513 Summary: Contrib files for collectd
514 Group: System Environment/Daemons
515 Requires: %{name}%{?_isa} = %{version}-%{release}
517 All the files found under contrib/ in the source tree are bundled in this
520 %package -n libcollectdclient
521 Summary: Collectd client library
522 %description -n libcollectdclient
523 Collectd client library
525 %package -n libcollectdclient-devel
526 Summary: Development files for libcollectdclient
528 Requires: libcollectdclient%{?_isa} = %{version}-%{release}
529 %description -n libcollectdclient-devel
530 Development files for libcollectdclient
538 %if %{with_aggregation}
539 %define _with_aggregation --enable-aggregation
541 %define _with_aggregation --disable-aggregation
545 %define _with_amqp --enable-amqp
547 %define _with_amqp --disable-amqp
551 %define _with_apache --enable-apache
553 %define _with_apache --disable-apache
557 %define _with_apcups --enable-apcups
559 %define _with_apcups --disable-apcups
562 %if %{with_apple_sensors}
563 %define _with_apple_sensors --enable-apple_sensors
565 %define _with_apple_sensors --disable-apple_sensors
569 %define _with_ascent --enable-ascent
571 %define _with_ascent --disable-ascent
575 %define _with_battery --enable-battery
577 %define _with_battery --disable-battery
581 %define _with_bind --enable-bind
583 %define _with_bind --disable-bind
586 %if %{with_conntrack}
587 %define _with_conntrack --enable-conntrack
589 %define _with_conntrack --disable-conntrack
592 %if %{with_contextswitch}
593 %define _with_contextswitch --enable-contextswitch
595 %define _with_contextswitch --disable-contextswitch
599 %define _with_cpu --enable-cpu
601 %define _with_cpu --disable-cpu
605 %define _with_cpufreq --enable-cpufreq
607 %define _with_cpufreq --disable-cpufreq
611 %define _with_csv --enable-csv
613 %define _with_csv --disable-csv
617 %define _with_curl --enable-curl
619 %define _with_curl --disable-curl
622 %if %{with_curl_json}
623 %define _with_curl_json --enable-curl_json
625 %define _with_curl_json --disable-curl_json
629 %define _with_curl_xml --enable-curl_xml
631 %define _with_curl_xml --disable-curl_xml
635 %define _with_dbi --enable-dbi
637 %define _with_dbi --disable-dbi --without-libdbi
641 %define _with_df --enable-df
643 %define _with_df --disable-df
647 %define _with_disk --enable-disk
649 %define _with_disk --disable-disk
653 %define _with_dns --enable-dns
655 %define _with_dns --disable-dns
659 %define _with_email --enable-email
661 %define _with_email --disable-email
665 %define _with_entropy --enable-entropy
667 %define _with_entropy --disable-entropy
671 %define _with_ethstat --enable-ethstat
673 %define _with_ethstat --disable-ethstat
677 %define _with_exec --enable-exec
679 %define _with_exec --disable-exec
682 %if %{with_filecount}
683 %define _with_filecount --enable-filecount
685 %define _with_filecount --disable-filecount
689 %define _with_fscache --enable-fscache
691 %define _with_fscache --disable-fscache
695 %define _with_gmond --enable-gmond
697 %define _with_gmond --disable-gmond
701 %define _with_hddtemp --enable-hddtemp
703 %define _with_hddtemp --disable-hddtemp
706 %if %{with_interface}
707 %define _with_interface --enable-interface
709 %define _with_interface --disable-interface
713 %define _with_ipmi --enable-ipmi
715 %define _with_ipmi --disable-ipmi
719 %define _with_iptables --enable-iptables
721 %define _with_iptables --disable-iptables
725 %define _with_ipvs --enable-ipvs
727 %define _with_ipvs --disable-ipvs
731 %define _with_irq --enable-irq
733 %define _with_irq --disable-irq
737 %define _with_java --enable-java --with-java=%{java_home}/
739 %define _with_java --disable-java
743 %define _with_libvirt --enable-libvirt
745 %define _with_libvirt --disable-libvirt
749 %define _with_load --enable-load
751 %define _with_load --disable-load
755 %define _with_logfile --enable-logfile
757 %define _with_logfile --disable-logfile
761 %define _with_lpar --enable-lpar
763 %define _with_lpar --disable-lpar
767 %define _with_madwifi --enable-madwifi
769 %define _with_madwifi --disable-madwifi
773 %define _with_mbmon --enable-mbmon
775 %define _with_mbmon --disable-mbmon
779 %define _with_md --enable-md
781 %define _with_md --disable-md
784 %if %{with_memcachec}
785 %define _with_memcachec --enable-memcachec
787 %define _with_memcachec --disable-memcachec
790 %if %{with_memcached}
791 %define _with_memcached --enable-memcached
793 %define _with_memcached --disable-memcached
797 %define _with_memory --enable-memory
799 %define _with_memory --disable-memory
803 %define _with_modbus --enable-modbus
805 %define _with_modbus --disable-modbus
808 %if %{with_multimeter}
809 %define _with_multimeter --enable-multimeter
811 %define _with_multimeter --disable-multimeter
815 %define _with_mysql --enable-mysql
817 %define _with_mysql --disable-mysql
821 %define _with_netapp --enable-netapp
823 %define _with_netapp --disable-netapp
827 %define _with_netlink --enable-netlink
829 %define _with_netlink --disable-netlink
833 %define _with_network --enable-network
835 %define _with_network --disable-network
839 %define _with_nfs --enable-nfs
841 %define _with_nfs --disable-nfs
845 %define _with_nginx --enable-nginx
847 %define _with_nginx --disable-nginx
850 %if %{with_notify_desktop}
851 %define _with_notify_desktop --enable-notify_desktop
853 %define _with_notify_desktop --disable-notify_desktop
856 %if %{with_notify_email}
857 %define _with_notify_email --enable-notify_email
859 %define _with_notify_email --disable-notify_email --without-libesmpt
863 %define _with_ntpd --enable-ntpd
865 %define _with_ntpd --disable-ntpd
869 %define _with_numa --enable-numa
871 %define _with_numa --disable-numa
875 %define _with_nut --enable-nut
877 %define _with_nut --disable-nut
881 %define _with_olsrd --enable-olsrd
883 %define _with_olsrd --disable-olsrd
887 %define _with_onewire --enable-onewire
889 %define _with_onewire --disable-onewire
893 %define _with_openvpn --enable-openvpn
895 %define _with_openvpn --disable-openvpn
899 %define _with_oracle --enable-oracle
901 %define _with_oracle --disable-oracle
905 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
907 %define _with_perl --disable-perl --without-libperl
911 %define _with_pf --enable-pf
913 %define _with_pf --disable-pf
917 %define _with_pinba --enable-pinba
919 %define _with_pinba --disable-pinba
923 %define _with_ping --enable-ping
925 %define _with_ping --disable-ping
928 %if %{with_postgresql}
929 %define _with_postgresql --enable-postgresql
931 %define _with_postgresql --disable-postgresql
935 %define _with_powerdns --enable-powerdns
937 %define _with_powerdns --disable-powerdns
940 %if %{with_processes}
941 %define _with_processes --enable-processes
943 %define _with_processes --disable-processes
946 %if %{with_protocols}
947 %define _with_protocols --enable-protocols
949 %define _with_protocols --disable-protocols
953 %define _with_python --enable-python
955 %define _with_python --disable-python
959 %define _with_redis --enable-redis
961 %define _with_redis --disable-redis
965 %define _with_routeros --enable-routeros
967 %define _with_routeros --disable-routeros
970 %if %{with_rrdcached}
971 %define _with_rrdcached --enable-rrdcached
973 %define _with_rrdcached --disable-rrdcached
977 %define _with_rrdtool --enable-rrdtool
979 %define _with_rrdtool --disable-rrdtool
983 %define _with_sensors --enable-sensors
985 %define _with_sensors --disable-sensors
989 %define _with_serial --enable-serial
991 %define _with_serial --disable-serial
995 %define _with_snmp --enable-snmp
997 %define _with_snmp --disable-snmp
1001 %define _with_swap --enable-swap
1003 %define _with_swap --disable-swap
1007 %define _with_syslog --enable-syslog
1009 %define _with_syslog --disable-syslog
1013 %define _with_table --enable-table
1015 %define _with_table --disable-table
1019 %define _with_tail --enable-tail
1021 %define _with_tail --disable-tail
1025 %define _with_tape --enable-tape
1027 %define _with_tape --disable-tape
1030 %if %{with_tcpconns}
1031 %define _with_tcpconns --enable-tcpconns
1033 %define _with_tcpconns --disable-tcpconns
1036 %if %{with_teamspeak2}
1037 %define _with_teamspeak2 --enable-teamspeak2
1039 %define _with_teamspeak2 --disable-teamspeak2
1043 %define _with_ted --enable-ted
1045 %define _with_ted --disable-ted
1049 %define _with_thermal --enable-thermal
1051 %define _with_thermal --disable-thermal
1054 %if %{with_threshold}
1055 %define _with_threshold --enable-threshold
1057 %define _with_threshold --disable-threshold
1060 %if %{with_tokyotyrant}
1061 %define _with_tokyotyrant --enable-tokyotyrant
1063 %define _with_tokyotyrant --disable-tokyotyrant
1066 %if %{with_unixsock}
1067 %define _with_unixsock --enable-unixsock
1069 %define _with_unixsock --disable-unixsock
1073 %define _with_uptime --enable-uptime
1075 %define _with_uptime --disable-uptime
1079 %define _with_users --enable-users
1081 %define _with_users --disable-users
1085 %define _with_uuid --enable-uuid
1087 %define _with_uuid --disable-uuid
1091 %define _with_varnish --enable-varnish
1093 %define _with_varnish --disable-varnish
1097 %define _with_vmem --enable-vmem
1099 %define _with_vmem --disable-vmem
1103 %define _with_vserver --enable-vserver
1105 %define _with_vserver --disable-vserver
1108 %if %{with_wireless}
1109 %define _with_wireless --enable-wireless
1111 %define _with_wireless --disable-wireless
1114 %if %{with_write_graphite}
1115 %define _with_write_graphite --enable-write_graphite
1117 %define _with_write_graphite --disable-write_graphite
1120 %if %{with_write_http}
1121 %define _with_write_http --enable-write_http
1123 %define _with_write_http --disable-write_http
1126 %if %{with_write_mongodb}
1127 %define _with_write_mongodb --enable-write_mongodb
1129 %define _with_write_mongodb --disable-write_mongodb --without-libmongoc
1132 %if %{with_write_redis}
1133 %define _with_write_redis --enable-write_redis
1135 %define _with_write_redis --disable-write_redis --without-libcredis
1139 %define _with_xmms --enable-xmms
1141 %define _with_xmms --disable-xmms
1145 %define _with_zfs_arc --enable-zfs_arc
1147 %define _with_zfs_arc --disable-zfs_arc
1150 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1152 --without-included-ltdl \
1153 --enable-all-plugins=yes \
1154 --enable-aggregation \
1155 --enable-match_empty_counter \
1156 --enable-match_hashed \
1157 --enable-match_regex \
1158 --enable-match_timediff \
1159 --enable-match_value \
1160 --enable-target_notification \
1161 --enable-target_replace \
1162 --enable-target_scale \
1163 --enable-target_set \
1164 --enable-target_v5upgrade \
1165 %{?_with_aggregation} \
1169 %{?_with_apple_sensors} \
1173 %{?_with_conntrack} \
1174 %{?_with_contextswitch} \
1179 %{?_with_curl_json} \
1180 %{?_with_curl_xml} \
1189 %{?_with_filecount} \
1193 %{?_with_interface} \
1195 %{?_with_iptables} \
1200 %{?_with_memcachec} \
1202 %{?_with_multimeter} \
1207 %{?_with_notify_desktop} \
1208 %{?_with_notify_email} \
1216 %{?_with_postgresql} \
1219 %{?_with_routeros} \
1220 %{?_with_rrdcached} \
1225 %{?_with_tokyotyrant} \
1227 %{?_with_write_http} \
1228 %{?_with_write_mongodb} \
1229 %{?_with_write_redis} \
1238 %{?_with_memcached} \
1246 %{?_with_powerdns} \
1247 %{?_with_processes} \
1248 %{?_with_protocols} \
1254 %{?_with_tcpconns} \
1255 %{?_with_teamspeak2} \
1258 %{?_with_threshold} \
1259 %{?_with_unixsock} \
1266 %{?_with_write_graphite} \
1267 %{?_with_write_http}
1270 %{__make} %{?_smp_mflags}
1275 %{__make} install DESTDIR=%{buildroot}
1276 %{__install} -Dp -m 0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1277 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1278 %{__install} -d %{buildroot}%{sharedstatedir}/collectd/
1279 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1282 find contrib/ -type f -exec %{__chmod} a-x {} \;
1283 # *.la files shouldn't be distributed.
1284 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1286 # Move the Perl examples to a separate directory.
1288 find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
1290 # Remove Perl hidden .packlist files.
1291 find %{buildroot} -type f -name .packlist -delete
1292 # Remove Perl temporary file perllocal.pod
1293 find %{buildroot} -type f -name perllocal.pod -delete
1296 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
1300 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
1301 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
1304 %if ! %{with_python}
1305 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
1309 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
1317 /sbin/chkconfig --add collectd
1320 if [ $1 -eq 0 ]; then
1321 /sbin/service collectd stop &>/dev/null
1322 /sbin/chkconfig --del collectd
1326 if [ $1 -ge 1 ]; then
1327 /sbin/service collectd condrestart &>/dev/null || :
1330 %post -n libcollectdclient -p /sbin/ldconfig
1331 %postun -n libcollectdclient -p /sbin/ldconfig
1335 %doc AUTHORS COPYING ChangeLog README
1336 %config(noreplace) %{_sysconfdir}/collectd.conf
1337 %{_initrddir}/collectd
1338 %{_sbindir}/collectd
1339 %{_bindir}/collectd-nagios
1340 %{_bindir}/collectd-tg
1341 %{_bindir}/collectdctl
1342 %{_sbindir}/collectdmon
1343 %{_datadir}/collectd/
1344 %{_sharedstatedir}/collectd
1345 %{_mandir}/man1/collectd-nagios.1*
1346 %{_mandir}/man1/collectd.1*
1347 %{_mandir}/man1/collectdctl.1*
1348 %{_mandir}/man1/collectdmon.1*
1349 %{_mandir}/man5/collectd-email.5*
1350 %{_mandir}/man5/collectd-exec.5*
1351 %{_mandir}/man5/collectd-threshold.5*
1352 %{_mandir}/man5/collectd-unixsock.5*
1353 %{_mandir}/man5/collectd.conf.5*
1354 %{_mandir}/man5/types.db.5*
1356 # all plugins bundled with the main collectd package
1357 %{_libdir}/%{name}/match_empty_counter.so
1358 %{_libdir}/%{name}/match_hashed.so
1359 %{_libdir}/%{name}/match_regex.so
1360 %{_libdir}/%{name}/match_timediff.so
1361 %{_libdir}/%{name}/match_value.so
1362 %{_libdir}/%{name}/target_notification.so
1363 %{_libdir}/%{name}/target_replace.so
1364 %{_libdir}/%{name}/target_scale.so
1365 %{_libdir}/%{name}/target_set.so
1366 %{_libdir}/%{name}/target_v5upgrade.so
1368 %if %{with_aggregation}
1369 %{_libdir}/%{name}/aggregation.so
1372 %{_libdir}/%{name}/apcups.so
1375 %{_libdir}/%{name}/battery.so
1377 %if %{with_conntrack}
1378 %{_libdir}/%{name}/conntrack.so
1380 %if %{with_contextswitch}
1381 %{_libdir}/%{name}/contextswitch.so
1384 %{_libdir}/%{name}/cpu.so
1387 %{_libdir}/%{name}/cpufreq.so
1390 %{_libdir}/%{name}/csv.so
1393 %{_libdir}/%{name}/df.so
1396 %{_libdir}/%{name}/disk.so
1399 %{_libdir}/%{name}/ethstat.so
1402 %{_libdir}/%{name}/entropy.so
1405 %{_libdir}/%{name}/exec.so
1407 %if %{with_filecount}
1408 %{_libdir}/%{name}/filecount.so
1411 %{_libdir}/%{name}/fscache.so
1413 %if %{with_interface}
1414 %{_libdir}/%{name}/interface.so
1417 %{_libdir}/%{name}/ipvs.so
1420 %{_libdir}/%{name}/irq.so
1423 %{_libdir}/%{name}/load.so
1426 %{_libdir}/%{name}/logfile.so
1429 %{_libdir}/%{name}/madwifi.so
1432 %{_libdir}/%{name}/mbmon.so
1435 %{_libdir}/%{name}/md.so
1437 %if %{with_memcached}
1438 %{_libdir}/%{name}/memcached.so
1441 %{_libdir}/%{name}/memory.so
1443 %if %{with_multimeter}
1444 %{_libdir}/%{name}/multimeter.so
1447 %{_libdir}/%{name}/network.so
1450 %{_libdir}/%{name}/nfs.so
1453 %{_libdir}/%{name}/ntpd.so
1456 %{_libdir}/%{name}/numa.so
1459 %{_libdir}/%{name}/openvpn.so
1462 %{_libdir}/%{name}/olsrd.so
1464 %if %{with_powerdns}
1465 %{_libdir}/%{name}/powerdns.so
1467 %if %{with_processes}
1468 %{_libdir}/%{name}/processes.so
1470 %if %{with_protocols}
1471 %{_libdir}/%{name}/protocols.so
1474 %{_libdir}/%{name}/serial.so
1477 %{_libdir}/%{name}/swap.so
1480 %{_libdir}/%{name}/syslog.so
1483 %{_libdir}/%{name}/table.so
1486 %{_libdir}/%{name}/tail.so
1488 %if %{with_tcpconns}
1489 %{_libdir}/%{name}/tcpconns.so
1491 %if %{with_teamspeak2}
1492 %{_libdir}/%{name}/teamspeak2.so
1495 %{_libdir}/%{name}/ted.so
1498 %{_libdir}/%{name}/thermal.so
1501 %{_libdir}/%{name}/threshold.so
1503 %if %{with_unixsock}
1504 %{_libdir}/%{name}/unixsock.so
1507 %{_libdir}/%{name}/uptime.so
1510 %{_libdir}/%{name}/users.so
1513 %{_libdir}/%{name}/uuid.so
1516 %{_libdir}/%{name}/vmem.so
1519 %{_libdir}/%{name}/vserver.so
1521 %if %{with_wireless}
1522 %{_libdir}/%{name}/wireless.so
1524 %if %{with_write_graphite}
1525 %{_libdir}/%{name}/write_graphite.so
1528 # All plugins not built by default because of dependencies on libraries not
1529 # available in RHEL or EPEL:
1530 # plugin modbus disabled, requires libmodbus
1531 # plugin netlink disabled, requires libnetlink.h
1532 # plugin numa disabled, requires libnetapp
1533 # plugin onewire disabled, requires libowfs
1534 # plugin oracle disabled, requires Oracle
1535 # plugin redis disabled, requires credis
1536 # plugin routeros disabled, requires librouteros
1537 # plugin rrdcached disabled, requires rrdtool >= 1.4
1538 # plugin tokyotyrant disabled, requires tcrdb.h
1539 # plugin write_mongodb disabled, requires libmongoc
1540 # plugin write_redis disabled, requires credis
1541 # plugin xmms disabled, requires xmms
1544 %files -n libcollectdclient-devel
1545 %{_includedir}/collectd/client.h
1546 %{_includedir}/collectd/network.h
1547 %{_includedir}/collectd/network_buffer.h
1548 %{_includedir}/collectd/lcc_features.h
1549 %{_libdir}/pkgconfig/libcollectdclient.pc
1551 %files -n libcollectdclient
1552 %{_libdir}/libcollectdclient.so
1553 %{_libdir}/libcollectdclient.so.*
1557 %{_libdir}/%{name}/amqp.so
1562 %{_libdir}/%{name}/apache.so
1567 %{_libdir}/%{name}/ascent.so
1572 %{_libdir}/%{name}/bind.so
1577 %{_libdir}/%{name}/curl.so
1580 %if %{with_curl_json}
1582 %{_libdir}/%{name}/curl_json.so
1585 %if %{with_curl_xml}
1587 %{_libdir}/%{name}/curl_xml.so
1592 %{_libdir}/%{name}/dns.so
1597 %{_libdir}/%{name}/dbi.so
1602 %{_libdir}/%{name}/email.so
1607 %{_libdir}/%{name}/gmond.so
1612 %{_libdir}/%{name}/hddtemp.so
1617 %{_libdir}/%{name}/ipmi.so
1620 %if %{with_iptables}
1622 %{_libdir}/%{name}/iptables.so
1627 %{_datarootdir}/collectd/java/collectd-api.jar
1628 %{_datarootdir}/collectd/java/generic-jmx.jar
1629 %{_libdir}/%{name}/java.so
1630 %{_mandir}/man5/collectd-java.5*
1635 %{_libdir}/%{name}/libvirt.so
1638 %if %{with_memcachec}
1640 %{_libdir}/%{name}/memcachec.so
1645 %{_libdir}/%{name}/mysql.so
1650 %{_libdir}/%{name}/nginx.so
1653 %if %{with_notify_desktop}
1654 %files notify_desktop
1655 %{_libdir}/%{name}/notify_desktop.so
1658 %if %{with_notify_email}
1660 %{_libdir}/%{name}/notify_email.so
1665 %{_libdir}/%{name}/nut.so
1670 %doc perl-examples/*
1671 %{perl_vendorlib}/Collectd.pm
1672 %{perl_vendorlib}/Collectd/
1673 %{_mandir}/man3/Collectd::Unixsock.3pm*
1674 %{_mandir}/man5/collectd-perl.5*
1675 %{_libdir}/%{name}/perl.so
1680 %{_libdir}/%{name}/pinba.so
1685 %{_libdir}/%{name}/ping.so
1688 %if %{with_postgresql}
1690 %{_datarootdir}/collectd/postgresql_default.conf
1691 %{_libdir}/%{name}/postgresql.so
1696 %{_mandir}/man5/collectd-python*
1697 %{_libdir}/%{name}/python.so
1702 %{_libdir}/%{name}/redis.so
1705 %if %{with_rrdcached}
1707 %{_libdir}/%{name}/rrdcached.so
1712 %{_libdir}/%{name}/rrdtool.so
1717 %{_libdir}/%{name}/sensors.so
1722 %{_mandir}/man5/collectd-snmp.5*
1723 %{_libdir}/%{name}/snmp.so
1728 %{_libdir}/%{name}/varnish.so
1731 %if %{with_write_http}
1733 %{_libdir}/%{name}/write_http.so
1736 %if %{with_write_redis}
1738 %{_libdir}/%{name}/write_redis.so
1745 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
1746 - New upstream version
1747 - Enabled aggregation plugin
1748 - Installed collectd-tc
1749 - Added network.h and network_buffer.h to libcollectdclient-devel
1750 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
1751 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
1752 - Added rrdcached and redis plugin descriptions
1753 - Mentioned new pf plugin in disabled plugins list
1755 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
1756 - Follow Fedora Packaging Guidelines in java subpackage
1758 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
1759 - Move perl stuff to perl_vendorlib
1760 - Replace hardcoded paths with macros
1761 - Remove unneccesary Requires
1762 - Removed .a and .la files
1763 - Some other small cleanups
1765 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
1766 - New upstream version
1767 - Changes to support 5.1.0
1768 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
1769 - All plugins requiring external libraries are now shipped in seperate
1771 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
1772 the build process + ensure build deps are installed.
1773 - Dropped per-plugin configuration files, as they tend to diverge from upstream
1775 - Moved perl stuff to /usr/share/perl5/
1776 - Don't alter Interval and ReadThreads by default, let the user change this
1778 - Initscript improvements:
1779 * checks configuration before (re)starting, based on debian's initscript
1780 * use /etc/sysconfig instdead of /etc/default
1781 * include optional $ARGS in arguments passed to collectd.
1782 - Drop collection.cgi from main package, as it's been obsoleted by collection3
1783 - Moved contrib/ to its own package, to avoid cluttering the main package with
1784 non-essential stuff.
1785 - Replaced BuildPrereq by BuildRequires
1787 * Tue Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
1788 - New upstream version
1789 - Changes to support 5.0.1
1791 * Tue Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
1792 - New upstream version
1793 - Changes to support 4.9.0
1794 - Added support for Java/GenericJMX plugin
1796 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
1797 - New upstream version
1798 - Changes to support 4.3.1
1799 - Added More Prereqs to support more plugins
1800 - Added support for perl plugin
1802 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
1803 - New upstream version
1805 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
1807 - Changes to support 4.0.5
1809 * Wed Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
1810 - fixed spec file to build correctly on fedora core
1811 - added improved init.d script to work with chkconfig
1812 - added %%post and %%postun to call chkconfig automatically
1814 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
1815 - New upstream version
1817 * Tue Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
1818 - New upstream version
1820 * Tue Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
1821 - New upstream version
1823 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
1824 - New upstream version
1826 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
1827 - New upstream version
1829 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
1830 - New upstream version
1832 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
1833 - New upstream version
1834 - Added the `apache' package.
1836 * Thu Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
1837 - New upstream version
1839 * Thu Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
1840 - New upstream version
1842 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
1843 - New upstream version
1845 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
1846 - Include `tape.so' so the build doesn't terminate because of missing files..
1847 - New upstream version
1849 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
1850 - New upstream version
1852 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
1853 - New upstream version
1854 - Removed the extra `hddtemp' package
1856 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
1857 - New upstream version
1859 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
1860 - New upstream version
1862 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
1863 - New upstream version
1864 - Added config file, `collectd.conf(5)', `df.so'
1865 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
1867 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
1868 - New upstream version
1870 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
1871 - New upstream version
1873 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
1874 - New upstream version
1876 * Tue Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
1877 - New upstream version
1878 - Added statement to remove the `*.la' files. This fixes a problem when
1879 `Unpackaged files terminate build' is in effect.
1880 - Added `processes.so*' to the main package
1882 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
1883 - New upstream version
1884 - Added package `collectd-hddtemp'
1886 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
1887 - New upstream version
1888 - Split the package into `collectd' and `collectd-sensors'
1890 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
1891 - New upstream version
1893 * Mon Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
1894 - New upstream version
1896 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
1897 - New upstream version
1899 * Sun Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
1900 - New upstream version
1902 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
1903 - New upstream version
1905 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
1906 - New upstream version
1908 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
1909 - New upstream version
1911 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
1912 - New upstream version
1914 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
1915 - Built on RedHat 7.3