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