redhat/collectd.spec - typo.
[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_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}
89
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}
108
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>
120
121 Requires(post):         chkconfig
122 Requires(preun):        chkconfig, initscripts
123 Requires(postun):       initscripts
124
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.
132
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
143
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
153
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
165
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
176
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
187
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
198
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
209
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
220
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
232
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
241
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
252
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
262
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
273
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
285
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
297
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
307
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
319
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
330
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
340
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
351
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
362
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
372
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
384
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
395
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
406
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
417
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
428
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
439
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
450
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
460
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
470
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
480
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
490
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
501
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
511
512 %package contrib
513 Summary:        Contrib files for collectd
514 Group:          System Environment/Daemons
515 Requires:       %{name}%{?_isa} = %{version}-%{release}
516 %description contrib
517 All the files found under contrib/ in the source tree are bundled in this
518 package.
519
520 %package -n libcollectdclient
521 Summary:        Collectd client library
522 %description -n libcollectdclient
523 Collectd client library
524
525 %package -n libcollectdclient-devel
526 Summary:        Development files for libcollectdclient
527 Requires:       pkgconfig
528 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
529 %description -n libcollectdclient-devel
530 Development files for libcollectdclient
531
532
533 %prep
534 %setup -q
535
536
537 %build
538 %if %{with_aggregation}
539 %define _with_aggregation --enable-aggregation
540 %else
541 %define _with_aggregation --disable-aggregation
542 %endif
543
544 %if %{with_amqp}
545 %define _with_amqp --enable-amqp
546 %else
547 %define _with_amqp --disable-amqp
548 %endif
549
550 %if %{with_apache}
551 %define _with_apache --enable-apache
552 %else
553 %define _with_apache --disable-apache
554 %endif
555
556 %if %{with_apcups}
557 %define _with_apcups --enable-apcups
558 %else
559 %define _with_apcups --disable-apcups
560 %endif
561
562 %if %{with_apple_sensors}
563 %define _with_apple_sensors --enable-apple_sensors
564 %else
565 %define _with_apple_sensors --disable-apple_sensors
566 %endif
567
568 %if %{with_ascent}
569 %define _with_ascent --enable-ascent
570 %else
571 %define _with_ascent --disable-ascent
572 %endif
573
574 %if %{with_battery}
575 %define _with_battery --enable-battery
576 %else
577 %define _with_battery --disable-battery
578 %endif
579
580 %if %{with_bind}
581 %define _with_bind --enable-bind
582 %else
583 %define _with_bind --disable-bind
584 %endif
585
586 %if %{with_conntrack}
587 %define _with_conntrack --enable-conntrack
588 %else
589 %define _with_conntrack --disable-conntrack
590 %endif
591
592 %if %{with_contextswitch}
593 %define _with_contextswitch --enable-contextswitch
594 %else
595 %define _with_contextswitch --disable-contextswitch
596 %endif
597
598 %if %{with_cpu}
599 %define _with_cpu --enable-cpu
600 %else
601 %define _with_cpu --disable-cpu
602 %endif
603
604 %if %{with_cpufreq}
605 %define _with_cpufreq --enable-cpufreq
606 %else
607 %define _with_cpufreq --disable-cpufreq
608 %endif
609
610 %if %{with_csv}
611 %define _with_csv --enable-csv
612 %else
613 %define _with_csv --disable-csv
614 %endif
615
616 %if %{with_curl}
617 %define _with_curl --enable-curl
618 %else
619 %define _with_curl --disable-curl
620 %endif
621
622 %if %{with_curl_json}
623 %define _with_curl_json --enable-curl_json
624 %else
625 %define _with_curl_json --disable-curl_json
626 %endif
627
628 %if %{with_curl_xml}
629 %define _with_curl_xml --enable-curl_xml
630 %else
631 %define _with_curl_xml --disable-curl_xml
632 %endif
633
634 %if %{with_dbi}
635 %define _with_dbi --enable-dbi
636 %else
637 %define _with_dbi --disable-dbi --without-libdbi
638 %endif
639
640 %if %{with_df}
641 %define _with_df --enable-df
642 %else
643 %define _with_df --disable-df
644 %endif
645
646 %if %{with_disk}
647 %define _with_disk --enable-disk
648 %else
649 %define _with_disk --disable-disk
650 %endif
651
652 %if %{with_dns}
653 %define _with_dns --enable-dns
654 %else
655 %define _with_dns --disable-dns
656 %endif
657
658 %if %{with_email}
659 %define _with_email --enable-email
660 %else
661 %define _with_email --disable-email
662 %endif
663
664 %if %{with_entropy}
665 %define _with_entropy --enable-entropy
666 %else
667 %define _with_entropy --disable-entropy
668 %endif
669
670 %if %{with_ethstat}
671 %define _with_ethstat --enable-ethstat
672 %else
673 %define _with_ethstat --disable-ethstat
674 %endif
675
676 %if %{with_exec}
677 %define _with_exec --enable-exec
678 %else
679 %define _with_exec --disable-exec
680 %endif
681
682 %if %{with_filecount}
683 %define _with_filecount --enable-filecount
684 %else
685 %define _with_filecount --disable-filecount
686 %endif
687
688 %if %{with_fscache}
689 %define _with_fscache --enable-fscache
690 %else
691 %define _with_fscache --disable-fscache
692 %endif
693
694 %if %{with_gmond}
695 %define _with_gmond --enable-gmond
696 %else
697 %define _with_gmond --disable-gmond
698 %endif
699
700 %if %{with_hddtemp}
701 %define _with_hddtemp --enable-hddtemp
702 %else
703 %define _with_hddtemp --disable-hddtemp
704 %endif
705
706 %if %{with_interface}
707 %define _with_interface --enable-interface
708 %else
709 %define _with_interface --disable-interface
710 %endif
711
712 %if %{with_ipmi}
713 %define _with_ipmi --enable-ipmi
714 %else
715 %define _with_ipmi --disable-ipmi
716 %endif
717
718 %if %{with_iptables}
719 %define _with_iptables --enable-iptables
720 %else
721 %define _with_iptables --disable-iptables
722 %endif
723
724 %if %{with_ipvs}
725 %define _with_ipvs --enable-ipvs
726 %else
727 %define _with_ipvs --disable-ipvs
728 %endif
729
730 %if %{with_irq}
731 %define _with_irq --enable-irq
732 %else
733 %define _with_irq --disable-irq
734 %endif
735
736 %if %{with_java}
737 %define _with_java --enable-java --with-java=%{java_home}/
738 %else
739 %define _with_java --disable-java
740 %endif
741
742 %if %{with_libvirt}
743 %define _with_libvirt --enable-libvirt
744 %else
745 %define _with_libvirt --disable-libvirt
746 %endif
747
748 %if %{with_load}
749 %define _with_load --enable-load
750 %else
751 %define _with_load --disable-load
752 %endif
753
754 %if %{with_logfile}
755 %define _with_logfile --enable-logfile
756 %else
757 %define _with_logfile --disable-logfile
758 %endif
759
760 %if %{with_lpar}
761 %define _with_lpar --enable-lpar
762 %else
763 %define _with_lpar --disable-lpar
764 %endif
765
766 %if %{with_madwifi}
767 %define _with_madwifi --enable-madwifi
768 %else
769 %define _with_madwifi --disable-madwifi
770 %endif
771
772 %if %{with_mbmon}
773 %define _with_mbmon --enable-mbmon
774 %else
775 %define _with_mbmon --disable-mbmon
776 %endif
777
778 %if %{with_md}
779 %define _with_md --enable-md
780 %else
781 %define _with_md --disable-md
782 %endif
783
784 %if %{with_memcachec}
785 %define _with_memcachec --enable-memcachec
786 %else
787 %define _with_memcachec --disable-memcachec
788 %endif
789
790 %if %{with_memcached}
791 %define _with_memcached --enable-memcached
792 %else
793 %define _with_memcached --disable-memcached
794 %endif
795
796 %if %{with_memory}
797 %define _with_memory --enable-memory
798 %else
799 %define _with_memory --disable-memory
800 %endif
801
802 %if %{with_modbus}
803 %define _with_modbus --enable-modbus
804 %else
805 %define _with_modbus --disable-modbus
806 %endif
807
808 %if %{with_multimeter}
809 %define _with_multimeter --enable-multimeter
810 %else
811 %define _with_multimeter --disable-multimeter
812 %endif
813
814 %if %{with_mysql}
815 %define _with_mysql --enable-mysql
816 %else
817 %define _with_mysql --disable-mysql
818 %endif
819
820 %if %{with_netapp}
821 %define _with_netapp --enable-netapp
822 %else
823 %define _with_netapp --disable-netapp
824 %endif
825
826 %if %{with_netlink}
827 %define _with_netlink --enable-netlink
828 %else
829 %define _with_netlink --disable-netlink
830 %endif
831
832 %if %{with_network}
833 %define _with_network --enable-network
834 %else
835 %define _with_network --disable-network
836 %endif
837
838 %if %{with_nfs}
839 %define _with_nfs --enable-nfs
840 %else
841 %define _with_nfs --disable-nfs
842 %endif
843
844 %if %{with_nginx}
845 %define _with_nginx --enable-nginx
846 %else
847 %define _with_nginx --disable-nginx
848 %endif
849
850 %if %{with_notify_desktop}
851 %define _with_notify_desktop --enable-notify_desktop
852 %else
853 %define _with_notify_desktop --disable-notify_desktop
854 %endif
855
856 %if %{with_notify_email}
857 %define _with_notify_email --enable-notify_email
858 %else
859 %define _with_notify_email --disable-notify_email --without-libesmpt
860 %endif
861
862 %if %{with_ntpd}
863 %define _with_ntpd --enable-ntpd
864 %else
865 %define _with_ntpd --disable-ntpd
866 %endif
867
868 %if %{with_numa}
869 %define _with_numa --enable-numa
870 %else
871 %define _with_numa --disable-numa
872 %endif
873
874 %if %{with_nut}
875 %define _with_nut --enable-nut
876 %else
877 %define _with_nut --disable-nut
878 %endif
879
880 %if %{with_olsrd}
881 %define _with_olsrd --enable-olsrd
882 %else
883 %define _with_olsrd --disable-olsrd
884 %endif
885
886 %if %{with_onewire}
887 %define _with_onewire --enable-onewire
888 %else
889 %define _with_onewire --disable-onewire
890 %endif
891
892 %if %{with_openvpn}
893 %define _with_openvpn --enable-openvpn
894 %else
895 %define _with_openvpn --disable-openvpn
896 %endif
897
898 %if %{with_oracle}
899 %define _with_oracle --enable-oracle
900 %else
901 %define _with_oracle --disable-oracle
902 %endif
903
904 %if %{with_perl}
905 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
906 %else
907 %define _with_perl --disable-perl --without-libperl
908 %endif
909
910 %if %{with_pf}
911 %define _with_pf --enable-pf
912 %else
913 %define _with_pf --disable-pf
914 %endif
915
916 %if %{with_pinba}
917 %define _with_pinba --enable-pinba
918 %else
919 %define _with_pinba --disable-pinba
920 %endif
921
922 %if %{with_ping}
923 %define _with_ping --enable-ping
924 %else
925 %define _with_ping --disable-ping
926 %endif
927
928 %if %{with_postgresql}
929 %define _with_postgresql --enable-postgresql
930 %else
931 %define _with_postgresql --disable-postgresql
932 %endif
933
934 %if %{with_powerdns}
935 %define _with_powerdns --enable-powerdns
936 %else
937 %define _with_powerdns --disable-powerdns
938 %endif
939
940 %if %{with_processes}
941 %define _with_processes --enable-processes
942 %else
943 %define _with_processes --disable-processes
944 %endif
945
946 %if %{with_protocols}
947 %define _with_protocols --enable-protocols
948 %else
949 %define _with_protocols --disable-protocols
950 %endif
951
952 %if %{with_python}
953 %define _with_python --enable-python
954 %else
955 %define _with_python --disable-python
956 %endif
957
958 %if %{with_redis}
959 %define _with_redis --enable-redis
960 %else
961 %define _with_redis --disable-redis
962 %endif
963
964 %if %{with_routeros}
965 %define _with_routeros --enable-routeros
966 %else
967 %define _with_routeros --disable-routeros
968 %endif
969
970 %if %{with_rrdcached}
971 %define _with_rrdcached --enable-rrdcached
972 %else
973 %define _with_rrdcached --disable-rrdcached
974 %endif
975
976 %if %{with_rrdtool}
977 %define _with_rrdtool --enable-rrdtool
978 %else
979 %define _with_rrdtool --disable-rrdtool
980 %endif
981
982 %if %{with_sensors}
983 %define _with_sensors --enable-sensors
984 %else
985 %define _with_sensors --disable-sensors
986 %endif
987
988 %if %{with_serial}
989 %define _with_serial --enable-serial
990 %else
991 %define _with_serial --disable-serial
992 %endif
993
994 %if %{with_snmp}
995 %define _with_snmp --enable-snmp
996 %else
997 %define _with_snmp --disable-snmp
998 %endif
999
1000 %if %{with_swap}
1001 %define _with_swap --enable-swap
1002 %else
1003 %define _with_swap --disable-swap
1004 %endif
1005
1006 %if %{with_syslog}
1007 %define _with_syslog --enable-syslog
1008 %else
1009 %define _with_syslog --disable-syslog
1010 %endif
1011
1012 %if %{with_table}
1013 %define _with_table --enable-table
1014 %else
1015 %define _with_table --disable-table
1016 %endif
1017
1018 %if %{with_tail}
1019 %define _with_tail --enable-tail
1020 %else
1021 %define _with_tail --disable-tail
1022 %endif
1023
1024 %if %{with_tape}
1025 %define _with_tape --enable-tape
1026 %else
1027 %define _with_tape --disable-tape
1028 %endif
1029
1030 %if %{with_tcpconns}
1031 %define _with_tcpconns --enable-tcpconns
1032 %else
1033 %define _with_tcpconns --disable-tcpconns
1034 %endif
1035
1036 %if %{with_teamspeak2}
1037 %define _with_teamspeak2 --enable-teamspeak2
1038 %else
1039 %define _with_teamspeak2 --disable-teamspeak2
1040 %endif
1041
1042 %if %{with_ted}
1043 %define _with_ted --enable-ted
1044 %else
1045 %define _with_ted --disable-ted
1046 %endif
1047
1048 %if %{with_thermal}
1049 %define _with_thermal --enable-thermal
1050 %else
1051 %define _with_thermal --disable-thermal
1052 %endif
1053
1054 %if %{with_threshold}
1055 %define _with_threshold --enable-threshold
1056 %else
1057 %define _with_threshold --disable-threshold
1058 %endif
1059
1060 %if %{with_tokyotyrant}
1061 %define _with_tokyotyrant --enable-tokyotyrant
1062 %else
1063 %define _with_tokyotyrant --disable-tokyotyrant
1064 %endif
1065
1066 %if %{with_unixsock}
1067 %define _with_unixsock --enable-unixsock
1068 %else
1069 %define _with_unixsock --disable-unixsock
1070 %endif
1071
1072 %if %{with_uptime}
1073 %define _with_uptime --enable-uptime
1074 %else
1075 %define _with_uptime --disable-uptime
1076 %endif
1077
1078 %if %{with_users}
1079 %define _with_users --enable-users
1080 %else
1081 %define _with_users --disable-users
1082 %endif
1083
1084 %if %{with_uuid}
1085 %define _with_uuid --enable-uuid
1086 %else
1087 %define _with_uuid --disable-uuid
1088 %endif
1089
1090 %if %{with_varnish}
1091 %define _with_varnish --enable-varnish
1092 %else
1093 %define _with_varnish --disable-varnish
1094 %endif
1095
1096 %if %{with_vmem}
1097 %define _with_vmem --enable-vmem
1098 %else
1099 %define _with_vmem --disable-vmem
1100 %endif
1101
1102 %if %{with_vserver}
1103 %define _with_vserver --enable-vserver
1104 %else
1105 %define _with_vserver --disable-vserver
1106 %endif
1107
1108 %if %{with_wireless}
1109 %define _with_wireless --enable-wireless
1110 %else
1111 %define _with_wireless --disable-wireless
1112 %endif
1113
1114 %if %{with_write_graphite}
1115 %define _with_write_graphite --enable-write_graphite
1116 %else
1117 %define _with_write_graphite --disable-write_graphite
1118 %endif
1119
1120 %if %{with_write_http}
1121 %define _with_write_http --enable-write_http
1122 %else
1123 %define _with_write_http --disable-write_http
1124 %endif
1125
1126 %if %{with_write_mongodb}
1127 %define _with_write_mongodb --enable-write_mongodb
1128 %else
1129 %define _with_write_mongodb --disable-write_mongodb --without-libmongoc
1130 %endif
1131
1132 %if %{with_write_redis}
1133 %define _with_write_redis --enable-write_redis
1134 %else
1135 %define _with_write_redis --disable-write_redis --without-libcredis
1136 %endif
1137
1138 %if %{with_xmms}
1139 %define _with_xmms --enable-xmms
1140 %else
1141 %define _with_xmms --disable-xmms
1142 %endif
1143
1144 %if %{with_zfs_arc}
1145 %define _with_zfs_arc --enable-zfs_arc
1146 %else
1147 %define _with_zfs_arc --disable-zfs_arc
1148 %endif
1149
1150 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1151         --disable-static \
1152         --without-included-ltdl \
1153         --enable-all-plugins=yes \
1154         --enable-aggregation \
1155         --enable-match_empty_counter \
1156         --enable-match_hashed \
1157         --enable-match_regex \
1158         --enable-match_timediff \
1159         --enable-match_value \
1160         --enable-target_notification \
1161         --enable-target_replace \
1162         --enable-target_scale \
1163         --enable-target_set \
1164         --enable-target_v5upgrade \
1165         %{?_with_aggregation} \
1166         %{?_with_amqp} \
1167         %{?_with_apache} \
1168         %{?_with_apcups} \
1169         %{?_with_apple_sensors} \
1170         %{?_with_ascent} \
1171         %{?_with_battery} \
1172         %{?_with_bind} \
1173         %{?_with_conntrack} \
1174         %{?_with_contextswitch} \
1175         %{?_with_cpu} \
1176         %{?_with_cpufreq} \
1177         %{?_with_csv} \
1178         %{?_with_curl} \
1179         %{?_with_curl_json} \
1180         %{?_with_curl_xml} \
1181         %{?_with_dbi} \
1182         %{?_with_df} \
1183         %{?_with_disk} \
1184         %{?_with_dns} \
1185         %{?_with_email} \
1186         %{?_with_entropy} \
1187         %{?_with_ethstat} \
1188         %{?_with_exec} \
1189         %{?_with_filecount} \
1190         %{?_with_fscache} \
1191         %{?_with_gmond} \
1192         %{?_with_hddtemp} \
1193         %{?_with_interface} \
1194         %{?_with_ipmi} \
1195         %{?_with_iptables} \
1196         %{?_with_ipvs} \
1197         %{?_with_java} \
1198         %{?_with_libvirt} \
1199         %{?_with_lpar} \
1200         %{?_with_memcachec} \
1201         %{?_with_modbus} \
1202         %{?_with_multimeter} \
1203         %{?_with_mysql} \
1204         %{?_with_netapp} \
1205         %{?_with_netlink} \
1206         %{?_with_nginx} \
1207         %{?_with_notify_desktop} \
1208         %{?_with_notify_email} \
1209         %{?_with_nut} \
1210         %{?_with_onewire} \
1211         %{?_with_oracle} \
1212         %{?_with_perl} \
1213         %{?_with_pf} \
1214         %{?_with_pinba} \
1215         %{?_with_ping} \
1216         %{?_with_postgresql} \
1217         %{?_with_python} \
1218         %{?_with_redis} \
1219         %{?_with_routeros} \
1220         %{?_with_rrdcached} \
1221         %{?_with_rrdtool} \
1222         %{?_with_sensors} \
1223         %{?_with_snmp} \
1224         %{?_with_tape} \
1225         %{?_with_tokyotyrant} \
1226         %{?_with_varnish} \
1227         %{?_with_write_http} \
1228         %{?_with_write_mongodb} \
1229         %{?_with_write_redis} \
1230         %{?_with_xmms} \
1231         %{?_with_zfs_arc} \
1232         %{?_with_irq} \
1233         %{?_with_load} \
1234         %{?_with_logfile} \
1235         %{?_with_madwifi} \
1236         %{?_with_mbmon} \
1237         %{?_with_md} \
1238         %{?_with_memcached} \
1239         %{?_with_memory} \
1240         %{?_with_network} \
1241         %{?_with_nfs} \
1242         %{?_with_ntpd} \
1243         %{?_with_numa} \
1244         %{?_with_olsrd} \
1245         %{?_with_openvpn} \
1246         %{?_with_powerdns} \
1247         %{?_with_processes} \
1248         %{?_with_protocols} \
1249         %{?_with_serial} \
1250         %{?_with_swap} \
1251         %{?_with_syslog} \
1252         %{?_with_table} \
1253         %{?_with_tail} \
1254         %{?_with_tcpconns} \
1255         %{?_with_teamspeak2} \
1256         %{?_with_ted} \
1257         %{?_with_thermal} \
1258         %{?_with_threshold} \
1259         %{?_with_unixsock} \
1260         %{?_with_uptime} \
1261         %{?_with_users} \
1262         %{?_with_uuid} \
1263         %{?_with_vmem} \
1264         %{?_with_vserver} \
1265         %{?_with_wireless}\
1266         %{?_with_write_graphite} \
1267         %{?_with_write_http}
1268
1269
1270 %{__make} %{?_smp_mflags}
1271
1272
1273 %install
1274 rm -rf %{buildroot}
1275 %{__make} install DESTDIR=%{buildroot}
1276 %{__install} -Dp -m 0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1277 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1278 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
1279 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1280
1281 ### Clean up docs
1282 find contrib/ -type f -exec %{__chmod} a-x {} \;
1283 # *.la files shouldn't be distributed.
1284 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1285
1286 # Move the Perl examples to a separate directory.
1287 mkdir perl-examples
1288 find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
1289
1290 # Remove Perl hidden .packlist files.
1291 find %{buildroot} -type f -name .packlist -delete
1292 # Remove Perl temporary file perllocal.pod
1293 find %{buildroot} -type f -name perllocal.pod -delete
1294
1295 %if ! %{with_java}
1296 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
1297 %endif
1298
1299 %if ! %{with_perl}
1300 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
1301 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
1302 %endif
1303
1304 %if ! %{with_python}
1305 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
1306 %endif
1307
1308 %if ! %{with_snmp}
1309 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
1310 %endif
1311
1312
1313 %clean
1314 rm -rf %{buildroot}
1315
1316 %post
1317 /sbin/chkconfig --add collectd
1318
1319 %preun
1320 if [ $1 -eq 0 ]; then
1321         /sbin/service collectd stop &>/dev/null
1322         /sbin/chkconfig --del collectd
1323 fi
1324
1325 %postun
1326 if [ $1 -ge 1 ]; then
1327         /sbin/service collectd condrestart &>/dev/null || :
1328 fi
1329
1330 %post -n libcollectdclient -p /sbin/ldconfig
1331 %postun -n libcollectdclient -p /sbin/ldconfig
1332
1333
1334 %files
1335 %doc AUTHORS COPYING ChangeLog README
1336 %config(noreplace) %{_sysconfdir}/collectd.conf
1337 %{_initrddir}/collectd
1338 %{_sbindir}/collectd
1339 %{_bindir}/collectd-nagios
1340 %{_bindir}/collectd-tg
1341 %{_bindir}/collectdctl
1342 %{_sbindir}/collectdmon
1343 %{_datadir}/collectd/
1344 %{_sharedstatedir}/collectd
1345 %{_mandir}/man1/collectd-nagios.1*
1346 %{_mandir}/man1/collectd.1*
1347 %{_mandir}/man1/collectdctl.1*
1348 %{_mandir}/man1/collectdmon.1*
1349 %{_mandir}/man5/collectd-email.5*
1350 %{_mandir}/man5/collectd-exec.5*
1351 %{_mandir}/man5/collectd-threshold.5*
1352 %{_mandir}/man5/collectd-unixsock.5*
1353 %{_mandir}/man5/collectd.conf.5*
1354 %{_mandir}/man5/types.db.5*
1355
1356 # all plugins bundled with the main collectd package
1357 %{_libdir}/%{name}/match_empty_counter.so
1358 %{_libdir}/%{name}/match_hashed.so
1359 %{_libdir}/%{name}/match_regex.so
1360 %{_libdir}/%{name}/match_timediff.so
1361 %{_libdir}/%{name}/match_value.so
1362 %{_libdir}/%{name}/target_notification.so
1363 %{_libdir}/%{name}/target_replace.so
1364 %{_libdir}/%{name}/target_scale.so
1365 %{_libdir}/%{name}/target_set.so
1366 %{_libdir}/%{name}/target_v5upgrade.so
1367
1368 %if %{with_aggregation}
1369 %{_libdir}/%{name}/aggregation.so
1370 %endif
1371 %if %{with_apcups}
1372 %{_libdir}/%{name}/apcups.so
1373 %endif
1374 %if %{with_battery}
1375 %{_libdir}/%{name}/battery.so
1376 %endif
1377 %if %{with_conntrack}
1378 %{_libdir}/%{name}/conntrack.so
1379 %endif
1380 %if %{with_contextswitch}
1381 %{_libdir}/%{name}/contextswitch.so
1382 %endif
1383 %if %{with_cpu}
1384 %{_libdir}/%{name}/cpu.so
1385 %endif
1386 %if %{with_cpufreq}
1387 %{_libdir}/%{name}/cpufreq.so
1388 %endif
1389 %if %{with_csv}
1390 %{_libdir}/%{name}/csv.so
1391 %endif
1392 %if %{with_df}
1393 %{_libdir}/%{name}/df.so
1394 %endif
1395 %if %{with_disk}
1396 %{_libdir}/%{name}/disk.so
1397 %endif
1398 %if %{with_ethstat}
1399 %{_libdir}/%{name}/ethstat.so
1400 %endif
1401 %if %{with_entropy}
1402 %{_libdir}/%{name}/entropy.so
1403 %endif
1404 %if %{with_exec}
1405 %{_libdir}/%{name}/exec.so
1406 %endif
1407 %if %{with_filecount}
1408 %{_libdir}/%{name}/filecount.so
1409 %endif
1410 %if %{with_fscache}
1411 %{_libdir}/%{name}/fscache.so
1412 %endif
1413 %if %{with_interface}
1414 %{_libdir}/%{name}/interface.so
1415 %endif
1416 %if %{with_ipvs}
1417 %{_libdir}/%{name}/ipvs.so
1418 %endif
1419 %if %{with_irq}
1420 %{_libdir}/%{name}/irq.so
1421 %endif
1422 %if %{with_load}
1423 %{_libdir}/%{name}/load.so
1424 %endif
1425 %if %{with_logfile}
1426 %{_libdir}/%{name}/logfile.so
1427 %endif
1428 %if %{with_madwifi}
1429 %{_libdir}/%{name}/madwifi.so
1430 %endif
1431 %if %{with_mbmon}
1432 %{_libdir}/%{name}/mbmon.so
1433 %endif
1434 %if %{with_md}
1435 %{_libdir}/%{name}/md.so
1436 %endif
1437 %if %{with_memcached}
1438 %{_libdir}/%{name}/memcached.so
1439 %endif
1440 %if %{with_memory}
1441 %{_libdir}/%{name}/memory.so
1442 %endif
1443 %if %{with_multimeter}
1444 %{_libdir}/%{name}/multimeter.so
1445 %endif
1446 %if %{with_network}
1447 %{_libdir}/%{name}/network.so
1448 %endif
1449 %if %{with_nfs}
1450 %{_libdir}/%{name}/nfs.so
1451 %endif
1452 %if %{with_ntpd}
1453 %{_libdir}/%{name}/ntpd.so
1454 %endif
1455 %if %{with_numa}
1456 %{_libdir}/%{name}/numa.so
1457 %endif
1458 %if %{with_openvpn}
1459 %{_libdir}/%{name}/openvpn.so
1460 %endif
1461 %if %{with_olsrd}
1462 %{_libdir}/%{name}/olsrd.so
1463 %endif
1464 %if %{with_powerdns}
1465 %{_libdir}/%{name}/powerdns.so
1466 %endif
1467 %if %{with_processes}
1468 %{_libdir}/%{name}/processes.so
1469 %endif
1470 %if %{with_protocols}
1471 %{_libdir}/%{name}/protocols.so
1472 %endif
1473 %if %{with_serial}
1474 %{_libdir}/%{name}/serial.so
1475 %endif
1476 %if %{with_swap}
1477 %{_libdir}/%{name}/swap.so
1478 %endif
1479 %if %{with_syslog}
1480 %{_libdir}/%{name}/syslog.so
1481 %endif
1482 %if %{with_table}
1483 %{_libdir}/%{name}/table.so
1484 %endif
1485 %if %{with_tail}
1486 %{_libdir}/%{name}/tail.so
1487 %endif
1488 %if %{with_tcpconns}
1489 %{_libdir}/%{name}/tcpconns.so
1490 %endif
1491 %if %{with_teamspeak2}
1492 %{_libdir}/%{name}/teamspeak2.so
1493 %endif
1494 %if %{with_ted}
1495 %{_libdir}/%{name}/ted.so
1496 %endif
1497 %if %{with_thermal}
1498 %{_libdir}/%{name}/thermal.so
1499 %endif
1500 %if %{with_load}
1501 %{_libdir}/%{name}/threshold.so
1502 %endif
1503 %if %{with_unixsock}
1504 %{_libdir}/%{name}/unixsock.so
1505 %endif
1506 %if %{with_uptime}
1507 %{_libdir}/%{name}/uptime.so
1508 %endif
1509 %if %{with_users}
1510 %{_libdir}/%{name}/users.so
1511 %endif
1512 %if %{with_uuid}
1513 %{_libdir}/%{name}/uuid.so
1514 %endif
1515 %if %{with_vmem}
1516 %{_libdir}/%{name}/vmem.so
1517 %endif
1518 %if %{with_vserver}
1519 %{_libdir}/%{name}/vserver.so
1520 %endif
1521 %if %{with_wireless}
1522 %{_libdir}/%{name}/wireless.so
1523 %endif
1524 %if %{with_write_graphite}
1525 %{_libdir}/%{name}/write_graphite.so
1526 %endif
1527
1528 # All plugins not built by default because of dependencies on libraries not
1529 # available in RHEL or EPEL:
1530 # plugin modbus disabled, requires libmodbus
1531 # plugin netlink disabled, requires libnetlink.h
1532 # plugin numa disabled, requires libnetapp
1533 # plugin onewire disabled, requires libowfs
1534 # plugin oracle disabled, requires Oracle
1535 # plugin redis disabled, requires credis
1536 # plugin routeros disabled, requires librouteros
1537 # plugin rrdcached disabled, requires rrdtool >= 1.4
1538 # plugin tokyotyrant disabled, requires tcrdb.h
1539 # plugin write_mongodb disabled, requires libmongoc
1540 # plugin write_redis disabled, requires credis
1541 # plugin xmms disabled, requires xmms
1542
1543
1544 %files -n libcollectdclient-devel
1545 %{_includedir}/collectd/client.h
1546 %{_includedir}/collectd/network.h
1547 %{_includedir}/collectd/network_buffer.h
1548 %{_includedir}/collectd/lcc_features.h
1549 %{_libdir}/pkgconfig/libcollectdclient.pc
1550
1551 %files -n libcollectdclient
1552 %{_libdir}/libcollectdclient.so
1553 %{_libdir}/libcollectdclient.so.*
1554
1555 %if %{with_amqp}
1556 %files amqp
1557 %{_libdir}/%{name}/amqp.so
1558 %endif
1559
1560 %if %{with_apache}
1561 %files apache
1562 %{_libdir}/%{name}/apache.so
1563 %endif
1564
1565 %if %{with_ascent}
1566 %files ascent
1567 %{_libdir}/%{name}/ascent.so
1568 %endif
1569
1570 %if %{with_bind}
1571 %files bind
1572 %{_libdir}/%{name}/bind.so
1573 %endif
1574
1575 %if %{with_curl}
1576 %files curl
1577 %{_libdir}/%{name}/curl.so
1578 %endif
1579
1580 %if %{with_curl_json}
1581 %files curl_json
1582 %{_libdir}/%{name}/curl_json.so
1583 %endif
1584
1585 %if %{with_curl_xml}
1586 %files curl_xml
1587 %{_libdir}/%{name}/curl_xml.so
1588 %endif
1589
1590 %if %{with_dns}
1591 %files dns
1592 %{_libdir}/%{name}/dns.so
1593 %endif
1594
1595 %if %{with_dbi}
1596 %files dbi
1597 %{_libdir}/%{name}/dbi.so
1598 %endif
1599
1600 %if %{with_email}
1601 %files email
1602 %{_libdir}/%{name}/email.so
1603 %endif
1604
1605 %if %{with_gmond}
1606 %files gmond
1607 %{_libdir}/%{name}/gmond.so
1608 %endif
1609
1610 %if %{with_hddtemp}
1611 %files hddtemp
1612 %{_libdir}/%{name}/hddtemp.so
1613 %endif
1614
1615 %if %{with_ipmi}
1616 %files ipmi
1617 %{_libdir}/%{name}/ipmi.so
1618 %endif
1619
1620 %if %{with_iptables}
1621 %files iptables
1622 %{_libdir}/%{name}/iptables.so
1623 %endif
1624
1625 %if %{with_java}
1626 %files java
1627 %{_datarootdir}/collectd/java/collectd-api.jar
1628 %{_datarootdir}/collectd/java/generic-jmx.jar
1629 %{_libdir}/%{name}/java.so
1630 %{_mandir}/man5/collectd-java.5*
1631 %endif
1632
1633 %if %{with_libvirt}
1634 %files libvirt
1635 %{_libdir}/%{name}/libvirt.so
1636 %endif
1637
1638 %if %{with_memcachec}
1639 %files memcachec
1640 %{_libdir}/%{name}/memcachec.so
1641 %endif
1642
1643 %if %{with_mysql}
1644 %files mysql
1645 %{_libdir}/%{name}/mysql.so
1646 %endif
1647
1648 %if %{with_nginx}
1649 %files nginx
1650 %{_libdir}/%{name}/nginx.so
1651 %endif
1652
1653 %if %{with_notify_desktop}
1654 %files notify_desktop
1655 %{_libdir}/%{name}/notify_desktop.so
1656 %endif
1657
1658 %if %{with_notify_email}
1659 %files notify_email
1660 %{_libdir}/%{name}/notify_email.so
1661 %endif
1662
1663 %if %{with_nut}
1664 %files nut
1665 %{_libdir}/%{name}/nut.so
1666 %endif
1667
1668 %if %{with_perl}
1669 %files perl
1670 %doc perl-examples/*
1671 %{perl_vendorlib}/Collectd.pm
1672 %{perl_vendorlib}/Collectd/
1673 %{_mandir}/man3/Collectd::Unixsock.3pm*
1674 %{_mandir}/man5/collectd-perl.5*
1675 %{_libdir}/%{name}/perl.so
1676 %endif
1677
1678 %if %{with_pinba}
1679 %files pinba
1680 %{_libdir}/%{name}/pinba.so
1681 %endif
1682
1683 %if %{with_ping}
1684 %files ping
1685 %{_libdir}/%{name}/ping.so
1686 %endif
1687
1688 %if %{with_postgresql}
1689 %files postgresql
1690 %{_datarootdir}/collectd/postgresql_default.conf
1691 %{_libdir}/%{name}/postgresql.so
1692 %endif
1693
1694 %if %{with_python}
1695 %files python
1696 %{_mandir}/man5/collectd-python*
1697 %{_libdir}/%{name}/python.so
1698 %endif
1699
1700 %if %{with_redis}
1701 %files redis
1702 %{_libdir}/%{name}/redis.so
1703 %endif
1704
1705 %if %{with_rrdcached}
1706 %files rrdcached
1707 %{_libdir}/%{name}/rrdcached.so
1708 %endif
1709
1710 %if %{with_rrdtool}
1711 %files rrdtool
1712 %{_libdir}/%{name}/rrdtool.so
1713 %endif
1714
1715 %if %{with_sensors}
1716 %files sensors
1717 %{_libdir}/%{name}/sensors.so
1718 %endif
1719
1720 %if %{with_snmp}
1721 %files snmp
1722 %{_mandir}/man5/collectd-snmp.5*
1723 %{_libdir}/%{name}/snmp.so
1724 %endif
1725
1726 %if %{with_varnish}
1727 %files varnish
1728 %{_libdir}/%{name}/varnish.so
1729 %endif
1730
1731 %if %{with_write_http}
1732 %files write_http
1733 %{_libdir}/%{name}/write_http.so
1734 %endif
1735
1736 %if %{with_write_redis}
1737 %files write_redis
1738 %{_libdir}/%{name}/write_redis.so
1739 %endif
1740
1741 %files contrib
1742 %doc contrib/
1743
1744 %changelog
1745 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
1746 - New upstream version
1747 - Enabled aggregation plugin
1748 - Installed collectd-tc
1749 - Added network.h and network_buffer.h to libcollectdclient-devel
1750 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
1751 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
1752 - Added rrdcached and redis plugin descriptions
1753 - Mentioned new pf plugin in disabled plugins list
1754
1755 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
1756 - Follow Fedora Packaging Guidelines in java subpackage
1757
1758 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
1759 - Move perl stuff to perl_vendorlib
1760 - Replace hardcoded paths with macros
1761 - Remove unneccesary Requires
1762 - Removed .a and .la files
1763 - Some other small cleanups
1764
1765 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
1766 - New upstream version
1767 - Changes to support 5.1.0
1768 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
1769 - All plugins requiring external libraries are now shipped in seperate
1770   packages.
1771 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
1772   the build process + ensure build deps are installed.
1773 - Dropped per-plugin configuration files, as they tend to diverge from upstream
1774   defaults.
1775 - Moved perl stuff to /usr/share/perl5/
1776 - Don't alter Interval and ReadThreads by default, let the user change this
1777   himself.
1778 - Initscript improvements:
1779   * checks configuration before (re)starting, based on debian's initscript
1780   * use /etc/sysconfig instdead of /etc/default
1781   * include optional $ARGS in arguments passed to collectd.
1782 - Drop collection.cgi from main package, as it's been obsoleted by collection3
1783 - Moved contrib/ to its own package, to avoid cluttering the main package with
1784   non-essential stuff.
1785 - Replaced BuildPrereq by BuildRequires
1786
1787 * Tue Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
1788 - New upstream version
1789 - Changes to support 5.0.1
1790
1791 * Tue Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
1792 - New upstream version
1793 - Changes to support 4.9.0
1794 - Added support for Java/GenericJMX plugin
1795
1796 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
1797 - New upstream version
1798 - Changes to support 4.3.1
1799 - Added More Prereqs to support more plugins
1800 - Added support for perl plugin
1801
1802 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
1803 - New upstream version
1804
1805 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
1806 - New major releas
1807 - Changes to support 4.0.5
1808
1809 * Wed Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
1810 - fixed spec file to build correctly on fedora core
1811 - added improved init.d script to work with chkconfig
1812 - added %%post and %%postun to call chkconfig automatically
1813
1814 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
1815 - New upstream version
1816
1817 * Tue Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
1818 - New upstream version
1819
1820 * Tue Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
1821 - New upstream version
1822
1823 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
1824 - New upstream version
1825
1826 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
1827 - New upstream version
1828
1829 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
1830 - New upstream version
1831
1832 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
1833 - New upstream version
1834 - Added the `apache' package.
1835
1836 * Thu Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
1837 - New upstream version
1838
1839 * Thu Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
1840 - New upstream version
1841
1842 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
1843 - New upstream version
1844
1845 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
1846 - Include `tape.so' so the build doesn't terminate because of missing files..
1847 - New upstream version
1848
1849 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
1850 - New upstream version
1851
1852 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
1853 - New upstream version
1854 - Removed the extra `hddtemp' package
1855
1856 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
1857 - New upstream version
1858
1859 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
1860 - New upstream version
1861
1862 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
1863 - New upstream version
1864 - Added config file, `collectd.conf(5)', `df.so'
1865 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
1866
1867 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
1868 - New upstream version
1869
1870 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
1871 - New upstream version
1872
1873 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
1874 - New upstream version
1875
1876 * Tue Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
1877 - New upstream version
1878 - Added statement to remove the `*.la' files. This fixes a problem when
1879   `Unpackaged files terminate build' is in effect.
1880 - Added `processes.so*' to the main package
1881
1882 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
1883 - New upstream version
1884 - Added package `collectd-hddtemp'
1885
1886 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
1887 - New upstream version
1888 - Split the package into `collectd' and `collectd-sensors'
1889
1890 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
1891 - New upstream version
1892
1893 * Mon Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
1894 - New upstream version
1895
1896 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
1897 - New upstream version
1898
1899 * Sun Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
1900 - New upstream version
1901
1902 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
1903 - New upstream version
1904
1905 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
1906 - New upstream version
1907
1908 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
1909 - New upstream version
1910
1911 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
1912 - New upstream version
1913
1914 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
1915 - Built on RedHat 7.3