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