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