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