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