]> git.pld-linux.org Git - packages/collectd.git/blob - collectd.spec
- release 4
[packages/collectd.git] / collectd.spec
1 # TODO:
2 # - package contrib scripts as %doc
3 # - perl modules with Collectd classes package to separate package
4 # - Bundled libraries - check if its not changed ones and if it can be
5 #   mainstream library:
6 # liboconfig  . . . . . yes (shipped version)
7 # - Libraries not found by configure:
8 #   libcredis . . . . . . no (credis.h not found) (http://code.google.com/p/credis/)
9 #   libganglia  . . . . . no (gm_protocol.h not found) (http://ganglia.info/)
10 #   libiokit  . . . . . . no (Darwin only)
11 #   libjvm  . . . . . . . no (javac not found)
12 #   libkstat  . . . . . . no (Solaris only)
13 #   libkvm  . . . . . . . no (BSD only)
14 #   libmodbus . . . . . . no (pkg-config doesn't know modbus) (http://www.libmodbus.org/)
15 #   libnetapp . . . . . . no (netapp_api.h not found) (properitary)
16 #   libperfstat . . . . . no (AIX only)
17 #   librabbitmq . . . . . no (amqp.h not found) (http://hg.rabbitmq.com/rabbitmq-c/)
18 #   librouteros . . . . . no ('routeros_api.h' not found) (http://verplant.org/librouteros/)
19 #   libtokyotyrant  . . . no (tcrdb.h not found) (http://1978th.net/tokyotyrant/)
20 #   libyajl . . . . . . . no (yajl/yajl_parse.h not found)
21 #   protobuf-c  . . . . . no 
22 #   oracle  . . . . . . . no (ORACLE_HOME is not set)
23 # - Disabled modules (build most of them an package):
24 #   amqp    . . . . . . . no
25 #   apple_sensors . . . . no             (Darwin only)
26 #   gmond . . . . . . . . no
27 #   ipvs  . . . . . . . . no             (ip_vs.h not found - llh to be fixed)
28 #   java  . . . . . . . . no
29 #   lpar... . . . . . . . no
30 #   modbus  . . . . . . . no
31 #   multimeter  . . . . . no             ?
32 #   netapp  . . . . . . . no
33 #   onewire . . . . . . . no             (needs libowfs)
34 #   oracle  . . . . . . . no
35 #   pinba . . . . . . . . no
36 #   redis . . . . . . . . no
37 #   routeros  . . . . . . no
38 #   tape  . . . . . . . . no             ?
39 #   tokyotyrant . . . . . no
40 #   write_redis . . . . . no
41 #   zfs_arc . . . . . . . no
42 # - logrotate file for logfile plugin
43 # - %desc -l pl for plugins
44 # - package SpamAssassin plugin from contrib
45
46 # Conditional build:
47 %bcond_without  curl            # apache, ascent, bind, curl and nginx plugins
48 %bcond_without  dns             # DNS plugin
49 %bcond_without  ipmi            # IPMI plugin
50 %bcond_without  iptables        # iptables plugin
51 %bcond_without  libesmtp        # notify_email plugin
52 %bcond_without  libvirt         # libvirt plugin
53 %bcond_with     multimeter      # multimeter plugin
54 %bcond_without  mysql           # MySQL plugin
55 %bcond_without  netlink         # netlink plugin
56 %bcond_without  notify          # notify_desktop plugin
57 %bcond_without  ping            # ping plugin
58 %bcond_without  pgsql           # PostgreSQL plugin
59 %bcond_without  rrd             # rrdtool and rrdcached plugins
60 %bcond_without  sensors         # sensors plugin
61 %bcond_without  snmp            # SNMP plugin
62 %bcond_without  ups             # nut plugin
63 %bcond_without  varnish         # varnish plugin
64 %bcond_without  xml             # ascent, bind and libvirt plugins
65 %bcond_without  xmms            # XMMS plugin
66
67 Summary:        Collects system information in RRD files
68 Summary(pl.UTF-8):      Zbieranie informacji o systemie w plikach RRD
69 Name:           collectd
70 Version:        5.0.1
71 Release:        4
72 License:        GPL v2
73 Group:          Daemons
74 Source0:        http://collectd.org/files/%{name}-%{version}.tar.bz2
75 # Source0-md5:  9ad1e4334bd4a671284e8e92a3e3323e
76 Source1:        %{name}.conf
77 Source2:        %{name}.init
78 Source3:        %{name}-http.conf
79 Source4:        %{name}-lighttpd.conf
80 Source10:       %{name}-df.conf
81 Source11:       %{name}-rrdtool.conf
82 Patch0:         %{name}-collection.patch
83 Patch1:         compile.patch
84 Patch2:         noquote.patch
85 Patch3:         libiptc.patch
86 Patch4:         pld.patch
87 URL:            http://collectd.org/
88 %{?with_ipmi:BuildRequires:     OpenIPMI-devel >= 2.0.14-3}
89 BuildRequires:  autoconf
90 BuildRequires:  automake
91 %{?with_curl:BuildRequires:     curl-devel}
92 %{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4}
93 BuildRequires:  libdbi-devel
94 %{?with_libesmtp:BuildRequires: libesmtp-devel}
95 BuildRequires:  libltdl-devel
96 BuildRequires:  libmemcached-devel
97 BuildRequires:  libnetlink-devel
98 %{?with_netlink:BuildRequires:  libnetlink-devel}
99 %{?with_libvirt:BuildRequires:  libnl1-devel}
100 %{?with_notify:BuildRequires:   libnotify-devel}
101 %{?with_ping:BuildRequires:     liboping-devel}
102 %{?with_dns:BuildRequires:      libpcap-devel}
103 BuildRequires:  libstatgrab-devel >= 0.12
104 BuildRequires:  libstdc++-devel
105 BuildRequires:  libtool
106 %{?with_xml:BuildRequires:      libxml2-devel}
107 %{?with_sensors:BuildRequires:  lm_sensors-devel}
108 %{?with_mysql:BuildRequires:    mysql-devel}
109 %{?with_libvirt:BuildRequires:  libvirt-devel}
110 BuildRequires:  ncurses-devel
111 %{?with_snmp:BuildRequires:     net-snmp-devel}
112 %{?with_libvirt:BuildRequires:  numactl-devel}
113 %{?with_ups:BuildRequires:      nut-devel}
114 BuildRequires:  perl-devel
115 BuildRequires:  pkgconfig
116 %{?with_pgsql:BuildRequires:    postgresql-devel}
117 BuildRequires:  python-devel
118 BuildRequires:  python-modules
119 BuildRequires:  rpmbuild(macros) >= 1.268
120 %{?with_rrd:BuildRequires:      rrdtool-devel}
121 %{?with_varnish:BuildRequires:          varnish-devel}
122 BuildRequires:  which
123 #BuildRequires: xfsprogs-devel
124 %{?with_xmms:BuildRequires:     xmms-devel}
125 BuildRequires:  yajl-devel
126 Requires(post,preun):   /sbin/chkconfig
127 Requires:       %{name}-libs = %{version}-%{release}
128 Requires:       rc-scripts
129 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
130
131 %define         _pkglibdir      %{_sharedstatedir}/%{name}
132 %define         _webapps        /etc/webapps
133 %define         _webapp         %{name}
134 %define         _webappdir      %{_webapps}/%{_webapp}
135 %define         _appdir         %{_datadir}/%{_webapp}
136
137 %description
138 collectd is a small daemon which collects system information every 10
139 seconds and writes the results in an RRD-file.
140
141 In contrast to most similar software, collectd is not a script but
142 written in plain C for performance and portability. As a daemon it
143 stays in memory, so there is no need to start up a heavy interpreter
144 every time new values should be logged. This allows collectd to have a
145 10 second resolution while being nice to the system.
146
147 %description -l pl.UTF-8
148 collectd to mały demon zbierający co 10 sekund informacje o systemie
149 i zapisujący wyniki do pliku RRD.
150
151 W odróżnieniu od innych podobnych programów collectd nie jest
152 skryptem, lecz jest napisany w czystym C z myślą o wydajności
153 i przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
154 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
155 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
156 sekund i nie obciążać zbytnio systemu.
157
158 %package libs
159 Summary:        %{name} libraries
160 Summary(pl.UTF-8):      Biblioteki %{name}
161 Group:          Libraries
162
163 %description libs
164 %{name} libraries.
165
166 %description libs -l pl.UTF-8
167 Biblioteki %{name}.
168
169 %package devel
170 Summary:        Header files for %{name} libraries
171 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek %{name}
172 Group:          Development/Libraries
173 Requires:       %{name}-libs = %{version}-%{release}
174
175 %description devel
176 Header files for %{name} libraries.
177
178 %description devel -l pl.UTF-8
179 Pliki nagłówkowe bibliotek %{name}.
180
181 %package static
182 Summary:        Static files for %{name} libraries
183 Summary(pl.UTF-8):      Pliki statyczne bibliotek %{name}
184 Group:          Development/Libraries
185 Requires:       %{name}-libs = %{version}-%{release}
186
187 %description static
188 Static files for %{name} libraries.
189
190 %description static -l pl.UTF-8
191 Pliki statyczne bibliotek %{name}.
192
193 %package apache
194 Summary:        apache-plugin for collectd
195 Summary(pl.UTF-8):      Wtyczka apache dla collectd
196 Group:          Daemons
197 Requires:       %{name} = %{version}-%{release}
198
199 %description apache
200 This plugin collect data provided by Apache's `mod_status'.
201
202 %description apache -l pl.UTF-8
203 Wtyczka collectd zbierająca informacje udostępniane przez moduł
204 'mod_status' Apacha.
205
206 %package apcups
207 Summary:        APC UPS plugin for collectd
208 Summary(pl.UTF-8):      Wtyczka APC UPS dla collectd
209 Group:          Daemons
210 Requires:       %{name} = %{version}-%{release}
211
212 %description apcups
213 The APC UPS plugin connects to an instance of Apcupsd to read various
214 statistics about a connected uninterruptible power supply (UPS), such
215 as voltage, load, etc.
216
217 %package ascent
218 Summary:        ascent-plugin for collectd
219 Summary(pl.UTF-8):      Wtyczka ascent dla collectd
220 Group:          Daemons
221 Requires:       %{name} = %{version}-%{release}
222
223 %description ascent
224 The Ascent plugin reads and parses the statistics page of Ascent, a
225 free and open-source server software for the game World of Warcraft by
226 Blizzard Entertainment.
227
228 %package battery
229 Summary:        battery plugin for collectd
230 Summary(pl.UTF-8):      Wtyczka battery dla collectd
231 Group:          Daemons
232 Requires:       %{name} = %{version}-%{release}
233
234 %description battery
235 This plugin collects the battery's charge, the drawn current and the
236 battery's voltage.
237
238 %package bind
239 Summary:        bind plugin for collectd
240 Summary(pl.UTF-8):      Wtyczka bind dla collectd
241 Group:          Daemons
242 Requires:       %{name} = %{version}-%{release}
243
244 %description bind
245 Starting with BIND 9.5.0, the most widely used DNS server software
246 provides extensive statistics about queries, responses and lots of
247 other information. The bind plugin retrieves this information that's
248 encoded in XML and provided via HTTP and submits the values to
249 collectd.
250
251 %package collection
252 Summary:        Web script for collectd
253 Summary(pl.UTF-8):      Web script for collectd
254 Group:          Applications/WWW
255 Requires:       %{name} = %{version}-%{release}
256 Requires:       perl(CGI)
257 Requires:       perl(Data::Dumper)
258 Requires:       perl(HTML::Entities)
259 Requires:       perl(RRDs)
260 Requires:       perl(URI::Escape)
261 Requires:       webserver(cgi)
262 Suggests:       fonts-TTF-DejaVu
263
264 %description collection
265 Web script for collectd.
266
267 %package collection3
268 Summary:        Web script for collectd
269 Summary(pl.UTF-8):      Web script for collectd
270 Group:          Applications/WWW
271 Requires:       %{name} = %{version}-%{release}
272 Requires:       perl-Collectd = %{version}-%{release}
273 Requires:       perl(Config::General)
274 Requires:       perl(HTML::Entities)
275 Requires:       perl(Regexp::Common)
276 Requires:       perl(RRDs)
277 Requires:       webserver(cgi)
278 Suggests:       fonts-TTF-DejaVu
279
280 %description collection3
281 Web script for collectd.
282
283 %package contextswitch
284 Summary:        contextswitch-plugin for collectd
285 Summary(pl.UTF-8):      Wtyczka contextswitch dla collectd
286 Group:          Daemons
287 Requires:       %{name} = %{version}-%{release}
288
289 %description contextswitch
290 The ContextSwitch plugin collects the number of context switches done
291 by the operating system.
292
293 %package conntrack
294 Summary:        conntrack-plugin for collectd
295 Summary(pl.UTF-8):      Wtyczka conntrack dla collectd
296 Group:          Daemons
297 Requires:       %{name} = %{version}-%{release}
298
299 %description conntrack
300 The conntrack-plugin collects the connection tracking table size.
301
302 %package cpu
303 Summary:        cpu-plugin for collectd
304 Summary(pl.UTF-8):      Wtyczka cpu dla collectd
305 Group:          Daemons
306 Requires:       %{name} = %{version}-%{release}
307
308 %description cpu
309 The cpu-plugin collects the amount of time spent by the CPU in various
310 states, most notably executing user code, executing system code,
311 waiting for IO operations and being idle.
312
313 %package cpufreq
314 Summary:        cpufreq-plugin for collectd
315 Summary(pl.UTF-8):      Wtyczka cpufreq dla collectd
316 Group:          Daemons
317 Requires:       %{name} = %{version}-%{release}
318
319 %description cpufreq
320 Collects the current CPU's frequency, mostly for mobile computers.
321
322 %package csv
323 Summary:        CSV output plugin for collectd
324 Summary(pl.UTF-8):      Wtyczka wyjściowa CSV dla collectd
325 Group:          Daemons
326 Requires:       %{name} = %{version}-%{release}
327
328 %description csv
329 CSV output plugin for collectd.
330
331 %package curl
332 Summary:        cURL output plugin for collectd
333 Summary(pl.UTF-8):      Wtyczka wyjściowa cURL dla collectd
334 Group:          Daemons
335 Requires:       %{name} = %{version}-%{release}
336
337 %description curl
338 The curl plugin uses the libcurl to read web pages and the match
339 infrastructure (the same code used by the tail plugin) to use regular
340 expressions with the received data.
341
342 %package curl_json
343 Summary:        cURL JSON plugin for collectd
344 Summary(pl.UTF-8):      Wtyczka cURL JSON dla collectd
345 Group:          Daemons
346 Requires:       %{name} = %{version}-%{release}
347
348 %description curl_json
349 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data
350 using the cURL library and parses it according to the user's
351 configuration using Yet Another JSON Library (YAJL). This can be used
352 to query statistics information from a CouchDB instance, for example.
353
354 %package dbi
355 Summary:        dbi plugin for collectd
356 Summary(pl.UTF-8):      Wtyczka dbi dla collectd
357 Group:          Daemons
358 Requires:       %{name} = %{version}-%{release}
359
360 %description dbi
361 This plugin uses the dbi library to connect to various databases,
362 execute SQL statements and read back the results. dbi is an acronym
363 for "database interface" in case you were wondering about the name.
364 You can configure how each column is to be interpreted and the plugin
365 will generate one or more data sets from each row returned according
366 to these rules.
367
368 %package df
369 Summary:        df-plugin for collectd
370 Summary(pl.UTF-8):      Wtyczka df dla collectd
371 Group:          Daemons
372 Requires:       %{name} = %{version}-%{release}
373
374 %description df
375 The df-plugin collects file system usage information, i. e. basically
376 how much space on a mounted partition is used and how much is
377 available. It's named after and very similar to the df(1) UNIX command
378 that's been around forever.
379
380 %package disk
381 Summary:        disk-plugin for collectd
382 Summary(pl.UTF-8):      Wtyczka disk dla collectd
383 Group:          Daemons
384 Requires:       %{name} = %{version}-%{release}
385
386 %description disk
387 This plugin collects performance statistics of harddisks and, where
388 supported, partitions.
389
390 %package dns
391 Summary:        dns-plugin for collectd
392 Summary(pl.UTF-8):      Wtyczka dns dla collectd
393 Group:          Daemons
394 Requires:       %{name} = %{version}-%{release}
395 Requires:       perl-rrdtool
396
397 %description dns
398 This plugin has a similar functionality to dnstop: It uses libpcap to
399 get a copy of all traffic from/to port UDP/53 (that's the DNS port),
400 interprets the packets and collects statistics of your DNS traffic.
401
402 %package email
403 Summary:        email-plugin for collectd
404 Summary(pl.UTF-8):      Wtyczka email dla collectd
405 Group:          Daemons
406 Requires:       %{name} = %{version}-%{release}
407
408 %description email
409 The email plugin opens an UNIX-socket over which one can submit email
410 statistics, such as the number of ``ham'', ``spam'', ``virus'', etc.
411 mails received/handled, spam scores and matched spam checks.
412
413 This plugin is intended to be used with the the
414 Mail::SpamAssassin::Plugin::Collectd manpage SpamAssassin-plugin which
415 is included in contrib/, but is of course not limited to that use.
416
417 %package entropy
418 Summary:        entropy-plugin for collectd
419 Summary(pl.UTF-8):      Wtyczka entropy dla collectd
420 Group:          Daemons
421 Requires:       %{name} = %{version}-%{release}
422
423 %description entropy
424 The Entropy plugin collects the available entropy on a system. Entropy
425 is important to generate random numbers, which are used for
426 encryption, authorization and similar tasks.
427
428 %package exec
429 Summary:        exec-plugin for collectd
430 Summary(pl.UTF-8):      Wtyczka exec dla collectd
431 Group:          Daemons
432 Requires:       %{name} = %{version}-%{release}
433
434 %description exec
435 The exec plugin forks of an executable either to receive values or to
436 dispatch notifications to the outside world.
437
438 %package filecount
439 Summary:        filecount-plugin for collectd
440 Summary(pl.UTF-8):      Wtyczka filecount dla collectd
441 Group:          Daemons
442 Requires:       %{name} = %{version}-%{release}
443
444 %description filecount
445 The filecount-plugin does something very simple: Count the number of
446 files in a directory and all its subdirectories. This can be used for
447 a variety of statistics, for example the queue length of an MTA, the
448 number of PHP sessions of a web server or simply the number of files
449 in your home directory.
450
451 %package fscache
452 Summary:        fscache-plugin for collectd
453 Summary(pl.UTF-8):      Wtyczka fscache dla collectd
454 Group:          Daemons
455 Requires:       %{name} = %{version}-%{release}
456
457 %description fscache
458 The fscache-plugin collects statistics about Linux file-system based
459 caching framework.
460
461 %package hddtemp
462 Summary:        hddtemp-plugin for collectd
463 Summary(pl.UTF-8):      Wtyczka hddtemp dla collectd
464 Group:          Daemons
465 Requires:       %{name} = %{version}-%{release}
466 Suggests:       hddtemp-hddtempd
467
468 %description hddtemp
469 Temperature of harddisks. The temperatures are provided via S.M.A.R.T.
470 and queried by the external hddtemp-daemon.
471
472 %package interface
473 Summary:        interface-plugin for collectd
474 Summary(pl.UTF-8):      Wtyczka interface dla collectd
475 Group:          Daemons
476 Requires:       %{name} = %{version}-%{release}
477
478 %description interface
479 The interface-plugin collects information about the traffic (octets),
480 packets and errors of interfaces.
481
482 %package iptables
483 Summary:        iptables-plugin for collectd
484 Summary(pl.UTF-8):      Wtyczka iptables dla collectd
485 Group:          Daemons
486 Requires:       %{name} = %{version}-%{release}
487
488 %description iptables
489 With this plugin you can gather statistics from your ip_tables based
490 packetfilter (aka. firewall). It can collect the byte- and
491 packet-counters of selected rules and submit them to collectd. You can
492 select rules that should be collected wither by its position (e.g.
493 "the fourth rule in the INPUT queue in the filter table") or by its
494 comment (using the COMMENT match). This means that depending on your
495 firewall layout you can collect certain services (such as the amount
496 of web-traffic), source or destination hosts or networks, dropped
497 packets and much more.
498
499 %package ipmi
500 Summary:        ipmi-plugin for collectd
501 Summary(pl.UTF-8):      Wtyczka ipmi dla collectd
502 Group:          Daemons
503 Requires:       %{name} = %{version}-%{release}
504
505 %description ipmi
506 The IPMI plugin uses the OpenIPMI library to read hardware sensors
507 from servers using the Intelligent Platform Management Interface
508 (IPMI). IPMI is very common with server hardware but usually not
509 available in consumer hardware.
510
511 %package irq
512 Summary:        IRQs-plugin for collectd
513 Summary(pl.UTF-8):      Wtyczka IRQs dla collectd
514 Group:          Daemons
515 Requires:       %{name} = %{version}-%{release}
516
517 %description irq
518 The IRQ plugin collects the number of times each interrupt has been
519 handled by the operating system.
520
521 %package libvirt
522 Summary:        libvirt-plugin for collectd
523 Summary(pl.UTF-8):      Wtyczka libvirt dla collectd
524 Group:          Daemons
525 Requires:       %{name} = %{version}-%{release}
526
527 %description libvirt
528 The libvirt plugin uses the virtualization API libvirt, created by
529 RedHat's Emerging Technology group, to gather statistics about
530 virtualized guests on a system. This way, you can collect CPU, network
531 interface and block device usage for each guest without installing
532 collectd on the guest systems. Because the statistics are received
533 from the hypervisor directly, this works not only with
534 para-virtualized hosts, but with hardware virtualized machines, too.
535
536 %package load
537 Summary:        load-plugin for collectd
538 Summary(pl.UTF-8):      Wtyczka load dla collectd
539 Group:          Daemons
540 Requires:       %{name} = %{version}-%{release}
541
542 %description load
543 Collects the system load. These numbers give a rough overview over the
544 utilization of a machine, though their meaning is mostly overrated.
545
546 %package logfile
547 Summary:        logfile-plugin for collectd
548 Summary(pl.UTF-8):      Wtyczka logfile dla collectd
549 Group:          Daemons
550 Requires:       %{name} = %{version}-%{release}
551
552 %description logfile
553 The LogFile plugin receives log messages from the daemon and writes
554 them to a text file.
555
556 %package madwifi
557 Summary:        madwifi plugin for collectd
558 Summary(pl.UTF-8):      Wtyczka madwifi dla collectd
559 Group:          Daemons
560 Requires:       %{name} = %{version}-%{release}
561
562 %description madwifi
563 The MadWifi plugin collects information about Atheros wireless LAN
564 chipsets from the MadWifi driver. It uses the /sys filesystem to
565 identify cards handled by this driver automatically but can be
566 configured manually, too. Because very many statistics are available,
567 an advanced selection mechanism is provided.
568
569 %package match_empty_counter
570 Summary:        match_empty_counter plugin for collectd
571 Summary(pl.UTF-8):      Wtyczka match_empty_counter dla collectd
572 Group:          Daemons
573 Requires:       %{name} = %{version}-%{release}
574
575 %description match_empty_counter
576 Empty Counter match matches value lists, where at least one data
577 source is of type COUNTER and the counter value of all counter data
578 sources is zero.
579
580 %package match_hashed
581 Summary:        match_hashed plugin for collectd
582 Summary(pl.UTF-8):      Wtyczka match_hashed dla collectd
583 Group:          Daemons
584 Requires:       %{name} = %{version}-%{release}
585
586 %description match_hashed
587 match_hashed plugin for collectd - match for simple load balancing and
588 redundant storage.
589
590 %package match_regex
591 Summary:        match_regex plugin for collectd
592 Summary(pl.UTF-8):      Wtyczka match_regex dla collectd
593 Group:          Daemons
594 Requires:       %{name} = %{version}-%{release}
595
596 %description match_regex
597 match_regex plugin for collectd.
598
599 %package match_timediff
600 Summary:        match_timediff plugin for collectd
601 Summary(pl.UTF-8):      Wtyczka match_timediff dla collectd
602 Group:          Daemons
603 Requires:       %{name} = %{version}-%{release}
604
605 %description match_timediff
606 match_timediff plugin for collectd.
607
608 %package match_value
609 Summary:        match_value plugin for collectd
610 Summary(pl.UTF-8):      Wtyczka match_value dla collectd
611 Group:          Daemons
612 Requires:       %{name} = %{version}-%{release}
613
614 %description match_value
615 match_value plugin for collectd.
616
617 %package mbmon
618 Summary:        mbmon plugin for collectd
619 Summary(pl.UTF-8):      Wtyczka mbmon dla collectd
620 Group:          Daemons
621 Requires:       %{name} = %{version}-%{release}
622
623 %description mbmon
624 The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
625
626 %package memcachec
627 Summary:        memcachec-plugin for collectd
628 Summary(pl.UTF-8):      Wtyczka memcachec dla collectd
629 Group:          Daemons
630 Requires:       %{name} = %{version}-%{release}
631
632 %description memcachec
633 The memcachec plugin connects to a memcached server, queries one or
634 more given pages and parses the returned data according to user
635 specification. The matches used are similar to the matches used in the
636 cURL and Tail plugins.
637
638 %package memcached
639 Summary:        memcached-plugin for collectd
640 Summary(pl.UTF-8):      Wtyczka memcached dla collectd
641 Group:          Daemons
642 Requires:       %{name} = %{version}-%{release}
643
644 %description memcached
645 The memcached plugin connects to a memcached daemon and collects the
646 number of connections and requests handled by the daemon, the CPU
647 resources consumed, number of items cached, number of threads, and
648 bytes sent and received.
649
650 %package memory
651 Summary:        memory-plugin for collectd
652 Summary(pl.UTF-8):      Wtyczka memory dla collectd
653 Group:          Daemons
654 Requires:       %{name} = %{version}-%{release}
655
656 %description memory
657 Collects physical memory utilization for collectd.
658
659 %package multimeter
660 Summary:        multimeter-plugin for collectd
661 Summary(pl.UTF-8):      Wtyczka multimeter dla collectd
662 Group:          Daemons
663 Requires:       %{name} = %{version}-%{release}
664
665 %description multimeter
666 The Multimeter plugin reads a value (usually a voltage or current)
667 from a multimeter connected to a serial bus. The plugin tries
668 /dev/ttyS0-9 in order to find a multimeter – no configuration is
669 possible.
670
671 The multimeter used for development was a Metex M-4650CR.
672
673 %package mysql
674 Summary:        mysql-plugin for collectd
675 Summary(pl.UTF-8):      Moduł mysql dla collectd.
676 Group:          Daemons
677 Requires:       %{name} = %{version}-%{release}
678 Requires:       mysql-client
679
680 %description mysql
681 MySQL querying plugin. This plugins provides data of issued commands,
682 called handlers and database traffic.
683
684 %description mysql -l pl.UTF-8
685 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
686 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
687
688 %package netlink
689 Summary:        netlink-plugin for collectd
690 Summary(pl.UTF-8):      Wtyczka netlink dla collectd
691 Group:          Daemons
692 Requires:       %{name} = %{version}-%{release}
693
694 %description netlink
695 This plugin will open a netlink socket to the Linux kernel and use it
696 to get statistics for interfaces, qdiscs, classes, and, if you can
697 make use of it, filters. Since in most setups many of the statistics
698 this plugin can collect aren't of interest, you can select which
699 information to gather using the configuration.
700
701 %package network
702 Summary:        network-plugin for collectd
703 Summary(pl.UTF-8):      Wtyczka network dla collectd
704 Group:          Daemons
705 Requires:       %{name} = %{version}-%{release}
706
707 %description network
708 The Network plugin can send values to other instances and receive
709 values from other %{name} instances.
710
711 %package nfs
712 Summary:        NFS-plugin for collectd
713 Summary(pl.UTF-8):      Wtyczka NFS dla collectd
714 Group:          Daemons
715 Requires:       %{name} = %{version}-%{release}
716
717 %description nfs
718 The nfs plugin counts the number of procedure calls of the different
719 NFS procedures.
720
721 %package nginx
722 Summary:        nginx-plugin for collectd
723 Summary(pl.UTF-8):      Wtyczka nginx dla collectd
724 Group:          Daemons
725 Requires:       %{name} = %{version}-%{release}
726
727 %description nginx
728 This plugin collects the number of connections and requests handled by
729 the nginx daemon, a HTTP and mail server/proxy. It queries the page
730 provided by the ngx_http_stub_status_module module, which isn't
731 compiled by default.
732
733 %package notify_desktop
734 Summary:        notify_desktop for collectd
735 Summary(pl.UTF-8):      Wtyczka notify_desktop dla collectd
736 Group:          Daemons
737 Requires:       %{name} = %{version}-%{release}
738 Requires:       dbus(org.freedesktop.Notifications)
739
740 %description notify_desktop
741 This plugin sends a desktop notification to a notification daemon, as
742 defined in the Desktop Notification Specification.
743
744 %package notify_email
745 Summary:        notify_email-plugin for collectd
746 Summary(pl.UTF-8):      Wtyczka notify_email dla collectd
747 Group:          Daemons
748 Requires:       %{name} = %{version}-%{release}
749
750 %description notify_email
751 The Notify Email plugin uses libESMTP to send notifications to a
752 configured email address(es).
753
754 %package ntpd
755 Summary:        ntpd-plugin for collectd
756 Summary(pl.UTF-8):      Wtyczka ntpd dla collectd
757 Group:          Daemons
758 Requires:       %{name} = %{version}-%{release}
759
760 %description ntpd
761 The NTPd plugin queries an NTP server (usually the local one, where
762 statistics access is allowed) and extracts :
763 - "local" clock parameters: time offset, error and offset loop,
764 - parameters for each NTP server used to sync time: offset,
765   dispersion, delay.
766
767 %package nut
768 Summary:        nut-plugin for collectd
769 Summary(pl.UTF-8):      Wtyczka nut dla collectd
770 Group:          Daemons
771 Requires:       %{name} = %{version}-%{release}
772
773 %description nut
774 UPS statistics using the Network UPS Tools. These statistics include
775 basically everything NUT will give us, including voltages, currents,
776 power, frequencies, load, and temperatures.
777
778 %package olsrd
779 Summary:        olsrd plugin for collectd
780 Summary(pl.UTF-8):      Wtyczka olsrd dla collectd
781 Group:          Daemons
782 Requires:       %{name} = %{version}-%{release}
783
784 %description olsrd
785 The olsrd plugin reads information about meshed networks from the
786 txtinfo plugin of the Optimized Link State Routing daemon (olsrd).
787
788 %package openvpn
789 Summary:        openvpn plugin for collectd
790 Summary(pl.UTF-8):      Wtyczka openvpn dla collectd
791 Group:          Daemons
792 Requires:       %{name} = %{version}-%{release}
793 Requires:       openvpn
794
795 %description openvpn
796 The OpenVPN plugin reads a status file maintained by OpenVPN and
797 gathers traffic statistics about connected clients.
798
799 %package perl
800 Summary:        perl plugin for collectd
801 Summary(pl.UTF-8):      Wtyczka perl dla collectd
802 Group:          Daemons
803 Requires:       %{name} = %{version}-%{release}
804 Requires:       perl-Collectd = %{version}-%{release}
805
806 %description perl
807 The Perl plugin embeds a Perl interpreter into collectd and exposes
808 the application programming interface (API) to Perl-scripts. This
809 allows to write own plugins in the popular scripting language, which
810 are then loaded and executed by the daemon without the need to start a
811 new process and interpreter every few seconds. Perl-modules written
812 for the Perl plugin are therefore more powerful and efficient than
813 scripts executed by the Exec plugin.
814
815 %package ping
816 Summary:        ping-plugin for collectd
817 Summary(pl.UTF-8):      Wtyczka ping dla collectd
818 Group:          Daemons
819 Requires:       %{name} = %{version}-%{release}
820 Requires:       liboping >= 1.1.2
821
822 %description ping
823 The network latency is measured as a roundtrip time. An
824 ICMP-echo-request (aka. "ping")is sent to a host and the time needed
825 for his echo-reply (aka. "pong") to arrive is measured. If a reply is
826 not received within one second the plugin will no longer expect a
827 reply and return. This may happen in several circumstances, e. g. the
828 packet is lost, the host is down, a router has dismissed the packet,
829 etc.
830
831 %package postgresql
832 Summary:        mysql-plugin for collectd
833 Summary(pl.UTF-8):      Moduł postgresql dla collectd.
834 Group:          Daemons
835 Requires:       %{name} = %{version}-%{release}
836
837 %description postgresql
838 The postgresql plugin queries statistics from PostgreSQL databases. It
839 keeps a persistent connection to all configured databases and tries to
840 reconnect if the connection has been interrupted.
841
842 %package powerdns
843 Summary:        powerdns-plugin for collectd
844 Summary(pl.UTF-8):      Wtyczka powerdns dla collectd
845 Group:          Daemons
846 Requires:       %{name} = %{version}-%{release}
847
848 %description powerdns
849 The powerdns plugin queries statistics from an authoritative PowerDNS
850 nameserver and/or a PowerDNS recursor. Since both offer a wide variety
851 of values, many of which are probably meaningless to most users, but
852 may be useful for some.
853
854 %package processes
855 Summary:        processes-plugin for collectd
856 Summary(pl.UTF-8):      Wtyczka processes dla collectd
857 Group:          Daemons
858 Requires:       %{name} = %{version}-%{release}
859
860 %description processes
861 This plugin collects the number of processes, grouped by their state
862 (e.g. running, sleeping, zombies, etc.). In addition to that, it can
863 select detailed statistics about selected processes, grouped by name.
864
865 %package protocols
866 Summary:        protocols-plugin for collectd
867 Summary(pl.UTF-8):      Wtyczka protocols dla collectd
868 Group:          Daemons
869 Requires:       %{name} = %{version}-%{release}
870
871 %description protocols
872 The protocols-plugin provides information about network protocols,
873 such as IP, TCP and UDP.
874
875 %package python
876 Summary:        python-plugin for collectd
877 Summary(pl.UTF-8):      Wtyczka python dla collectd
878 Group:          Daemons
879 Requires:       %{name} = %{version}-%{release}
880
881 %description python
882 The Python plugin embeds a Python interpreter into collectd and
883 exposes the application programming interface (API) to Python-scripts.
884 This allows to write own plugins in the popular scripting language,
885 which are then loaded and executed by the daemon without the need to
886 start a new process and interpreter every few seconds. Python-modules
887 written for the Python plugin are therefore more powerful and
888 efficient than scripts executed by the Exec plugin.
889
890 %package rrdcached
891 Summary:        rrdcached-plugin for collectd
892 Summary(pl.UTF-8):      Wtyczka rrdcached dla collectd
893 Group:          Daemons
894 Requires:       %{name} = %{version}-%{release}
895
896 %description rrdcached
897 The rrdcached plugin uses the RRDtool accelerator daemon, rrdcached,
898 to store values to RRD files in an efficient manner. The combination
899 of the rrdcached plugin and the rrdcached daemon is very similar to
900 the way the rrdtool plugin works.
901
902 %package rrdtool
903 Summary:        rrdtool-plugin for collectd
904 Summary(pl.UTF-8):      Wtyczka rrdtool dla collectd
905 Group:          Daemons
906 Requires:       %{name} = %{version}-%{release}
907 Requires:       rrdtool
908
909 %description rrdtool
910 The RRDtool plugin writes values to RRD-files using librrd.
911
912 %package sensors
913 Summary:        sensors-plugin for collectd
914 Summary(pl.UTF-8):      Wtyczka sensors dla collectd
915 Group:          Daemons
916 Requires:       %{name} = %{version}-%{release}
917
918 %description sensors
919 This plugin uses lm-sensors to read hardware sensors. You will need to
920 configure lm-sensors before this plugin will collect any usefull and
921 correct data.
922
923 %package serial
924 Summary:        serial-plugin for collectd
925 Summary(pl.UTF-8):      Wtyczka serial dla collectd
926 Group:          Daemons
927 Requires:       %{name} = %{version}-%{release}
928
929 %description serial
930 The Serial plugin collects the traffic on serial interfaces.
931
932 %package snmp
933 Summary:        snmp-plugin for collectd
934 Summary(pl.UTF-8):      Wtyczka snmp dla collectd
935 Group:          Daemons
936 Requires:       %{name} = %{version}-%{release}
937
938 %description snmp
939 The snmp plugin queries other hosts using SNMP, the Simple Network
940 Management Protocol, and translates the value it receives to
941 collectd's internal format and dispatches them. Depending on the write
942 plugins you have loaded they may be written to disk or submitted to
943 another instance or whatever you configured.
944
945 %package swap
946 Summary:        swap-plugin for collectd
947 Summary(pl.UTF-8):      Wtyczka swap dla collectd
948 Group:          Daemons
949 Requires:       %{name} = %{version}-%{release}
950
951 %description swap
952 The Swap plugin collects the amount of memory currently written onto
953 hard disk or whatever the system calls “swap”.
954
955 %package syslog
956 Summary:        syslog-plugin for collectd
957 Summary(pl.UTF-8):      Wtyczka syslog dla collectd
958 Group:          Daemons
959 Requires:       %{name} = %{version}-%{release}
960
961 %description syslog
962 The SysLog plugin receives log messages from the daemon and dispatches
963 them to syslog(3).
964
965 %package table
966 Summary:        table-plugin for collectd
967 Summary(pl.UTF-8):      Wtyczka table dla collectd
968 Group:          Daemons
969 Requires:       %{name} = %{version}-%{release}
970
971 %description table
972 The table-plugin provides parsing for table-like structured files,
973 such as many files beneath /proc.
974
975 %package target_notification
976 Summary:        target_notification-plugin for collectd
977 Summary(pl.UTF-8):      Wtyczka target_notification dla collectd
978 Group:          Daemons
979 Requires:       %{name} = %{version}-%{release}
980
981 %description target_notification
982 target_notification plugin for collectd.
983
984 %package target_replace
985 Summary:        target_replace-plugin for collectd
986 Summary(pl.UTF-8):      Wtyczka target_replace dla collectd
987 Group:          Daemons
988 Requires:       %{name} = %{version}-%{release}
989
990 %description target_replace
991 target_replace plugin for collectd.
992
993 %package target_scale
994 Summary:        target_scale-plugin for collectd
995 Summary(pl.UTF-8):      Wtyczka target_scale dla collectd
996 Group:          Daemons
997 Requires:       %{name} = %{version}-%{release}
998
999 %description target_scale
1000 Target to scale (multiply) values by an arbitrary value.
1001
1002 %package target_set
1003 Summary:        target_set-plugin for collectd
1004 Summary(pl.UTF-8):      Wtyczka target_set dla collectd
1005 Group:          Daemons
1006 Requires:       %{name} = %{version}-%{release}
1007
1008 %description target_set
1009 target_set plugin for collectd.
1010
1011 %package target_v5upgrade
1012 Summary:        target_v5upgrade-plugin for collectd
1013 Summary(pl.UTF-8):      Wtyczka target_v5upgrade dla collectd
1014 Group:          Daemons
1015 Requires:       %{name} = %{version}-%{release}
1016
1017 %description target_v5upgrade
1018 The v5 upgrade target can be used to upgrade version 4 data to a
1019 changed version 5 layout.
1020
1021 %package tail
1022 Summary:        tail-plugin for collectd
1023 Summary(pl.UTF-8):      Wtyczka tail dla collectd
1024 Group:          Daemons
1025 Requires:       %{name} = %{version}-%{release}
1026
1027 %description tail
1028 The tail-plugin can be used to "tail" logfiles, i.e. follow them as
1029 tail -F does. Each line is given to one or more "matches" which test
1030 if the line is relevant for any statistics using a regular expression.
1031
1032 %package tcpconns
1033 Summary:        tcpconns-plugin for collectd
1034 Summary(pl.UTF-8):      Wtyczka tcpconns dla collectd
1035 Group:          Daemons
1036 Requires:       %{name} = %{version}-%{release}
1037
1038 %description tcpconns
1039 The tcpconns-plugin counts the number of TCP connections to or from a
1040 specified port. Typically the connectioins where you specify the local
1041 port are incoming connections while the connections where you specify
1042 the remote port are outgoing connections.
1043
1044 %package teamspeak2
1045 Summary:        teamspeak2-plugin for collectd
1046 Summary(pl.UTF-8):      Wtyczka teamspeak2 dla collectd
1047 Group:          Daemons
1048 Requires:       %{name} = %{version}-%{release}
1049
1050 %description teamspeak2
1051 The teamspeak2 plugin connects to the query port of a teamspeak2
1052 server and polls interesting global and virtual server data. The
1053 plugin can query only one physical server but unlimited virtual
1054 servers.
1055
1056 %package ted
1057 Summary:        ted-plugin for collectd
1058 Summary(pl.UTF-8):      Wtyczka ted dla collectd
1059 Group:          Daemons
1060 Requires:       %{name} = %{version}-%{release}
1061
1062 %description ted
1063 The TED-plugin reads power consumption measurements from “The Energy
1064 Detective” (TED).
1065
1066 %package thermal
1067 Summary:        thermal-plugin for collectd
1068 Summary(pl.UTF-8):      Wtyczka thermal dla collectd
1069 Group:          Daemons
1070 Requires:       %{name} = %{version}-%{release}
1071
1072 %description thermal
1073 The thermal plugin reads ACPI thermal zone information from the sysfs
1074 or procfs file system, i. e. mostly system temperature information.
1075
1076 %package threshold
1077 Summary:        threshold-plugin for collectd
1078 Summary(pl.UTF-8):      Wtyczka threshold dla collectd
1079 Group:          Daemons
1080 Requires:       %{name} = %{version}-%{release}
1081
1082 %description threshold
1083 threshold-plugin for collectd.
1084
1085 %package unixsock
1086 Summary:        unixsock-plugin for collectd
1087 Summary(pl.UTF-8):      Wtyczka unixsock dla collectd
1088 Group:          Daemons
1089 Requires:       %{name} = %{version}-%{release}
1090
1091 %description unixsock
1092 The unixsock plugin opens an UNIX-socket over which one can interact
1093 with the daemon. This can be used to use the values collected by
1094 collectd in other applications, such as monitoring, or submit
1095 externally collected values to collectd.
1096
1097 %package uptime
1098 Summary:        uptime-plugin for collectd
1099 Summary(pl.UTF-8):      Wtyczka uptime dla collectd
1100 Group:          Daemons
1101 Requires:       %{name} = %{version}-%{release}
1102
1103 %description uptime
1104 The uptime-plugin can collect the server's uptime.
1105
1106 %package users
1107 Summary:        users-plugin for collectd
1108 Summary(pl.UTF-8):      Wtyczka users dla collectd
1109 Group:          Daemons
1110 Requires:       %{name} = %{version}-%{release}
1111
1112 %description users
1113 Number of users currently logged in.
1114
1115 %package uuid
1116 Summary:        uuid-plugin for collectd
1117 Summary(pl.UTF-8):      Wtyczka uuid dla collectd
1118 Group:          Daemons
1119 Requires:       %{name} = %{version}-%{release}
1120
1121 %description uuid
1122 This plugin, if loaded, causes the Hostname to be taken from the
1123 machine's UUID. The UUID is a universally unique designation for the
1124 machine, usually taken from the machine's BIOS. This is most useful if
1125 the machine is running in a virtual environment such as Xen, in which
1126 case the UUID is preserved across shutdowns and migration.
1127
1128 %package varnish
1129 Summary:        varnish-plugin for collectd
1130 Summary(pl.UTF-8):      Wtyczka varnish dla collectd
1131 Group:          Daemons
1132 Requires:       %{name} = %{version}-%{release}
1133
1134 %description varnish
1135 The Varnish plugin collects information about Varnish, an HTTP
1136 accelerator.
1137
1138 %package vmem
1139 Summary:        vmem-plugin for collectd
1140 Summary(pl.UTF-8):      Wtyczka vmem dla collectd
1141 Group:          Daemons
1142 Requires:       %{name} = %{version}-%{release}
1143
1144 %description vmem
1145 The vmem plugin collects information about the usage of virtual
1146 memory. Since the statistics provided by the Linux kernel are very
1147 detailed, they are collected very detailed.
1148
1149 %package vserver
1150 Summary:        vserver-plugin for collectd
1151 Summary(pl.UTF-8):      Wtyczka vserver dla collectd
1152 Group:          Daemons
1153 Requires:       %{name} = %{version}-%{release}
1154
1155 %description vserver
1156 Collects information about the virtual servers running on a system,
1157 using Linux-Vserver.
1158
1159 %package write_http
1160 Summary:        write_http-plugin for collectd
1161 Summary(pl.UTF-8):      Wtyczka write_http dla collectd
1162 Group:          Daemons
1163 Requires:       %{name} = %{version}-%{release}
1164
1165 %description write_http
1166 The Write HTTP plugin sends the values collected by collectd to a
1167 web-server using HTTP POST requests. The data is formatted as PUTVAL
1168 commands.
1169
1170 %package wireless
1171 Summary:        wireless-plugin for collectd
1172 Summary(pl.UTF-8):      Wtyczka wireless dla collectd
1173 Group:          Daemons
1174 Requires:       %{name} = %{version}-%{release}
1175
1176 %description wireless
1177 The Wireless plugin collects signal quality, signal power and
1178 signal-to-noise ratio for wireless LAN cards.
1179
1180 %package xmms
1181 Summary:        xmms-plugin for collectd
1182 Summary(pl.UTF-8):      Wtyczka xmms dla collectd
1183 Group:          Daemons
1184 Requires:       %{name} = %{version}-%{release}
1185
1186 %description xmms
1187 The XMMS plugin is a plugin for the XMMS music player. It graphs the
1188 bit-rate and sampling rate as you play songs. Not really useful, just
1189 something that got written because we can.
1190
1191 %package -n perl-Collectd
1192 Summary:        Perl files from Collectd package
1193 Group:          Daemons
1194
1195 %description -n perl-Collectd
1196 Perl files from Collectd package
1197
1198 %prep
1199 %setup -q
1200 %patch0 -p1
1201 %patch1 -p1
1202 %patch2 -p1
1203 %patch3 -p1
1204 %patch4 -p0
1205
1206 %build
1207 %{__libtoolize}
1208 %{__aclocal}
1209 %{__autoconf}
1210 %{__autoheader}
1211 %{__automake}
1212
1213 %configure \
1214         CPPFLAGS="-Wno-unused-but-set-variable" \
1215         c_cv_have_libperl=yes \
1216         --with-libiptc=/usr \
1217         --with-libstatgrab=/usr \
1218         --with-lm-sensors=/usr \
1219         --with-libmysql=/usr \
1220         --enable-perl \
1221         %{__enable_disable dns} \
1222         %{__enable_disable ipmi} \
1223         %{__enable_disable iptables} \
1224         %{__enable_disable multimeter} \
1225         %{__enable_disable mysql} \
1226         %{__enable_disable netlink} \
1227         %{__enable_disable notify notify_desktop} \
1228         %{__enable_disable libesmtp notify_email} \
1229         %{__enable_disable libvirt} \
1230         %{__enable_disable ups nut} \
1231         %{__enable_disable ping} \
1232         %{__enable_disable pgsql postgresql} \
1233         %{__enable_disable rrd rrdtool} \
1234         %{__enable_disable sensors} \
1235         %{__enable_disable snmp} \
1236         %{__enable_disable xmms} \
1237         %{__enable_disable varnish} \
1238         %{__enable_disable curl} \
1239         %{__enable_disable curl apache} \
1240         %{__enable_disable curl ngix} \
1241         %{__enable_disable curl ascent} \
1242         %{__disable curl ascent} \
1243         %{__disable curl bind} \
1244         %{__disable xml ascent} \
1245         %{__disable xml bind} \
1246         --disable-ipvs
1247
1248
1249 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
1250         BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
1251         BUILD_WITH_OPENIPMI_LIBS="-L%{_libdir} -lOpenIPMIutils -lOpenIPMIpthread"
1252
1253 %install
1254 rm -rf $RPM_BUILD_ROOT
1255 install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
1256         $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir},%{perl_vendorlib}/,%{_mandir}/man3}
1257
1258 %{__make} install \
1259         DESTDIR=$RPM_BUILD_ROOT
1260
1261 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
1262 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
1263
1264 # Web frontend:
1265 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
1266 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
1267 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
1268 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
1269 install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
1270
1271 cp -R contrib/collection3 $RPM_BUILD_ROOT%{_appdir}
1272 mv $RPM_BUILD_ROOT%{_appdir}/collection3/etc/collection.conf $RPM_BUILD_ROOT%{_webappdir}/collection3.conf
1273 ln -sf %{_webappdir}/collection3.conf $RPM_BUILD_ROOT%{_appdir}/collection3/etc/collection.conf
1274 sed -i -e 's@#DataDir "/var/lib/collectd/rrd"@DataDir "%{_var}/lib/%{name}"@' $RPM_BUILD_ROOT%{_webappdir}/collection3.conf
1275
1276 ### Configs instalation ###
1277 for i in `egrep "^(#|)LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do
1278         egrep "LoadPlugin $i$" src/collectd.conf | %{__sed} -e "s/^#//" > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
1279         grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
1280 done
1281
1282 # Example config in sources: src/collectd.conf
1283 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
1284
1285 # Overwrite only files which we want to change:
1286 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf
1287 install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
1288
1289 mv $RPM_BUILD_ROOT%{_datadir}/perl5/Collectd* $RPM_BUILD_ROOT%{perl_vendorlib}/
1290 mv $RPM_BUILD_ROOT/usr/man/man3/Collectd::Unixsock.3pm $RPM_BUILD_ROOT%{_mandir}/man3/
1291
1292 # Cleanups:
1293 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
1294
1295 %clean
1296 rm -rf $RPM_BUILD_ROOT
1297
1298 %post
1299 /sbin/chkconfig --add %{name}
1300 %service %{name} restart
1301
1302 %preun
1303 if [ "$1" = "0" ]; then
1304         %service -q %{name} stop
1305         /sbin/chkconfig --del %{name}
1306 fi
1307
1308 %post   libs -p /sbin/ldconfig
1309 %postun libs -p /sbin/ldconfig
1310
1311 %define module_scripts() \
1312 %post %1 \
1313 %service %{name} restart \
1314 \
1315 %postun %1 \
1316 %service %{name} restart
1317
1318 %module_scripts apache
1319 %module_scripts apcups
1320 %module_scripts ascent
1321 %module_scripts battery
1322 %module_scripts bind
1323 %module_scripts contextswitch
1324 %module_scripts conntrack
1325 %module_scripts cpu
1326 %module_scripts cpufreq
1327 %module_scripts csv
1328 %module_scripts curl
1329 %module_scripts curl_json
1330 %module_scripts dbi
1331 %module_scripts df
1332 %module_scripts disk
1333 %module_scripts dns
1334 %module_scripts email
1335 %module_scripts entropy
1336 %module_scripts exec
1337 %module_scripts filecount
1338 %module_scripts fscache
1339 %module_scripts hddtemp
1340 %module_scripts interface
1341 %module_scripts ipmi
1342 %module_scripts iptables
1343 %module_scripts irq
1344 %module_scripts libvirt
1345 %module_scripts load
1346 %module_scripts logfile
1347 %module_scripts madwifi
1348 %module_scripts match_empty_counter
1349 %module_scripts match_hashed
1350 %module_scripts match_regex
1351 %module_scripts match_timediff
1352 %module_scripts match_value
1353 %module_scripts mbmon
1354 %module_scripts memcachec
1355 %module_scripts memcached
1356 %module_scripts memory
1357 %module_scripts multimeter
1358 %module_scripts mysql
1359 %module_scripts netlink
1360 %module_scripts network
1361 %module_scripts nfs
1362 %module_scripts nginx
1363 %module_scripts notify_desktop
1364 %module_scripts notify_email
1365 %module_scripts ntpd
1366 %module_scripts nut
1367 %module_scripts olsrd
1368 %module_scripts openvpn
1369 %module_scripts perl
1370 %module_scripts ping
1371 %module_scripts postgresql
1372 %module_scripts powerdns
1373 %module_scripts processes
1374 %module_scripts protocols
1375 %module_scripts python
1376 %module_scripts rrdcached
1377 %module_scripts rrdtool
1378 %module_scripts sensors
1379 %module_scripts serial
1380 %module_scripts snmp
1381 %module_scripts swap
1382 %module_scripts syslog
1383 %module_scripts table
1384 %module_scripts tail
1385 %module_scripts target_notification
1386 %module_scripts target_replace
1387 %module_scripts target_scale
1388 %module_scripts target_set
1389 %module_scripts target_v5upgrade
1390 %module_scripts tcpconns
1391 %module_scripts teamspeak2
1392 %module_scripts ted
1393 %module_scripts thermal
1394 %module_scripts threshold
1395 %module_scripts unixsock
1396 %module_scripts uptime
1397 %module_scripts users
1398 %module_scripts uuid
1399 %module_scripts varnish
1400 %module_scripts vmem
1401 %module_scripts vserver
1402 %module_scripts write_http
1403 %module_scripts wireless
1404 %module_scripts xmms
1405
1406 %triggerin collection -- apache1 < 1.3.37-3, apache1-base
1407 %webapp_register apache %{_webapp}
1408
1409 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
1410 %webapp_unregister apache %{_webapp}
1411
1412 %triggerin collection -- apache < 2.2.0, apache-base
1413 %webapp_register httpd %{_webapp}
1414
1415 %triggerun collection -- apache < 2.2.0, apache-base
1416 %webapp_unregister httpd %{_webapp}
1417
1418 %triggerin collection -- lighttpd
1419 %webapp_register lighttpd %{_webapp}
1420
1421 %triggerun collection -- lighttpd
1422 %webapp_unregister lighttpd %{_webapp}
1423
1424 %files
1425 %defattr(644,root,root,755)
1426 %doc AUTHORS ChangeLog README TODO contrib
1427 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1428 %dir %{_sysconfdir}/%{name}.d
1429 %dir %{_webappdir}
1430 %attr(755,root,root) %{_sbindir}/collectd
1431 %attr(755,root,root) %{_sbindir}/collectdmon
1432 %attr(755,root,root) %{_bindir}/collectdctl
1433 %attr(755,root,root) %{_bindir}/collectd-nagios
1434 %dir %{_libdir}/%{name}
1435 %dir %{_datadir}/%{name}
1436 %{_datadir}/%{name}/types.db
1437 %attr(754,root,root) /etc/rc.d/init.d/%{name}
1438 %{_mandir}/man1/collectd.1*
1439 %{_mandir}/man1/collectd-nagios.1*
1440 %{_mandir}/man1/collectdctl.1*
1441 %{_mandir}/man1/collectdmon.1*
1442 %{_mandir}/man5/collectd.conf.5*
1443 %{_mandir}/man5/collectd-java.5*
1444 %{_mandir}/man5/types.db.5*
1445 %dir %{_var}/lib/%{name}
1446
1447 %files libs
1448 %defattr(644,root,root,755)
1449 %attr(755,root,root) %{_libdir}/libcollectdclient.so.*.*.*
1450 %attr(755,root,root) %ghost %{_libdir}/libcollectdclient.so.0
1451
1452 %files devel
1453 %defattr(644,root,root,755)
1454 %attr(755,root,root) %{_libdir}/libcollectdclient.so
1455 %{_libdir}/libcollectdclient.la
1456 %dir %{_includedir}/%{name}
1457 %{_includedir}/%{name}/*.h
1458 %{_pkgconfigdir}/libcollectdclient.pc
1459
1460 %files static
1461 %defattr(644,root,root,755)
1462 %{_libdir}/libcollectdclient.a
1463 %{_libdir}/%{name}/*.a
1464
1465 %files collection
1466 %defattr(644,root,root,755)
1467 %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
1468 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
1469 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
1470 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
1471 %dir %{_appdir}
1472 %dir %{_appdir}/cgi-bin
1473 %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
1474
1475 %files collection3
1476 %defattr(644,root,root,755)
1477 %doc contrib/collection3/README
1478 %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection3.conf
1479 %dir %{_appdir}/collection3
1480 %dir %{_appdir}/collection3/bin
1481 %attr(755,root,root) %{_appdir}/collection3/bin/*.cgi
1482 %{_appdir}/collection3/etc
1483 %{_appdir}/collection3/lib
1484 %{_appdir}/collection3/share
1485
1486 ########## PLUGINS:
1487 %if %{with xml}
1488 %if %{with curl}
1489 %files apache
1490 %defattr(640,root,root,755)
1491 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
1492 %attr(755,root,root) %{_libdir}/%{name}/apache.so
1493 %endif
1494 %endif
1495
1496 %files apcups
1497 %defattr(644,root,root,755)
1498 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf
1499 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
1500
1501 %if %{with curl}
1502 %files ascent
1503 %defattr(640,root,root,755)
1504 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
1505 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
1506 %endif
1507
1508 %files battery
1509 %defattr(644,root,root,755)
1510 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf
1511 %attr(755,root,root) %{_libdir}/%{name}/battery.so
1512
1513 %if %{with xml}
1514 %if %{with curl}
1515 %files bind
1516 %defattr(644,root,root,755)
1517 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/bind.conf
1518 %attr(755,root,root) %{_libdir}/%{name}/bind.so
1519 %endif
1520 %endif
1521
1522 %files contextswitch
1523 %defattr(644,root,root,755)
1524 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/contextswitch.conf
1525 %attr(755,root,root) %{_libdir}/%{name}/contextswitch.so
1526
1527 %files conntrack
1528 %defattr(644,root,root,755)
1529 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/conntrack.conf
1530 %attr(755,root,root) %{_libdir}/%{name}/conntrack.so
1531
1532 %files cpu
1533 %defattr(644,root,root,755)
1534 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
1535 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
1536
1537 %files cpufreq
1538 %defattr(644,root,root,755)
1539 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf
1540 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
1541
1542 %files csv
1543 %defattr(644,root,root,755)
1544 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf
1545 %attr(755,root,root) %{_libdir}/%{name}/csv.so
1546
1547 %if %{with curl}
1548 %files curl
1549 %defattr(640,root,root,755)
1550 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl.conf
1551 %attr(755,root,root) %{_libdir}/%{name}/curl.so
1552 %if %{with xml}
1553 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl_xml.conf
1554 %attr(755,root,root) %{_libdir}/%{name}/curl_xml.so
1555 %endif
1556
1557 %files curl_json
1558 %defattr(640,root,root,755)
1559 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl_json.conf
1560 %attr(755,root,root) %{_libdir}/%{name}/curl_json.so
1561 %endif
1562
1563 %files dbi
1564 %defattr(640,root,root,755)
1565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dbi.conf
1566 %attr(755,root,root) %{_libdir}/%{name}/dbi.so
1567
1568 %files df
1569 %defattr(644,root,root,755)
1570 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf
1571 %attr(755,root,root) %{_libdir}/%{name}/df.so
1572
1573 %files disk
1574 %defattr(644,root,root,755)
1575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf
1576 %attr(755,root,root) %{_libdir}/%{name}/disk.so
1577
1578 %if %{with dns}
1579 %files dns
1580 %defattr(644,root,root,755)
1581 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
1582 %attr(755,root,root) %{_libdir}/%{name}/dns.so
1583 %endif
1584
1585 %files email
1586 %defattr(644,root,root,755)
1587 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf
1588 %attr(755,root,root) %{_libdir}/%{name}/email.so
1589 %{_mandir}/man5/collectd-email.5*
1590
1591 %files entropy
1592 %defattr(644,root,root,755)
1593 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
1594 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
1595
1596 %files exec
1597 %defattr(644,root,root,755)
1598 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
1599 %attr(755,root,root) %{_libdir}/%{name}/exec.so
1600 %{_mandir}/man5/collectd-exec.5*
1601
1602 %files filecount
1603 %defattr(644,root,root,755)
1604 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
1605 %attr(755,root,root) %{_libdir}/%{name}/filecount.so
1606
1607 %files fscache
1608 %defattr(644,root,root,755)
1609 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/fscache.conf
1610 %attr(755,root,root) %{_libdir}/%{name}/fscache.so
1611
1612 %files hddtemp
1613 %defattr(644,root,root,755)
1614 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
1615 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
1616
1617 %files interface
1618 %defattr(644,root,root,755)
1619 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf
1620 %attr(755,root,root) %{_libdir}/%{name}/interface.so
1621
1622 %if %{with ipmi}
1623 %files ipmi
1624 %defattr(644,root,root,755)
1625 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
1626 %attr(755,root,root) %{_libdir}/%{name}/ipmi.so
1627 %endif
1628
1629 %if %{with iptables}
1630 %files iptables
1631 %defattr(644,root,root,755)
1632 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf
1633 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
1634 %endif
1635
1636 %files irq
1637 %defattr(644,root,root,755)
1638 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf
1639 %attr(755,root,root) %{_libdir}/%{name}/irq.so
1640
1641 %if %{with libvirt}
1642 %files libvirt
1643 %defattr(644,root,root,755)
1644 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/libvirt.conf
1645 %attr(755,root,root) %{_libdir}/%{name}/libvirt.so
1646 %endif
1647
1648 %files load
1649 %defattr(644,root,root,755)
1650 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf
1651 %attr(755,root,root) %{_libdir}/%{name}/load.so
1652
1653 %files logfile
1654 %defattr(644,root,root,755)
1655 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf
1656 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
1657 %{_var}/log/collectd.log
1658
1659 %files madwifi
1660 %defattr(644,root,root,755)
1661 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/madwifi.conf
1662 %attr(755,root,root) %{_libdir}/%{name}/madwifi.so
1663
1664 %files match_empty_counter
1665 %defattr(644,root,root,755)
1666 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_empty_counter.conf
1667 %attr(755,root,root) %{_libdir}/%{name}/match_empty_counter.so
1668
1669 %files match_hashed
1670 %defattr(644,root,root,755)
1671 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_hashed.conf
1672 %attr(755,root,root) %{_libdir}/%{name}/match_hashed.so
1673
1674 %files match_regex
1675 %defattr(644,root,root,755)
1676 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_regex.conf
1677 %attr(755,root,root) %{_libdir}/%{name}/match_regex.so
1678
1679 %files match_timediff
1680 %defattr(644,root,root,755)
1681 %attr(755,root,root) %{_libdir}/%{name}/match_timediff.so
1682 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_timediff.conf
1683
1684 %files match_value
1685 %defattr(644,root,root,755)
1686 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_value.conf
1687 %attr(755,root,root) %{_libdir}/%{name}/match_value.so
1688
1689 %files mbmon
1690 %defattr(644,root,root,755)
1691 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
1692 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
1693
1694 %files memcachec
1695 %defattr(644,root,root,755)
1696 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcachec.conf
1697 %attr(755,root,root) %{_libdir}/%{name}/memcachec.so
1698
1699 %files memcached
1700 %defattr(644,root,root,755)
1701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf
1702 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
1703
1704 %files memory
1705 %defattr(644,root,root,755)
1706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf
1707 %attr(755,root,root) %{_libdir}/%{name}/memory.so
1708
1709 %if %{with multimeter}
1710 %files multimeter
1711 %defattr(644,root,root,755)
1712 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf
1713 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
1714 %endif
1715
1716 %if %{with mysql}
1717 %files mysql
1718 %defattr(640,root,root,755)
1719 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
1720 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
1721 %endif
1722
1723 %if %{with netlink}
1724 %files netlink
1725 %defattr(644,root,root,755)
1726 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf
1727 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
1728 %endif
1729
1730 %files network
1731 %defattr(644,root,root,755)
1732 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf
1733 %attr(755,root,root) %{_libdir}/%{name}/network.so
1734
1735 %files nfs
1736 %defattr(644,root,root,755)
1737 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf
1738 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
1739
1740 %if %{with curl}
1741 %files nginx
1742 %defattr(640,root,root,755)
1743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
1744 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
1745 %endif
1746
1747 %if %{with notify}
1748 %files notify_desktop
1749 %defattr(644,root,root,755)
1750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
1751 %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
1752 %endif
1753
1754 %if %{with libesmtp}
1755 %files notify_email
1756 %defattr(640,root,root,755)
1757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
1758 %attr(755,root,root) %{_libdir}/%{name}/notify_email.so
1759 %endif
1760
1761 %files ntpd
1762 %defattr(644,root,root,755)
1763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
1764 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
1765
1766 %if %{with ups}
1767 %files nut
1768 %defattr(644,root,root,755)
1769 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
1770 %attr(755,root,root) %{_libdir}/%{name}/nut.so
1771 %endif
1772
1773 %files olsrd
1774 %defattr(644,root,root,755)
1775 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/olsrd.conf
1776 %attr(755,root,root) %{_libdir}/%{name}/olsrd.so
1777
1778 %files openvpn
1779 %defattr(644,root,root,755)
1780 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/openvpn.conf
1781 %attr(755,root,root) %{_libdir}/%{name}/openvpn.so
1782
1783 %files perl
1784 %defattr(644,root,root,755)
1785 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/perl.conf
1786 %attr(755,root,root) %{_libdir}/%{name}/perl.so
1787 %{_mandir}/man5/collectd-perl.5*
1788
1789 %if %{with ping}
1790 %files ping
1791 %defattr(644,root,root,755)
1792 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
1793 %attr(755,root,root) %{_libdir}/%{name}/ping.so
1794 %endif
1795
1796 %if %{with pgsql}
1797 %files postgresql
1798 %defattr(640,root,root,755)
1799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
1800 %attr(755,root,root) %{_libdir}/%{name}/postgresql.so
1801 %{_datadir}/%{name}/postgresql_default.conf
1802 %endif
1803
1804 %files powerdns
1805 %defattr(644,root,root,755)
1806 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
1807 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
1808
1809 %files processes
1810 %defattr(644,root,root,755)
1811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
1812 %attr(755,root,root) %{_libdir}/%{name}/processes.so
1813
1814 %files protocols
1815 %defattr(644,root,root,755)
1816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/protocols.conf
1817 %attr(755,root,root) %{_libdir}/%{name}/protocols.so
1818
1819 %files python
1820 %defattr(644,root,root,755)
1821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/python.conf
1822 %attr(755,root,root) %{_libdir}/%{name}/python.so
1823 %{_mandir}/man5/collectd-python.5*
1824
1825 %if %{with rrd}
1826 %files rrdcached
1827 %defattr(644,root,root,755)
1828 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdcached.conf
1829 %attr(755,root,root) %{_libdir}/%{name}/rrdcached.so
1830
1831 %files rrdtool
1832 %defattr(644,root,root,755)
1833 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
1834 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
1835 %endif
1836
1837 %if %{with sensors}
1838 %files sensors
1839 %defattr(644,root,root,755)
1840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
1841 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
1842 %endif
1843
1844 %files serial
1845 %defattr(644,root,root,755)
1846 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf
1847 %attr(755,root,root) %{_libdir}/%{name}/serial.so
1848
1849 %if %{with snmp}
1850 %files snmp
1851 %defattr(644,root,root,755)
1852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
1853 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
1854 %{_mandir}/man5/collectd-snmp.5*
1855 %endif
1856
1857 %files swap
1858 %defattr(644,root,root,755)
1859 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf
1860 %attr(755,root,root) %{_libdir}/%{name}/swap.so
1861
1862 %files syslog
1863 %defattr(644,root,root,755)
1864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
1865 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
1866
1867 %files table
1868 %defattr(644,root,root,755)
1869 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/table.conf
1870 %attr(755,root,root) %{_libdir}/%{name}/table.so
1871
1872 %files tail
1873 %defattr(644,root,root,755)
1874 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
1875 %attr(755,root,root) %{_libdir}/%{name}/tail.so
1876
1877 %files target_notification
1878 %defattr(644,root,root,755)
1879 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_notification.conf
1880 %attr(755,root,root) %{_libdir}/%{name}/target_notification.so
1881
1882 %files target_replace
1883 %defattr(644,root,root,755)
1884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_replace.conf
1885 %attr(755,root,root) %{_libdir}/%{name}/target_replace.so
1886
1887 %files target_scale
1888 %defattr(644,root,root,755)
1889 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_scale.conf
1890 %attr(755,root,root) %{_libdir}/%{name}/target_scale.so
1891
1892 %files target_set
1893 %defattr(644,root,root,755)
1894 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_set.conf
1895 %attr(755,root,root) %{_libdir}/%{name}/target_set.so
1896
1897 %files target_v5upgrade
1898 %defattr(644,root,root,755)
1899 %attr(755,root,root) %{_libdir}/%{name}/target_v5upgrade.so
1900
1901 %files tcpconns
1902 %defattr(644,root,root,755)
1903 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
1904 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
1905
1906 %files teamspeak2
1907 %defattr(644,root,root,755)
1908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
1909 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
1910
1911 %files ted
1912 %defattr(644,root,root,755)
1913 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ted.conf
1914 %attr(755,root,root) %{_libdir}/%{name}/ted.so
1915
1916 %files thermal
1917 %defattr(644,root,root,755)
1918 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
1919 %attr(755,root,root) %{_libdir}/%{name}/thermal.so
1920
1921 %files threshold
1922 %defattr(644,root,root,755)
1923 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/threshold.conf
1924 %attr(755,root,root) %{_libdir}/%{name}/threshold.so
1925 %{_mandir}/man5/collectd-threshold.5*
1926
1927 %files unixsock
1928 %defattr(644,root,root,755)
1929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
1930 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
1931 %{_mandir}/man5/collectd-unixsock.5*
1932
1933 %files uptime
1934 %defattr(644,root,root,755)
1935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uptime.conf
1936 %attr(755,root,root) %{_libdir}/%{name}/uptime.so
1937
1938 %files users
1939 %defattr(644,root,root,755)
1940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
1941 %attr(755,root,root) %{_libdir}/%{name}/users.so
1942
1943 %files uuid
1944 %defattr(644,root,root,755)
1945 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
1946 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
1947
1948 %files varnish
1949 %defattr(644,root,root,755)
1950 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/varnish.conf
1951 %attr(755,root,root) %{_libdir}/%{name}/varnish.so
1952
1953 %files vmem
1954 %defattr(644,root,root,755)
1955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
1956 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
1957
1958 %files vserver
1959 %defattr(644,root,root,755)
1960 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
1961 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
1962
1963 %files wireless
1964 %defattr(644,root,root,755)
1965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
1966 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
1967
1968 %files write_http
1969 %defattr(644,root,root,755)
1970 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/write_http.conf
1971 %attr(755,root,root) %{_libdir}/%{name}/write_http.so
1972
1973 %if %{with xmms}
1974 %files xmms
1975 %defattr(644,root,root,755)
1976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
1977 %attr(755,root,root) %{_libdir}/%{name}/xmms.so
1978 %endif
1979
1980 %files -n perl-Collectd
1981 %defattr(644,root,root,755)
1982 %{perl_vendorlib}/Collectd.pm
1983 %{perl_vendorlib}/Collectd
1984 %{_mandir}/man3/*.3*
This page took 0.38291 seconds and 3 git commands to generate.