Code

RedHat RPM spec: package php-collection/collection3 independently
[collectd.git] / contrib / redhat / collectd.spec
1 %global _hardened_build 1
3 # enabled plugins
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}
90 # disabled plugins
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
110 Name:           collectd
111 Version:        5.2.0
112 Release:        1%{?dist}
113 URL:            http://collectd.org
114 Source:         http://collectd.org/files/%{name}-%{version}.tar.gz
115 License:        GPLv2
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
125 %description
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.
133 %if %{with_amqp}
134 %package amqp
135 Summary:        AMQP plugin for collectd
136 Group:          System Environment/Daemons
137 Requires:       %{name}%{?_isa} = %{version}-%{release}
138 BuildRequires:  librabbitmq-devel
139 %description amqp
140 The AMQP plugin transmits or receives values collected by collectd via the
141 Advanced Message Queuing Protocol (AMQP).
142 %endif
144 %if %{with_apache}
145 %package apache
146 Summary:        Apache plugin for collectd
147 Group:          System Environment/Daemons
148 Requires:       %{name}%{?_isa} = %{version}-%{release}
149 BuildRequires:  curl-devel
150 %description apache
151 This plugin collects data provided by Apache's `mod_status'.
152 %endif
154 %if %{with_ascent}
155 %package ascent
156 Summary:        Ascent plugin for collectd
157 Group:          System Environment/Daemons
158 Requires:       %{name}%{?_isa} = %{version}-%{release}
159 BuildRequires:  libxml2-devel, curl-devel
160 %description ascent
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
163 Entertainment.
164 %endif
166 %if %{with_bind}
167 %package bind
168 Summary:        Bind plugin for collectd
169 Group:          System Environment/Daemons
170 Requires:       %{name}%{?_isa} = %{version}-%{release}
171 BuildRequires:  libxml2-devel, curl-devel
172 %description bind
173 The BIND plugin retrieves this information that's encoded in XML and provided
174 via HTTP and submits the values to collectd.
175 %endif
177 %if %{with_curl}
178 %package curl
179 Summary:        Curl plugin for collectd
180 Group:          System Environment/Daemons
181 Requires:       %{name}%{?_isa} = %{version}-%{release}
182 BuildRequires:  curl-devel
183 %description curl
184 The cURL plugin uses libcurl to read files and then parses them according to
185 the configuration.
186 %endif
188 %if %{with_curl_json}
189 %package 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.
197 %endif
199 %if %{with_curl_xml}
200 %package curl_xml
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).
208 %endif
210 %if %{with_dbi}
211 %package dbi
212 Summary:        DBI plugin for collectd
213 Group:          System Environment/Daemons
214 Requires:       %{name}%{?_isa} = %{version}-%{release}
215 Buildrequires:  libdbi-devel
216 %description dbi
217 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
218 statements on a database and read back the result.
219 %endif
221 %if %{with_dns}
222 %package dns
223 Summary:        DNS plugin for collectd
224 Group:          System Environment/Daemons
225 Requires:       %{name}%{?_isa} = %{version}-%{release}
226 Buildrequires:  libpcap-devel
227 %description dns
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.
231 %endif
233 %if %{with_email}
234 %package email
235 Summary:        Email plugin for collectd
236 Group:          System Environment/Daemons
237 Requires:       %{name}%{?_isa} = %{version}-%{release}, spamassassin
238 %description email
239 This plugin collects data provided by spamassassin.
240 %endif
242 %if %{with_gmond}
243 %package gmond
244 Summary:        Gmond plugin for collectd
245 Group:          System Environment/Daemons
246 Requires:       %{name}%{?_isa} = %{version}-%{release}
247 BuildRequires:  ganglia-devel
248 %description gmond
249 The gmond plugin subscribes to a Multicast group to receive data from gmond,
250 the client daemon of the Ganglia project.
251 %endif
253 %if %{with_hddtemp}
254 %package hddtemp
255 Summary:        Hddtemp plugin for collectd
256 Group:          System Environment/Daemons
257 Requires:       %{name}%{?_isa} = %{version}-%{release}, hddtemp
258 %description 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.
261 %endif
263 %if %{with_ipmi}
264 %package ipmi
265 Summary:        IPMI plugin for collectd
266 Group:          System Environment/Daemons
267 Requires:       %{name}%{?_isa} = %{version}-%{release}
268 BuildRequires:  OpenIPMI-devel
269 %description ipmi
270 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
271 using the Intelligent Platform Management Interface (IPMI).
272 %endif
274 %if %{with_iptables}
275 %package iptables
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.
284 %endif
286 %if %{with_java}
287 %package java
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
293 %description java
294 This plugin for collectd allows plugins to be written in Java and executed
295 in an embedded JVM.
296 %endif
298 %if %{with_libvirt}
299 %package libvirt
300 Summary:        Libvirt plugin for collectd
301 Group:          System Environment/Daemons
302 Requires:       %{name}%{?_isa} = %{version}-%{release}
303 BuildRequires:  libvirt-devel
304 %description libvirt
305 This plugin collects information from virtualized guests.
306 %endif
308 %if %{with_memcachec}
309 %package 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.
318 %endif
320 %if %{with_mysql}
321 %package mysql
322 Summary:        MySQL plugin for collectd
323 Group:          System Environment/Daemons
324 Requires:       %{name}%{?_isa} = %{version}-%{release}
325 BuildRequires:  mysql-devel
326 %description mysql
327 MySQL querying plugin. This plugin provides data of issued commands, called
328 handlers and database traffic.
329 %endif
331 %if %{with_nginx}
332 %package nginx
333 Summary:        Nginx plugin for collectd
334 Group:          System Environment/Daemons
335 Requires:       %{name}%{?_isa} = %{version}-%{release}
336 BuildRequires:  curl-devel
337 %description nginx
338 This plugin gets data provided by nginx.
339 %endif
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.
350 %endif
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
360 email address.
361 %endif
363 %if %{with_nut}
364 %package nut
365 Summary:        Nut plugin for collectd
366 Group:          System Environment/Daemons
367 Requires:       %{name}%{?_isa} = %{version}-%{release}
368 BuildRequires:  nut-devel
369 %description nut
370 This plugin for collectd provides Network UPS Tools support.
371 %endif
373 %if %{with_perl}
374 %package perl
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
380 %description perl
381 The Perl plugin embeds a Perl interpreter into collectd and exposes the
382 application programming interface (API) to Perl-scripts.
383 %endif
385 %if %{with_pinba}
386 %package pinba
387 Summary:        Pinba plugin for collectd
388 Group:          System Environment/Daemons
389 Requires:       %{name}%{?_isa} = %{version}-%{release}
390 BuildRequires:  protobuf-c-devel
391 %description pinba
392 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
393 extension for PHP.
394 %endif
396 %if %{with_ping}
397 %package ping
398 Summary:        Ping plugin for collectd
399 Group:          System Environment/Daemons
400 Requires:       %{name}%{?_isa} = %{version}-%{release}
401 BuildRequires:  liboping-devel
402 %description ping
403 The Ping plugin measures network latency using ICMP “echo requests”, usually
404 known as “ping”.
405 %endif
407 %if %{with_postgresql}
408 %package 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
415 database.
416 %endif
418 %if %{with_python}
419 %package python
420 Summary:        Python plugin for collectd
421 Group:          System Environment/Daemons
422 Requires:       %{name}%{?_isa} = %{version}-%{release}
423 BuildRequires:  python-devel
424 %description python
425 The Python plugin embeds a Python interpreter into collectd and exposes the
426 application programming interface (API) to Python-scripts.
427 %endif
429 %if %{with_redis}
430 %package redis
431 Summary:        Redis plugin for collectd
432 Group:          System Environment/Daemons
433 Requires:       %{name}%{?_isa} = %{version}-%{release}
434 BuildRequires:  credis-devel
435 %description redis
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.
438 %endif
440 %if %{with_rrdcached}
441 %package 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.
449 %endif
451 %if %{with_rrdtool}
452 %package rrdtool
453 Summary:        RRDtool plugin for collectd
454 Group:          System Environment/Daemons
455 Requires:       %{name}%{?_isa} = %{version}-%{release}
456 BuildRequires:  rrdtool-devel
457 %description rrdtool
458 The RRDtool plugin writes values to RRD-files using librrd.
459 %endif
461 %if %{with_sensors}
462 %package sensors
463 Summary:        Sensors plugin for collectd
464 Group:          System Environment/Daemons
465 Requires:       %{name}%{?_isa} = %{version}-%{release}
466 BuildRequires:  lm_sensors-devel
467 %description sensors
468 This plugin for collectd provides querying of sensors supported by lm_sensors.
469 %endif
471 %if %{with_snmp}
472 %package snmp
473 Summary:        SNMP plugin for collectd
474 Group:          System Environment/Daemons
475 Requires:       %{name}%{?_isa} = %{version}-%{release}
476 BuildRequires:  net-snmp-devel
477 %description snmp
478 This plugin for collectd allows querying of network equipment using SNMP.
479 %endif
481 %if %{with_varnish}
482 %package varnish
483 Summary:        Varnish plugin for collectd
484 Group:          System Environment/Daemons
485 Requires:       %{name}%{?_isa} = %{version}-%{release}
486 BuildRequires:  varnish-libs-devel
487 %description varnish
488 The Varnish plugin collects information about Varnish, an HTTP accelerator.
489 %endif
491 %if %{with_write_http}
492 %package 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.
500 %endif
502 %if %{with_write_redis}
503 %package 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”.
510 %endif
512 %package collection3
513 Summary:        Web-based viewer for collectd
514 Group:          System Environment/Daemons
515 Requires:       %{name}%{?_isa} = %{version}-%{release}
516 Requires: httpd
517 %description collection3
518 collection3 is a graphing front-end for the RRD files created by and filled
519 with collectd. It is written in Perl and should be run as an CGI-script.
520 Graphs are generated on-the-fly, so no cron job or similar is necessary.
522 %package php-collection
523 Summary:        collect php webfrontent
524 Group:          System Environment/Daemons
525 Requires:       collectd = %{version}-%{release}
526 Requires:       httpd
527 Requires:       php
528 Requires:       php-rrdtool
529 %description php-collection
530 PHP graphing frontend for RRD files created by and filled with collectd.
532 %package contrib
533 Summary:        Contrib files for collectd
534 Group:          System Environment/Daemons
535 Requires:       %{name}%{?_isa} = %{version}-%{release}
536 %description contrib
537 All the files found under contrib/ in the source tree are bundled in this
538 package.
540 %package -n libcollectdclient
541 Summary:        Collectd client library
542 %description -n libcollectdclient
543 Collectd client library
545 %package -n libcollectdclient-devel
546 Summary:        Development files for libcollectdclient
547 Requires:       pkgconfig
548 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
549 %description -n libcollectdclient-devel
550 Development files for libcollectdclient
553 %prep
554 %setup -q
557 %build
558 %if %{with_aggregation}
559 %define _with_aggregation --enable-aggregation
560 %else
561 %define _with_aggregation --disable-aggregation
562 %endif
564 %if %{with_amqp}
565 %define _with_amqp --enable-amqp
566 %else
567 %define _with_amqp --disable-amqp
568 %endif
570 %if %{with_apache}
571 %define _with_apache --enable-apache
572 %else
573 %define _with_apache --disable-apache
574 %endif
576 %if %{with_apcups}
577 %define _with_apcups --enable-apcups
578 %else
579 %define _with_apcups --disable-apcups
580 %endif
582 %if %{with_apple_sensors}
583 %define _with_apple_sensors --enable-apple_sensors
584 %else
585 %define _with_apple_sensors --disable-apple_sensors
586 %endif
588 %if %{with_ascent}
589 %define _with_ascent --enable-ascent
590 %else
591 %define _with_ascent --disable-ascent
592 %endif
594 %if %{with_battery}
595 %define _with_battery --enable-battery
596 %else
597 %define _with_battery --disable-battery
598 %endif
600 %if %{with_bind}
601 %define _with_bind --enable-bind
602 %else
603 %define _with_bind --disable-bind
604 %endif
606 %if %{with_conntrack}
607 %define _with_conntrack --enable-conntrack
608 %else
609 %define _with_conntrack --disable-conntrack
610 %endif
612 %if %{with_contextswitch}
613 %define _with_contextswitch --enable-contextswitch
614 %else
615 %define _with_contextswitch --disable-contextswitch
616 %endif
618 %if %{with_cpu}
619 %define _with_cpu --enable-cpu
620 %else
621 %define _with_cpu --disable-cpu
622 %endif
624 %if %{with_cpufreq}
625 %define _with_cpufreq --enable-cpufreq
626 %else
627 %define _with_cpufreq --disable-cpufreq
628 %endif
630 %if %{with_csv}
631 %define _with_csv --enable-csv
632 %else
633 %define _with_csv --disable-csv
634 %endif
636 %if %{with_curl}
637 %define _with_curl --enable-curl
638 %else
639 %define _with_curl --disable-curl
640 %endif
642 %if %{with_curl_json}
643 %define _with_curl_json --enable-curl_json
644 %else
645 %define _with_curl_json --disable-curl_json
646 %endif
648 %if %{with_curl_xml}
649 %define _with_curl_xml --enable-curl_xml
650 %else
651 %define _with_curl_xml --disable-curl_xml
652 %endif
654 %if %{with_dbi}
655 %define _with_dbi --enable-dbi
656 %else
657 %define _with_dbi --disable-dbi --without-libdbi
658 %endif
660 %if %{with_df}
661 %define _with_df --enable-df
662 %else
663 %define _with_df --disable-df
664 %endif
666 %if %{with_disk}
667 %define _with_disk --enable-disk
668 %else
669 %define _with_disk --disable-disk
670 %endif
672 %if %{with_dns}
673 %define _with_dns --enable-dns
674 %else
675 %define _with_dns --disable-dns
676 %endif
678 %if %{with_email}
679 %define _with_email --enable-email
680 %else
681 %define _with_email --disable-email
682 %endif
684 %if %{with_entropy}
685 %define _with_entropy --enable-entropy
686 %else
687 %define _with_entropy --disable-entropy
688 %endif
690 %if %{with_ethstat}
691 %define _with_ethstat --enable-ethstat
692 %else
693 %define _with_ethstat --disable-ethstat
694 %endif
696 %if %{with_exec}
697 %define _with_exec --enable-exec
698 %else
699 %define _with_exec --disable-exec
700 %endif
702 %if %{with_filecount}
703 %define _with_filecount --enable-filecount
704 %else
705 %define _with_filecount --disable-filecount
706 %endif
708 %if %{with_fscache}
709 %define _with_fscache --enable-fscache
710 %else
711 %define _with_fscache --disable-fscache
712 %endif
714 %if %{with_gmond}
715 %define _with_gmond --enable-gmond
716 %else
717 %define _with_gmond --disable-gmond
718 %endif
720 %if %{with_hddtemp}
721 %define _with_hddtemp --enable-hddtemp
722 %else
723 %define _with_hddtemp --disable-hddtemp
724 %endif
726 %if %{with_interface}
727 %define _with_interface --enable-interface
728 %else
729 %define _with_interface --disable-interface
730 %endif
732 %if %{with_ipmi}
733 %define _with_ipmi --enable-ipmi
734 %else
735 %define _with_ipmi --disable-ipmi
736 %endif
738 %if %{with_iptables}
739 %define _with_iptables --enable-iptables
740 %else
741 %define _with_iptables --disable-iptables
742 %endif
744 %if %{with_ipvs}
745 %define _with_ipvs --enable-ipvs
746 %else
747 %define _with_ipvs --disable-ipvs
748 %endif
750 %if %{with_irq}
751 %define _with_irq --enable-irq
752 %else
753 %define _with_irq --disable-irq
754 %endif
756 %if %{with_java}
757 %define _with_java --enable-java --with-java=%{java_home}/
758 %else
759 %define _with_java --disable-java
760 %endif
762 %if %{with_libvirt}
763 %define _with_libvirt --enable-libvirt
764 %else
765 %define _with_libvirt --disable-libvirt
766 %endif
768 %if %{with_load}
769 %define _with_load --enable-load
770 %else
771 %define _with_load --disable-load
772 %endif
774 %if %{with_logfile}
775 %define _with_logfile --enable-logfile
776 %else
777 %define _with_logfile --disable-logfile
778 %endif
780 %if %{with_lpar}
781 %define _with_lpar --enable-lpar
782 %else
783 %define _with_lpar --disable-lpar
784 %endif
786 %if %{with_madwifi}
787 %define _with_madwifi --enable-madwifi
788 %else
789 %define _with_madwifi --disable-madwifi
790 %endif
792 %if %{with_mbmon}
793 %define _with_mbmon --enable-mbmon
794 %else
795 %define _with_mbmon --disable-mbmon
796 %endif
798 %if %{with_md}
799 %define _with_md --enable-md
800 %else
801 %define _with_md --disable-md
802 %endif
804 %if %{with_memcachec}
805 %define _with_memcachec --enable-memcachec
806 %else
807 %define _with_memcachec --disable-memcachec
808 %endif
810 %if %{with_memcached}
811 %define _with_memcached --enable-memcached
812 %else
813 %define _with_memcached --disable-memcached
814 %endif
816 %if %{with_memory}
817 %define _with_memory --enable-memory
818 %else
819 %define _with_memory --disable-memory
820 %endif
822 %if %{with_modbus}
823 %define _with_modbus --enable-modbus
824 %else
825 %define _with_modbus --disable-modbus
826 %endif
828 %if %{with_multimeter}
829 %define _with_multimeter --enable-multimeter
830 %else
831 %define _with_multimeter --disable-multimeter
832 %endif
834 %if %{with_mysql}
835 %define _with_mysql --enable-mysql
836 %else
837 %define _with_mysql --disable-mysql
838 %endif
840 %if %{with_netapp}
841 %define _with_netapp --enable-netapp
842 %else
843 %define _with_netapp --disable-netapp
844 %endif
846 %if %{with_netlink}
847 %define _with_netlink --enable-netlink
848 %else
849 %define _with_netlink --disable-netlink
850 %endif
852 %if %{with_network}
853 %define _with_network --enable-network
854 %else
855 %define _with_network --disable-network
856 %endif
858 %if %{with_nfs}
859 %define _with_nfs --enable-nfs
860 %else
861 %define _with_nfs --disable-nfs
862 %endif
864 %if %{with_nginx}
865 %define _with_nginx --enable-nginx
866 %else
867 %define _with_nginx --disable-nginx
868 %endif
870 %if %{with_notify_desktop}
871 %define _with_notify_desktop --enable-notify_desktop
872 %else
873 %define _with_notify_desktop --disable-notify_desktop
874 %endif
876 %if %{with_notify_email}
877 %define _with_notify_email --enable-notify_email
878 %else
879 %define _with_notify_email --disable-notify_email --without-libesmpt
880 %endif
882 %if %{with_ntpd}
883 %define _with_ntpd --enable-ntpd
884 %else
885 %define _with_ntpd --disable-ntpd
886 %endif
888 %if %{with_numa}
889 %define _with_numa --enable-numa
890 %else
891 %define _with_numa --disable-numa
892 %endif
894 %if %{with_nut}
895 %define _with_nut --enable-nut
896 %else
897 %define _with_nut --disable-nut
898 %endif
900 %if %{with_olsrd}
901 %define _with_olsrd --enable-olsrd
902 %else
903 %define _with_olsrd --disable-olsrd
904 %endif
906 %if %{with_onewire}
907 %define _with_onewire --enable-onewire
908 %else
909 %define _with_onewire --disable-onewire
910 %endif
912 %if %{with_openvpn}
913 %define _with_openvpn --enable-openvpn
914 %else
915 %define _with_openvpn --disable-openvpn
916 %endif
918 %if %{with_oracle}
919 %define _with_oracle --enable-oracle
920 %else
921 %define _with_oracle --disable-oracle
922 %endif
924 %if %{with_perl}
925 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
926 %else
927 %define _with_perl --disable-perl --without-libperl
928 %endif
930 %if %{with_pf}
931 %define _with_pf --enable-pf
932 %else
933 %define _with_pf --disable-pf
934 %endif
936 %if %{with_pinba}
937 %define _with_pinba --enable-pinba
938 %else
939 %define _with_pinba --disable-pinba
940 %endif
942 %if %{with_ping}
943 %define _with_ping --enable-ping
944 %else
945 %define _with_ping --disable-ping
946 %endif
948 %if %{with_postgresql}
949 %define _with_postgresql --enable-postgresql
950 %else
951 %define _with_postgresql --disable-postgresql
952 %endif
954 %if %{with_powerdns}
955 %define _with_powerdns --enable-powerdns
956 %else
957 %define _with_powerdns --disable-powerdns
958 %endif
960 %if %{with_processes}
961 %define _with_processes --enable-processes
962 %else
963 %define _with_processes --disable-processes
964 %endif
966 %if %{with_protocols}
967 %define _with_protocols --enable-protocols
968 %else
969 %define _with_protocols --disable-protocols
970 %endif
972 %if %{with_python}
973 %define _with_python --enable-python
974 %else
975 %define _with_python --disable-python
976 %endif
978 %if %{with_redis}
979 %define _with_redis --enable-redis
980 %else
981 %define _with_redis --disable-redis
982 %endif
984 %if %{with_routeros}
985 %define _with_routeros --enable-routeros
986 %else
987 %define _with_routeros --disable-routeros
988 %endif
990 %if %{with_rrdcached}
991 %define _with_rrdcached --enable-rrdcached
992 %else
993 %define _with_rrdcached --disable-rrdcached
994 %endif
996 %if %{with_rrdtool}
997 %define _with_rrdtool --enable-rrdtool
998 %else
999 %define _with_rrdtool --disable-rrdtool
1000 %endif
1002 %if %{with_sensors}
1003 %define _with_sensors --enable-sensors
1004 %else
1005 %define _with_sensors --disable-sensors
1006 %endif
1008 %if %{with_serial}
1009 %define _with_serial --enable-serial
1010 %else
1011 %define _with_serial --disable-serial
1012 %endif
1014 %if %{with_snmp}
1015 %define _with_snmp --enable-snmp
1016 %else
1017 %define _with_snmp --disable-snmp
1018 %endif
1020 %if %{with_swap}
1021 %define _with_swap --enable-swap
1022 %else
1023 %define _with_swap --disable-swap
1024 %endif
1026 %if %{with_syslog}
1027 %define _with_syslog --enable-syslog
1028 %else
1029 %define _with_syslog --disable-syslog
1030 %endif
1032 %if %{with_table}
1033 %define _with_table --enable-table
1034 %else
1035 %define _with_table --disable-table
1036 %endif
1038 %if %{with_tail}
1039 %define _with_tail --enable-tail
1040 %else
1041 %define _with_tail --disable-tail
1042 %endif
1044 %if %{with_tape}
1045 %define _with_tape --enable-tape
1046 %else
1047 %define _with_tape --disable-tape
1048 %endif
1050 %if %{with_tcpconns}
1051 %define _with_tcpconns --enable-tcpconns
1052 %else
1053 %define _with_tcpconns --disable-tcpconns
1054 %endif
1056 %if %{with_teamspeak2}
1057 %define _with_teamspeak2 --enable-teamspeak2
1058 %else
1059 %define _with_teamspeak2 --disable-teamspeak2
1060 %endif
1062 %if %{with_ted}
1063 %define _with_ted --enable-ted
1064 %else
1065 %define _with_ted --disable-ted
1066 %endif
1068 %if %{with_thermal}
1069 %define _with_thermal --enable-thermal
1070 %else
1071 %define _with_thermal --disable-thermal
1072 %endif
1074 %if %{with_threshold}
1075 %define _with_threshold --enable-threshold
1076 %else
1077 %define _with_threshold --disable-threshold
1078 %endif
1080 %if %{with_tokyotyrant}
1081 %define _with_tokyotyrant --enable-tokyotyrant
1082 %else
1083 %define _with_tokyotyrant --disable-tokyotyrant
1084 %endif
1086 %if %{with_unixsock}
1087 %define _with_unixsock --enable-unixsock
1088 %else
1089 %define _with_unixsock --disable-unixsock
1090 %endif
1092 %if %{with_uptime}
1093 %define _with_uptime --enable-uptime
1094 %else
1095 %define _with_uptime --disable-uptime
1096 %endif
1098 %if %{with_users}
1099 %define _with_users --enable-users
1100 %else
1101 %define _with_users --disable-users
1102 %endif
1104 %if %{with_uuid}
1105 %define _with_uuid --enable-uuid
1106 %else
1107 %define _with_uuid --disable-uuid
1108 %endif
1110 %if %{with_varnish}
1111 %define _with_varnish --enable-varnish
1112 %else
1113 %define _with_varnish --disable-varnish
1114 %endif
1116 %if %{with_vmem}
1117 %define _with_vmem --enable-vmem
1118 %else
1119 %define _with_vmem --disable-vmem
1120 %endif
1122 %if %{with_vserver}
1123 %define _with_vserver --enable-vserver
1124 %else
1125 %define _with_vserver --disable-vserver
1126 %endif
1128 %if %{with_wireless}
1129 %define _with_wireless --enable-wireless
1130 %else
1131 %define _with_wireless --disable-wireless
1132 %endif
1134 %if %{with_write_graphite}
1135 %define _with_write_graphite --enable-write_graphite
1136 %else
1137 %define _with_write_graphite --disable-write_graphite
1138 %endif
1140 %if %{with_write_http}
1141 %define _with_write_http --enable-write_http
1142 %else
1143 %define _with_write_http --disable-write_http
1144 %endif
1146 %if %{with_write_mongodb}
1147 %define _with_write_mongodb --enable-write_mongodb
1148 %else
1149 %define _with_write_mongodb --disable-write_mongodb --without-libmongoc
1150 %endif
1152 %if %{with_write_redis}
1153 %define _with_write_redis --enable-write_redis
1154 %else
1155 %define _with_write_redis --disable-write_redis --without-libcredis
1156 %endif
1158 %if %{with_xmms}
1159 %define _with_xmms --enable-xmms
1160 %else
1161 %define _with_xmms --disable-xmms
1162 %endif
1164 %if %{with_zfs_arc}
1165 %define _with_zfs_arc --enable-zfs_arc
1166 %else
1167 %define _with_zfs_arc --disable-zfs_arc
1168 %endif
1170 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1171         --disable-static \
1172         --without-included-ltdl \
1173         --enable-all-plugins=yes \
1174         --enable-aggregation \
1175         --enable-match_empty_counter \
1176         --enable-match_hashed \
1177         --enable-match_regex \
1178         --enable-match_timediff \
1179         --enable-match_value \
1180         --enable-target_notification \
1181         --enable-target_replace \
1182         --enable-target_scale \
1183         --enable-target_set \
1184         --enable-target_v5upgrade \
1185         %{?_with_aggregation} \
1186         %{?_with_amqp} \
1187         %{?_with_apache} \
1188         %{?_with_apcups} \
1189         %{?_with_apple_sensors} \
1190         %{?_with_ascent} \
1191         %{?_with_battery} \
1192         %{?_with_bind} \
1193         %{?_with_conntrack} \
1194         %{?_with_contextswitch} \
1195         %{?_with_cpu} \
1196         %{?_with_cpufreq} \
1197         %{?_with_csv} \
1198         %{?_with_curl} \
1199         %{?_with_curl_json} \
1200         %{?_with_curl_xml} \
1201         %{?_with_dbi} \
1202         %{?_with_df} \
1203         %{?_with_disk} \
1204         %{?_with_dns} \
1205         %{?_with_email} \
1206         %{?_with_entropy} \
1207         %{?_with_ethstat} \
1208         %{?_with_exec} \
1209         %{?_with_filecount} \
1210         %{?_with_fscache} \
1211         %{?_with_gmond} \
1212         %{?_with_hddtemp} \
1213         %{?_with_interface} \
1214         %{?_with_ipmi} \
1215         %{?_with_iptables} \
1216         %{?_with_ipvs} \
1217         %{?_with_java} \
1218         %{?_with_libvirt} \
1219         %{?_with_lpar} \
1220         %{?_with_memcachec} \
1221         %{?_with_modbus} \
1222         %{?_with_multimeter} \
1223         %{?_with_mysql} \
1224         %{?_with_netapp} \
1225         %{?_with_netlink} \
1226         %{?_with_nginx} \
1227         %{?_with_notify_desktop} \
1228         %{?_with_notify_email} \
1229         %{?_with_nut} \
1230         %{?_with_onewire} \
1231         %{?_with_oracle} \
1232         %{?_with_perl} \
1233         %{?_with_pf} \
1234         %{?_with_pinba} \
1235         %{?_with_ping} \
1236         %{?_with_postgresql} \
1237         %{?_with_python} \
1238         %{?_with_redis} \
1239         %{?_with_routeros} \
1240         %{?_with_rrdcached} \
1241         %{?_with_rrdtool} \
1242         %{?_with_sensors} \
1243         %{?_with_snmp} \
1244         %{?_with_tape} \
1245         %{?_with_tokyotyrant} \
1246         %{?_with_varnish} \
1247         %{?_with_write_http} \
1248         %{?_with_write_mongodb} \
1249         %{?_with_write_redis} \
1250         %{?_with_xmms} \
1251         %{?_with_zfs_arc} \
1252         %{?_with_irq} \
1253         %{?_with_load} \
1254         %{?_with_logfile} \
1255         %{?_with_madwifi} \
1256         %{?_with_mbmon} \
1257         %{?_with_md} \
1258         %{?_with_memcached} \
1259         %{?_with_memory} \
1260         %{?_with_network} \
1261         %{?_with_nfs} \
1262         %{?_with_ntpd} \
1263         %{?_with_numa} \
1264         %{?_with_olsrd} \
1265         %{?_with_openvpn} \
1266         %{?_with_powerdns} \
1267         %{?_with_processes} \
1268         %{?_with_protocols} \
1269         %{?_with_serial} \
1270         %{?_with_swap} \
1271         %{?_with_syslog} \
1272         %{?_with_table} \
1273         %{?_with_tail} \
1274         %{?_with_tcpconns} \
1275         %{?_with_teamspeak2} \
1276         %{?_with_ted} \
1277         %{?_with_thermal} \
1278         %{?_with_threshold} \
1279         %{?_with_unixsock} \
1280         %{?_with_uptime} \
1281         %{?_with_users} \
1282         %{?_with_uuid} \
1283         %{?_with_vmem} \
1284         %{?_with_vserver} \
1285         %{?_with_wireless}\
1286         %{?_with_write_graphite} \
1287         %{?_with_write_http}
1290 %{__make} %{?_smp_mflags}
1293 %install
1294 rm -rf %{buildroot}
1295 %{__make} install DESTDIR=%{buildroot}
1296 %{__install} -Dp -m 0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1297 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1298 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
1299 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1301 %{__mkdir} -p %{buildroot}%{_localstatedir}/www
1302 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
1304 %{__cp} -a contrib/collection3 %{buildroot}%{_localstatedir}/www
1305 %{__cp} -a contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1307 %{__cp} -a contrib/php-collection %{buildroot}%{_localstatedir}/www
1308 %{__cp} -a contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1310 ### Clean up docs
1311 find contrib/ -type f -exec %{__chmod} a-x {} \;
1312 # *.la files shouldn't be distributed.
1313 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1315 # Move the Perl examples to a separate directory.
1316 mkdir perl-examples
1317 find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
1319 # Remove Perl hidden .packlist files.
1320 find %{buildroot} -type f -name .packlist -delete
1321 # Remove Perl temporary file perllocal.pod
1322 find %{buildroot} -type f -name perllocal.pod -delete
1324 %if ! %{with_java}
1325 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
1326 %endif
1328 %if ! %{with_perl}
1329 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
1330 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
1331 %endif
1333 %if ! %{with_python}
1334 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
1335 %endif
1337 %if ! %{with_snmp}
1338 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
1339 %endif
1342 %clean
1343 rm -rf %{buildroot}
1345 %post
1346 /sbin/chkconfig --add collectd
1348 %preun
1349 if [ $1 -eq 0 ]; then
1350         /sbin/service collectd stop &>/dev/null
1351         /sbin/chkconfig --del collectd
1352 fi
1354 %postun
1355 if [ $1 -ge 1 ]; then
1356         /sbin/service collectd condrestart &>/dev/null || :
1357 fi
1359 %post -n libcollectdclient -p /sbin/ldconfig
1360 %postun -n libcollectdclient -p /sbin/ldconfig
1363 %files
1364 %doc AUTHORS COPYING ChangeLog README
1365 %config(noreplace) %{_sysconfdir}/collectd.conf
1366 %{_initrddir}/collectd
1367 %{_sbindir}/collectd
1368 %{_bindir}/collectd-nagios
1369 %{_bindir}/collectd-tg
1370 %{_bindir}/collectdctl
1371 %{_sbindir}/collectdmon
1372 %{_datadir}/collectd/
1373 %{_sharedstatedir}/collectd
1374 %{_mandir}/man1/collectd-nagios.1*
1375 %{_mandir}/man1/collectd.1*
1376 %{_mandir}/man1/collectdctl.1*
1377 %{_mandir}/man1/collectdmon.1*
1378 %{_mandir}/man5/collectd-email.5*
1379 %{_mandir}/man5/collectd-exec.5*
1380 %{_mandir}/man5/collectd-threshold.5*
1381 %{_mandir}/man5/collectd-unixsock.5*
1382 %{_mandir}/man5/collectd.conf.5*
1383 %{_mandir}/man5/types.db.5*
1385 # all plugins bundled with the main collectd package
1386 %{_libdir}/%{name}/match_empty_counter.so
1387 %{_libdir}/%{name}/match_hashed.so
1388 %{_libdir}/%{name}/match_regex.so
1389 %{_libdir}/%{name}/match_timediff.so
1390 %{_libdir}/%{name}/match_value.so
1391 %{_libdir}/%{name}/target_notification.so
1392 %{_libdir}/%{name}/target_replace.so
1393 %{_libdir}/%{name}/target_scale.so
1394 %{_libdir}/%{name}/target_set.so
1395 %{_libdir}/%{name}/target_v5upgrade.so
1397 %if %{with_aggregation}
1398 %{_libdir}/%{name}/aggregation.so
1399 %endif
1400 %if %{with_apcups}
1401 %{_libdir}/%{name}/apcups.so
1402 %endif
1403 %if %{with_battery}
1404 %{_libdir}/%{name}/battery.so
1405 %endif
1406 %if %{with_conntrack}
1407 %{_libdir}/%{name}/conntrack.so
1408 %endif
1409 %if %{with_contextswitch}
1410 %{_libdir}/%{name}/contextswitch.so
1411 %endif
1412 %if %{with_cpu}
1413 %{_libdir}/%{name}/cpu.so
1414 %endif
1415 %if %{with_cpufreq}
1416 %{_libdir}/%{name}/cpufreq.so
1417 %endif
1418 %if %{with_csv}
1419 %{_libdir}/%{name}/csv.so
1420 %endif
1421 %if %{with_df}
1422 %{_libdir}/%{name}/df.so
1423 %endif
1424 %if %{with_disk}
1425 %{_libdir}/%{name}/disk.so
1426 %endif
1427 %if %{with_ethstat}
1428 %{_libdir}/%{name}/ethstat.so
1429 %endif
1430 %if %{with_entropy}
1431 %{_libdir}/%{name}/entropy.so
1432 %endif
1433 %if %{with_exec}
1434 %{_libdir}/%{name}/exec.so
1435 %endif
1436 %if %{with_filecount}
1437 %{_libdir}/%{name}/filecount.so
1438 %endif
1439 %if %{with_fscache}
1440 %{_libdir}/%{name}/fscache.so
1441 %endif
1442 %if %{with_interface}
1443 %{_libdir}/%{name}/interface.so
1444 %endif
1445 %if %{with_ipvs}
1446 %{_libdir}/%{name}/ipvs.so
1447 %endif
1448 %if %{with_irq}
1449 %{_libdir}/%{name}/irq.so
1450 %endif
1451 %if %{with_load}
1452 %{_libdir}/%{name}/load.so
1453 %endif
1454 %if %{with_logfile}
1455 %{_libdir}/%{name}/logfile.so
1456 %endif
1457 %if %{with_madwifi}
1458 %{_libdir}/%{name}/madwifi.so
1459 %endif
1460 %if %{with_mbmon}
1461 %{_libdir}/%{name}/mbmon.so
1462 %endif
1463 %if %{with_md}
1464 %{_libdir}/%{name}/md.so
1465 %endif
1466 %if %{with_memcached}
1467 %{_libdir}/%{name}/memcached.so
1468 %endif
1469 %if %{with_memory}
1470 %{_libdir}/%{name}/memory.so
1471 %endif
1472 %if %{with_multimeter}
1473 %{_libdir}/%{name}/multimeter.so
1474 %endif
1475 %if %{with_network}
1476 %{_libdir}/%{name}/network.so
1477 %endif
1478 %if %{with_nfs}
1479 %{_libdir}/%{name}/nfs.so
1480 %endif
1481 %if %{with_ntpd}
1482 %{_libdir}/%{name}/ntpd.so
1483 %endif
1484 %if %{with_numa}
1485 %{_libdir}/%{name}/numa.so
1486 %endif
1487 %if %{with_openvpn}
1488 %{_libdir}/%{name}/openvpn.so
1489 %endif
1490 %if %{with_olsrd}
1491 %{_libdir}/%{name}/olsrd.so
1492 %endif
1493 %if %{with_powerdns}
1494 %{_libdir}/%{name}/powerdns.so
1495 %endif
1496 %if %{with_processes}
1497 %{_libdir}/%{name}/processes.so
1498 %endif
1499 %if %{with_protocols}
1500 %{_libdir}/%{name}/protocols.so
1501 %endif
1502 %if %{with_serial}
1503 %{_libdir}/%{name}/serial.so
1504 %endif
1505 %if %{with_swap}
1506 %{_libdir}/%{name}/swap.so
1507 %endif
1508 %if %{with_syslog}
1509 %{_libdir}/%{name}/syslog.so
1510 %endif
1511 %if %{with_table}
1512 %{_libdir}/%{name}/table.so
1513 %endif
1514 %if %{with_tail}
1515 %{_libdir}/%{name}/tail.so
1516 %endif
1517 %if %{with_tcpconns}
1518 %{_libdir}/%{name}/tcpconns.so
1519 %endif
1520 %if %{with_teamspeak2}
1521 %{_libdir}/%{name}/teamspeak2.so
1522 %endif
1523 %if %{with_ted}
1524 %{_libdir}/%{name}/ted.so
1525 %endif
1526 %if %{with_thermal}
1527 %{_libdir}/%{name}/thermal.so
1528 %endif
1529 %if %{with_load}
1530 %{_libdir}/%{name}/threshold.so
1531 %endif
1532 %if %{with_unixsock}
1533 %{_libdir}/%{name}/unixsock.so
1534 %endif
1535 %if %{with_uptime}
1536 %{_libdir}/%{name}/uptime.so
1537 %endif
1538 %if %{with_users}
1539 %{_libdir}/%{name}/users.so
1540 %endif
1541 %if %{with_uuid}
1542 %{_libdir}/%{name}/uuid.so
1543 %endif
1544 %if %{with_vmem}
1545 %{_libdir}/%{name}/vmem.so
1546 %endif
1547 %if %{with_vserver}
1548 %{_libdir}/%{name}/vserver.so
1549 %endif
1550 %if %{with_wireless}
1551 %{_libdir}/%{name}/wireless.so
1552 %endif
1553 %if %{with_write_graphite}
1554 %{_libdir}/%{name}/write_graphite.so
1555 %endif
1557 # All plugins not built by default because of dependencies on libraries not
1558 # available in RHEL or EPEL:
1559 # plugin modbus disabled, requires libmodbus
1560 # plugin netlink disabled, requires libnetlink.h
1561 # plugin numa disabled, requires libnetapp
1562 # plugin onewire disabled, requires libowfs
1563 # plugin oracle disabled, requires Oracle
1564 # plugin redis disabled, requires credis
1565 # plugin routeros disabled, requires librouteros
1566 # plugin rrdcached disabled, requires rrdtool >= 1.4
1567 # plugin tokyotyrant disabled, requires tcrdb.h
1568 # plugin write_mongodb disabled, requires libmongoc
1569 # plugin write_redis disabled, requires credis
1570 # plugin xmms disabled, requires xmms
1573 %files -n libcollectdclient-devel
1574 %{_includedir}/collectd/client.h
1575 %{_includedir}/collectd/network.h
1576 %{_includedir}/collectd/network_buffer.h
1577 %{_includedir}/collectd/lcc_features.h
1578 %{_libdir}/pkgconfig/libcollectdclient.pc
1580 %files -n libcollectdclient
1581 %{_libdir}/libcollectdclient.so
1582 %{_libdir}/libcollectdclient.so.*
1584 %if %{with_amqp}
1585 %files amqp
1586 %{_libdir}/%{name}/amqp.so
1587 %endif
1589 %if %{with_apache}
1590 %files apache
1591 %{_libdir}/%{name}/apache.so
1592 %endif
1594 %if %{with_ascent}
1595 %files ascent
1596 %{_libdir}/%{name}/ascent.so
1597 %endif
1599 %if %{with_bind}
1600 %files bind
1601 %{_libdir}/%{name}/bind.so
1602 %endif
1604 %if %{with_curl}
1605 %files curl
1606 %{_libdir}/%{name}/curl.so
1607 %endif
1609 %if %{with_curl_json}
1610 %files curl_json
1611 %{_libdir}/%{name}/curl_json.so
1612 %endif
1614 %if %{with_curl_xml}
1615 %files curl_xml
1616 %{_libdir}/%{name}/curl_xml.so
1617 %endif
1619 %if %{with_dns}
1620 %files dns
1621 %{_libdir}/%{name}/dns.so
1622 %endif
1624 %if %{with_dbi}
1625 %files dbi
1626 %{_libdir}/%{name}/dbi.so
1627 %endif
1629 %if %{with_email}
1630 %files email
1631 %{_libdir}/%{name}/email.so
1632 %endif
1634 %if %{with_gmond}
1635 %files gmond
1636 %{_libdir}/%{name}/gmond.so
1637 %endif
1639 %if %{with_hddtemp}
1640 %files hddtemp
1641 %{_libdir}/%{name}/hddtemp.so
1642 %endif
1644 %if %{with_ipmi}
1645 %files ipmi
1646 %{_libdir}/%{name}/ipmi.so
1647 %endif
1649 %if %{with_iptables}
1650 %files iptables
1651 %{_libdir}/%{name}/iptables.so
1652 %endif
1654 %if %{with_java}
1655 %files java
1656 %{_datarootdir}/collectd/java/collectd-api.jar
1657 %{_datarootdir}/collectd/java/generic-jmx.jar
1658 %{_libdir}/%{name}/java.so
1659 %{_mandir}/man5/collectd-java.5*
1660 %endif
1662 %if %{with_libvirt}
1663 %files libvirt
1664 %{_libdir}/%{name}/libvirt.so
1665 %endif
1667 %if %{with_memcachec}
1668 %files memcachec
1669 %{_libdir}/%{name}/memcachec.so
1670 %endif
1672 %if %{with_mysql}
1673 %files mysql
1674 %{_libdir}/%{name}/mysql.so
1675 %endif
1677 %if %{with_nginx}
1678 %files nginx
1679 %{_libdir}/%{name}/nginx.so
1680 %endif
1682 %if %{with_notify_desktop}
1683 %files notify_desktop
1684 %{_libdir}/%{name}/notify_desktop.so
1685 %endif
1687 %if %{with_notify_email}
1688 %files notify_email
1689 %{_libdir}/%{name}/notify_email.so
1690 %endif
1692 %if %{with_nut}
1693 %files nut
1694 %{_libdir}/%{name}/nut.so
1695 %endif
1697 %if %{with_perl}
1698 %files perl
1699 %doc perl-examples/*
1700 %{perl_vendorlib}/Collectd.pm
1701 %{perl_vendorlib}/Collectd/
1702 %{_mandir}/man3/Collectd::Unixsock.3pm*
1703 %{_mandir}/man5/collectd-perl.5*
1704 %{_libdir}/%{name}/perl.so
1705 %endif
1707 %if %{with_pinba}
1708 %files pinba
1709 %{_libdir}/%{name}/pinba.so
1710 %endif
1712 %if %{with_ping}
1713 %files ping
1714 %{_libdir}/%{name}/ping.so
1715 %endif
1717 %if %{with_postgresql}
1718 %files postgresql
1719 %{_datarootdir}/collectd/postgresql_default.conf
1720 %{_libdir}/%{name}/postgresql.so
1721 %endif
1723 %if %{with_python}
1724 %files python
1725 %{_mandir}/man5/collectd-python*
1726 %{_libdir}/%{name}/python.so
1727 %endif
1729 %if %{with_redis}
1730 %files redis
1731 %{_libdir}/%{name}/redis.so
1732 %endif
1734 %if %{with_rrdcached}
1735 %files rrdcached
1736 %{_libdir}/%{name}/rrdcached.so
1737 %endif
1739 %if %{with_rrdtool}
1740 %files rrdtool
1741 %{_libdir}/%{name}/rrdtool.so
1742 %endif
1744 %if %{with_sensors}
1745 %files sensors
1746 %{_libdir}/%{name}/sensors.so
1747 %endif
1749 %if %{with_snmp}
1750 %files snmp
1751 %{_mandir}/man5/collectd-snmp.5*
1752 %{_libdir}/%{name}/snmp.so
1753 %endif
1755 %if %{with_varnish}
1756 %files varnish
1757 %{_libdir}/%{name}/varnish.so
1758 %endif
1760 %if %{with_write_http}
1761 %files write_http
1762 %{_libdir}/%{name}/write_http.so
1763 %endif
1765 %if %{with_write_redis}
1766 %files write_redis
1767 %{_libdir}/%{name}/write_redis.so
1768 %endif
1770 %files collection3
1771 %{_localstatedir}/www/collection3
1772 %{_sysconfdir}/httpd/conf.d/collection3.conf
1774 %files php-collection
1775 %{_localstatedir}/www/php-collection
1776 %{_sysconfdir}/httpd/conf.d/php-collection.conf
1778 %files contrib
1779 %doc contrib/
1781 %changelog
1782 * Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
1783 - collection3 and php-collection viewers are now in separate packages
1785 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
1786 - New upstream version
1787 - Enabled aggregation plugin
1788 - Installed collectd-tc
1789 - Added network.h and network_buffer.h to libcollectdclient-devel
1790 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
1791 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
1792 - Added rrdcached and redis plugin descriptions
1793 - Mentioned new pf plugin in disabled plugins list
1795 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
1796 - Follow Fedora Packaging Guidelines in java subpackage
1798 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
1799 - Move perl stuff to perl_vendorlib
1800 - Replace hardcoded paths with macros
1801 - Remove unneccesary Requires
1802 - Removed .a and .la files
1803 - Some other small cleanups
1805 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
1806 - New upstream version
1807 - Changes to support 5.1.0
1808 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
1809 - All plugins requiring external libraries are now shipped in seperate
1810   packages.
1811 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
1812   the build process + ensure build deps are installed.
1813 - Dropped per-plugin configuration files, as they tend to diverge from upstream
1814   defaults.
1815 - Moved perl stuff to /usr/share/perl5/
1816 - Don't alter Interval and ReadThreads by default, let the user change this
1817   himself.
1818 - Initscript improvements:
1819   * checks configuration before (re)starting, based on debian's initscript
1820   * use /etc/sysconfig instdead of /etc/default
1821   * include optional $ARGS in arguments passed to collectd.
1822 - Drop collection.cgi from main package, as it's been obsoleted by collection3
1823 - Moved contrib/ to its own package, to avoid cluttering the main package with
1824   non-essential stuff.
1825 - Replaced BuildPrereq by BuildRequires
1827 * Tue Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
1828 - New upstream version
1829 - Changes to support 5.0.1
1831 * Tue Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
1832 - New upstream version
1833 - Changes to support 4.9.0
1834 - Added support for Java/GenericJMX plugin
1836 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
1837 - New upstream version
1838 - Changes to support 4.3.1
1839 - Added More Prereqs to support more plugins
1840 - Added support for perl plugin
1842 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
1843 - New upstream version
1845 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
1846 - New major releas
1847 - Changes to support 4.0.5
1849 * Wed Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
1850 - fixed spec file to build correctly on fedora core
1851 - added improved init.d script to work with chkconfig
1852 - added %%post and %%postun to call chkconfig automatically
1854 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
1855 - New upstream version
1857 * Tue Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
1858 - New upstream version
1860 * Tue Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
1861 - New upstream version
1863 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
1864 - New upstream version
1866 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
1867 - New upstream version
1869 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
1870 - New upstream version
1872 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
1873 - New upstream version
1874 - Added the `apache' package.
1876 * Thu Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
1877 - New upstream version
1879 * Thu Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
1880 - New upstream version
1882 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
1883 - New upstream version
1885 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
1886 - Include `tape.so' so the build doesn't terminate because of missing files..
1887 - New upstream version
1889 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
1890 - New upstream version
1892 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
1893 - New upstream version
1894 - Removed the extra `hddtemp' package
1896 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
1897 - New upstream version
1899 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
1900 - New upstream version
1902 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
1903 - New upstream version
1904 - Added config file, `collectd.conf(5)', `df.so'
1905 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
1907 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
1908 - New upstream version
1910 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
1911 - New upstream version
1913 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
1914 - New upstream version
1916 * Tue Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
1917 - New upstream version
1918 - Added statement to remove the `*.la' files. This fixes a problem when
1919   `Unpackaged files terminate build' is in effect.
1920 - Added `processes.so*' to the main package
1922 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
1923 - New upstream version
1924 - Added package `collectd-hddtemp'
1926 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
1927 - New upstream version
1928 - Split the package into `collectd' and `collectd-sensors'
1930 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
1931 - New upstream version
1933 * Mon Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
1934 - New upstream version
1936 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
1937 - New upstream version
1939 * Sun Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
1940 - New upstream version
1942 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
1943 - New upstream version
1945 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
1946 - New upstream version
1948 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
1949 - New upstream version
1951 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
1952 - New upstream version
1954 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
1955 - Built on RedHat 7.3