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