]>
Commit | Line | Data |
---|---|---|
373d486f | 1 | # TODO: |
373d486f | 2 | # - package contrib scripts as %doc |
bed4848f PG |
3 | # - perl modules with Collectd classes package to separate package |
4 | # - Disabled modules: | |
95c10a4d | 5 | # apple_sensors . . . no (obvious) |
95c10a4d | 6 | # ipvs . . . . . . . no (ip_vs.h not found - llh to be fixed) |
95c10a4d | 7 | # libvirt . . . . . . no (requires library) |
bed4848f | 8 | # multimeter . . . . no ? |
5e965dc7 | 9 | # onewire . . . . . . no (needs libowfs) |
0e2c8900 TP |
10 | # perl . . . . . . . no (buggy perl: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467072) |
11 | # rrdcached . . . . . no (requires rrdtool >= 1.4.0) | |
95c10a4d | 12 | # tape . . . . . . . no ? |
4929f1a7 | 13 | # - logrotate file for logfile plugin |
30751942 | 14 | # - %desc -l pl for plugins |
34fc103e JB |
15 | # |
16 | # Conditional build: | |
1018cae1 | 17 | %bcond_without curl # apache, ascent, bind, curl and nginx plugins |
7e70ab62 TP |
18 | %bcond_without dns # DNS plugin |
19 | %bcond_without ipmi # IPMI plugin | |
34fc103e | 20 | %bcond_without iptables # iptables plugin |
1018cae1 | 21 | %bcond_without libesmtp # notify_email plugin |
34fc103e | 22 | %bcond_with multimeter # multimeter plugin |
1018cae1 | 23 | %bcond_without mysql # MySQL plugin |
34fc103e | 24 | %bcond_without netlink # netlink plugin |
1018cae1 TP |
25 | %bcond_without notify # notify_desktop plugin |
26 | %bcond_without ping # ping plugin | |
27 | %bcond_without psql # PostgreSQL plugin | |
28 | %bcond_without rrd # rrdtool and rrdcached plugins | |
29 | %bcond_without sensors # sensors plugin | |
30 | %bcond_without snmp # SNMP plugin | |
31 | %bcond_without ups # nut plugin | |
32 | %bcond_without xml # ascent, bind and libvirt plugins | |
33 | %bcond_without xmms # XMMS plugin | |
34fc103e | 34 | # |
4b6e34c7 | 35 | #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637 |
36 | %ifarch %{x8664} | |
37 | %undefine with_iptables | |
38 | %undefine with_netlink | |
39 | %endif | |
7df111b4 | 40 | Summary: Collects system information in RRD files |
322f1351 | 41 | Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD |
373d486f | 42 | Name: collectd |
d94da88b | 43 | Version: 4.7.0 |
44 | Release: 1 | |
373d486f | 45 | License: GPL v2 |
81857fc6 | 46 | Group: Daemons |
d94da88b | 47 | Source0: http://collectd.org/files/%{name}-%{version}.tar.bz2 |
48 | # Source0-md5: 8740670913a7740f976122f3070e592b | |
f6984413 | 49 | Source1: %{name}.conf |
ec8f9a12 | 50 | Source2: %{name}.init |
96376a8d | 51 | Source3: %{name}-http.conf |
cdf53ab5 | 52 | Source4: %{name}-lighttpd.conf |
4929f1a7 PG |
53 | Source10: %{name}-df.conf |
54 | Source11: %{name}-rrdtool.conf | |
cdf53ab5 | 55 | Patch0: %{name}-collection.patch |
f6984413 | 56 | URL: http://collectd.org/ |
aedbf1de | 57 | %{?with_ipmi:BuildRequires: OpenIPMI-devel >= 2.0.14-3} |
373d486f AF |
58 | BuildRequires: autoconf |
59 | BuildRequires: automake | |
1018cae1 | 60 | %{?with_curl:BuildRequires: curl-devel} |
1f546c2e | 61 | BuildRequires: gcc-c++ |
a833d36c | 62 | BuildRequires: hal-devel |
13d220ef | 63 | %{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4} |
1f546c2e | 64 | BuildRequires: libdbi-devel |
1018cae1 | 65 | %{?with_libesmtp:BuildRequires: libesmtp-devel} |
1f546c2e | 66 | BuildRequires: libltdl-devel |
7e70ab62 | 67 | %{?with_netlink:BuildRequires: libnetlink-devel} |
1018cae1 TP |
68 | %{?with_notify:BuildRequires: libnotify-devel} |
69 | %{?with_ping:BuildRequires: liboping-devel} | |
7e70ab62 | 70 | %{?with_dns:BuildRequires: libpcap-devel} |
8bf13ddb | 71 | BuildRequires: libstatgrab-devel >= 0.12 |
373d486f | 72 | BuildRequires: libtool |
1018cae1 TP |
73 | %{?with_xml:BuildRequires: libxml2-devel} |
74 | %{?with_sensors:BuildRequires: lm_sensors-devel} | |
75 | %{?with_mysql:BuildRequires: mysql-devel} | |
76 | %{?with_ups:BuildRequires: nut-devel} | |
18e77dbc | 77 | BuildRequires: perl-devel |
1018cae1 | 78 | %{?with_psql:BuildRequires: postgresql-devel} |
c7024cdb | 79 | BuildRequires: rpmbuild(macros) >= 1.268 |
1018cae1 TP |
80 | %{?with_rrd:BuildRequires: rrdtool-devel} |
81 | %{?with_snmp:BuildRequires: net-snmp-devel} | |
82 | %{?with_xmms:BuildRequires: xmms-devel} | |
7df111b4 | 83 | Requires(post,preun): /sbin/chkconfig |
c7024cdb | 84 | Requires: rc-scripts |
373d486f AF |
85 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
86 | ||
30751942 TP |
87 | %define _pkglibdir %{_sharedstatedir}/%{name} |
88 | %define _webapps /etc/webapps | |
89 | %define _webapp %{name} | |
90 | %define _webappdir %{_webapps}/%{_webapp} | |
91 | %define _appdir %{_datadir}/%{_webapp} | |
9259a6ab | 92 | |
373d486f | 93 | %description |
7df111b4 JB |
94 | collectd is a small daemon which collects system information every 10 |
95 | seconds and writes the results in an RRD-file. | |
96 | ||
97 | In contrast to most similar software, collectd is not a script but | |
98 | written in plain C for performance and portability. As a daemon it | |
99 | stays in memory, so there is no need to start up a heavy interpreter | |
100 | every time new values should be logged. This allows collectd to have a | |
101 | 10 second resolution while being nice to the system. | |
102 | ||
19cbcad3 | 103 | %description -l pl.UTF-8 |
c7024cdb ER |
104 | collectd to mały demon zbierający co 10 sekund informacje o systemie i |
105 | zapisujący wyniki do pliku RRD. | |
373d486f | 106 | |
19cbcad3 JR |
107 | W odróżnieniu od innych podobnych programów collectd nie jest |
108 | skryptem, lecz jest napisany w czystym C z myślą o wydajności i | |
109 | przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby | |
c7024cdb ER |
110 | urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być |
111 | zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10 | |
112 | sekund i nie obciążać zbytnio systemu. | |
373d486f | 113 | |
b8e7f76a | 114 | %package libs |
7e70ab62 TP |
115 | Summary: %{name} libraries |
116 | Summary(pl.UTF-8): Biblioteki %{name} | |
117 | Group: Libraries | |
b8e7f76a PG |
118 | |
119 | %description libs | |
120 | %{name} libraries. | |
121 | ||
122 | %description libs -l pl.UTF-8 | |
123 | Biblioteki %{name}. | |
124 | ||
125 | %package devel | |
7e70ab62 TP |
126 | Summary: Header files for %{name} libraries |
127 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek %{name} | |
128 | Group: Development/Libraries | |
129 | Requires: %{name}-libs = %{version}-%{release} | |
b8e7f76a PG |
130 | |
131 | %description devel | |
132 | Header files for %{name} libraries. | |
133 | ||
134 | %description devel -l pl.UTF-8 | |
135 | Pliki nagłówkowe bibliotek %{name}. | |
136 | ||
18e77dbc | 137 | %package apache |
273ffc81 JB |
138 | Summary: apache-plugin for collectd |
139 | Summary(pl_PL.UTF-8): Wtyczka apache dla collectd | |
18e77dbc | 140 | Group: Daemons |
273ffc81 | 141 | Requires: %{name} = %{version}-%{release} |
18e77dbc | 142 | |
143 | %description apache | |
144 | This plugin collectd data provided by Apache's `mod_status'. | |
145 | ||
146 | %description apache -l pl.UTF-8 | |
273ffc81 JB |
147 | Wtyczka collectd zbierająca informacje udostępniane przez moduł |
148 | 'mod_status' Apacha. | |
18e77dbc | 149 | |
5e965dc7 PG |
150 | %package apcups |
151 | Summary: APC UPS plugin for collectd | |
152 | Summary(pl_PL.UTF-8): Wtyczka APC UPS dla collectd | |
153 | Group: Daemons | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | ||
156 | %description apcups | |
157 | APC UPS plugin for collectd. | |
158 | ||
159 | %package ascent | |
160 | Summary: ascent-plugin for collectd | |
161 | Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd | |
162 | Group: Daemons | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | ||
165 | %description ascent | |
166 | ascent plugin for collectd. | |
167 | ||
168 | %package battery | |
169 | Summary: battery plugin for collectd | |
170 | Summary(pl_PL.UTF-8): Wtyczka battery dla collectd | |
171 | Group: Daemons | |
172 | Requires: %{name} = %{version}-%{release} | |
173 | ||
174 | %description battery | |
175 | This plugin collects the battery's charge, the drawn current and the | |
176 | battery's voltage. | |
177 | ||
b8e7f76a PG |
178 | %package bind |
179 | Summary: bind plugin for collectd | |
180 | Summary(pl_PL.UTF-8): Wtyczka bind dla collectd | |
181 | Group: Daemons | |
182 | Requires: %{name} = %{version}-%{release} | |
183 | ||
184 | %description bind | |
185 | Starting with BIND 9.5.0, the most widely used DNS server software provides | |
186 | extensive statistics about queries, responses and lots of other information. | |
187 | The bind plugin retrieves this information that's encoded in XML and provided | |
188 | via HTTP and submits the values to collectd. | |
189 | ||
133ab397 | 190 | %package collection |
30751942 TP |
191 | Summary: Web script for collectd |
192 | Summary(pl_PL.UTF-8): Web script for collectd | |
5fafedfc | 193 | Group: Applications/WWW |
194 | Requires: %{name} = %{version}-%{release} | |
cdf53ab5 PG |
195 | Requires: perl(CGI) |
196 | Requires: perl(Data::Dumper) | |
197 | Requires: perl(HTML::Entities) | |
198 | Requires: perl(RRDs) | |
199 | Requires: perl(URI::Escape) | |
200 | Requires: webserver(cgi) | |
16598688 | 201 | Suggests: fonts-TTF-DejaVu |
5fafedfc | 202 | |
133ab397 | 203 | %description collection |
30751942 | 204 | Web script for collectd. |
5fafedfc | 205 | |
d94da88b | 206 | %package conntrack |
207 | Summary: conntrack-plugin for collectd | |
208 | Summary(pl_PL.UTF-8): Wtyczka conntrack dla collectd | |
209 | Group: Daemons | |
210 | Requires: %{name} = %{version}-%{release} | |
211 | ||
212 | %description conntrack | |
213 | The conntrack-plugin collects the connection tracking table size. | |
214 | ||
5e965dc7 PG |
215 | %package cpu |
216 | Summary: cpu-plugin for collectd | |
217 | Summary(pl_PL.UTF-8): Wtyczka cpu dla collectd | |
218 | Group: Daemons | |
219 | Requires: %{name} = %{version}-%{release} | |
220 | ||
221 | %description cpu | |
222 | The cpu-plugin collects the amount of time spent by the CPU in various states, | |
223 | most notably executing user code, executing system code, waiting for IO | |
224 | operations and being idle. | |
225 | ||
226 | %package cpufreq | |
227 | Summary: cpufreq-plugin for collectd | |
228 | Summary(pl_PL.UTF-8): Wtyczka cpufreq dla collectd | |
229 | Group: Daemons | |
230 | Requires: %{name} = %{version}-%{release} | |
231 | ||
232 | %description cpufreq | |
233 | Collects the current CPU's frequency, mostly for mobile computers. | |
234 | ||
235 | %package csv | |
236 | Summary: CSV output plugin for collectd | |
237 | Summary(pl_PL.UTF-8): Wtyczka wyjściowa CSV dla collectd | |
238 | Group: Daemons | |
239 | Requires: %{name} = %{version}-%{release} | |
240 | ||
241 | %description csv | |
242 | CSV output plugin for collectd. | |
243 | ||
b8e7f76a PG |
244 | %package curl |
245 | Summary: cURL output plugin for collectd | |
246 | Summary(pl_PL.UTF-8): Wtyczka wyjściowa cURL dla collectd | |
247 | Group: Daemons | |
248 | Requires: %{name} = %{version}-%{release} | |
249 | ||
250 | %description curl | |
251 | The curl plugin uses the libcurl to read web pages and the match | |
252 | infrastructure (the same code used by the tail plugin) to use regular | |
253 | expressions with the received data. | |
254 | ||
255 | %package dbi | |
256 | Summary: dbi plugin for collectd | |
257 | Summary(pl_PL.UTF-8): Wtyczka dbi dla collectd | |
258 | Group: Daemons | |
259 | Requires: %{name} = %{version}-%{release} | |
260 | ||
261 | %description dbi | |
262 | This plugin uses the dbi library to connect to various databases, execute | |
263 | SQL statements and read back the results. dbi is an acronym for "database | |
264 | interface" in case you were wondering about the name. You can configure how | |
265 | each column is to be interpreted and the plugin will generate one or more | |
266 | data sets from each row returned according to these rules. | |
267 | ||
5e965dc7 PG |
268 | %package df |
269 | Summary: df-plugin for collectd | |
270 | Summary(pl_PL.UTF-8): Wtyczka df dla collectd | |
271 | Group: Daemons | |
272 | Requires: %{name} = %{version}-%{release} | |
273 | ||
274 | %description df | |
275 | The df-plugin collects file system usage information, i. e. basically how | |
276 | much space on a mounted partition is used and how much is available. It's | |
277 | named after and very similar to the df(1) UNIX command that's been around | |
278 | forever. | |
279 | ||
280 | %package disk | |
281 | Summary: disk-plugin for collectd | |
282 | Summary(pl_PL.UTF-8): Wtyczka disk dla collectd | |
283 | Group: Daemons | |
284 | Requires: %{name} = %{version}-%{release} | |
285 | ||
286 | %description disk | |
287 | This plugin collects performance statistics of harddisks and, where | |
288 | supported, partitions. | |
289 | ||
8bf13ddb PG |
290 | %package dns |
291 | Summary: dns-plugin for collectd | |
292 | Summary(pl_PL.UTF-8): Wtyczka dns dla collectd | |
293 | Group: Daemons | |
294 | Requires: %{name} = %{version}-%{release} | |
3a1b5393 | 295 | Requires: perl-rrdtool |
ef79d9ea | 296 | |
8bf13ddb | 297 | %description dns |
5e965dc7 PG |
298 | This plugin has a similar functionality to dnstop: It uses libpcap to get |
299 | a copy of all traffic from/to port UDP/53 (that's the DNS port), interprets | |
300 | the packets and collects statistics of your DNS traffic. | |
301 | ||
302 | %package email | |
303 | Summary: email-plugin for collectd | |
304 | Summary(pl_PL.UTF-8): Wtyczka email dla collectd | |
305 | Group: Daemons | |
306 | Requires: %{name} = %{version}-%{release} | |
307 | ||
308 | %description email | |
309 | The email plugin opens an UNIX-socket over which one can submit email | |
310 | statistics, such as the number of ``ham'', ``spam'', ``virus'', etc. mails | |
311 | received/handled, spam scores and matched spam checks. | |
312 | ||
313 | This plugin is intended to be used with the the | |
314 | Mail::SpamAssassin::Plugin::Collectd manpage SpamAssassin-plugin which is | |
315 | included in contrib/, but is of course not limited to that use. | |
316 | ||
317 | %package entropy | |
318 | Summary: entropy-plugin for collectd | |
319 | Summary(pl_PL.UTF-8): Wtyczka entropy dla collectd | |
320 | Group: Daemons | |
321 | Requires: %{name} = %{version}-%{release} | |
322 | ||
323 | %description entropy | |
324 | entropy plugin for collectd. | |
325 | ||
326 | %package exec | |
327 | Summary: exec-plugin for collectd | |
328 | Summary(pl_PL.UTF-8): Wtyczka exec dla collectd | |
329 | Group: Daemons | |
330 | Requires: %{name} = %{version}-%{release} | |
331 | ||
332 | %description exec | |
333 | The exec plugin forks of an executable either to receive values or to | |
334 | dispatch notifications to the outside world. | |
335 | ||
336 | %package filecount | |
337 | Summary: filecount-plugin for collectd | |
338 | Summary(pl_PL.UTF-8): Wtyczka filecount dla collectd | |
339 | Group: Daemons | |
340 | Requires: %{name} = %{version}-%{release} | |
341 | ||
342 | %description filecount | |
343 | The filecount-plugin does something very simple: Count the number of files | |
344 | in a directory and all its subdirectories. This can be used for a variety of | |
345 | statistics, for example the queue length of an MTA, the number of PHP | |
346 | sessions of a web server or simply the number of files in your home | |
347 | directory. | |
8bf13ddb | 348 | |
d94da88b | 349 | %package fscache |
350 | Summary: fscache-plugin for collectd | |
351 | Summary(pl_PL.UTF-8): Wtyczka fscache dla collectd | |
352 | Group: Daemons | |
353 | Requires: %{name} = %{version}-%{release} | |
354 | ||
355 | %description fscache | |
356 | The fscache-plugin collects statistics about Linux file-system based caching | |
357 | framework. | |
358 | ||
8bf13ddb PG |
359 | %package hddtemp |
360 | Summary: hddtemp-plugin for collectd | |
361 | Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd | |
362 | Group: Daemons | |
363 | Requires: %{name} = %{version}-%{release} | |
b73c1be9 | 364 | Suggests: hddtemp-hddtempd |
8bf13ddb PG |
365 | |
366 | %description hddtemp | |
5e965dc7 PG |
367 | Temperature of harddisks. The temperatures are provided via S.M.A.R.T. and |
368 | queried by the external hddtemp-daemon. | |
369 | ||
370 | %package interface | |
371 | Summary: interface-plugin for collectd | |
372 | Summary(pl_PL.UTF-8): Wtyczka interface dla collectd | |
373 | Group: Daemons | |
374 | Requires: %{name} = %{version}-%{release} | |
375 | ||
376 | %description interface | |
377 | The interface-plugin collects information about the traffic (octets), packets | |
378 | and errors of interfaces. | |
379 | ||
380 | %package iptables | |
381 | Summary: iptables-plugin for collectd | |
382 | Summary(pl_PL.UTF-8): Wtyczka iptables dla collectd | |
383 | Group: Daemons | |
384 | Requires: %{name} = %{version}-%{release} | |
385 | ||
386 | %description iptables | |
387 | With this plugin you can gather statistics from your ip_tables based | |
388 | packetfilter (aka. firewall). It can collect the byte- and packet-counters | |
389 | of selected rules and submit them to collectd. You can select rules that | |
390 | should be collected wither by its position (e.g. "the fourth rule in the | |
391 | INPUT queue in the filter table") or by its comment (using the COMMENT | |
392 | match). This means that depending on your firewall layout you can collect | |
393 | certain services (such as the amount of web-traffic), source or destination | |
394 | hosts or networks, dropped packets and much more. | |
8bf13ddb | 395 | |
87ba198e | 396 | %package ipmi |
397 | Summary: ipmi-plugin for collectd | |
398 | Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd | |
399 | Group: Daemons | |
400 | Requires: %{name} = %{version}-%{release} | |
401 | ||
402 | %description ipmi | |
403 | ipmi plugin for collectd. | |
404 | ||
34fc103e JB |
405 | %description ipmi -l pl.UTF-8 |
406 | Wtyczka ipmi dla collectd. | |
407 | ||
5e965dc7 PG |
408 | %package irq |
409 | Summary: IRQs-plugin for collectd | |
410 | Summary(pl_PL.UTF-8): Wtyczka IRQs dla collectd | |
411 | Group: Daemons | |
412 | Requires: %{name} = %{version}-%{release} | |
413 | ||
414 | %description irq | |
415 | IRQs plugin for collectd. | |
416 | ||
417 | %package load | |
418 | Summary: load-plugin for collectd | |
419 | Summary(pl_PL.UTF-8): Wtyczka load dla collectd | |
420 | Group: Daemons | |
421 | Requires: %{name} = %{version}-%{release} | |
422 | ||
423 | %description load | |
424 | Collects the system load. These numbers give a rough overview over the | |
425 | utilization of a machine, though their meaning is mostly overrated. | |
426 | ||
427 | %package logfile | |
428 | Summary: logfile-plugin for collectd | |
429 | Summary(pl_PL.UTF-8): Wtyczka logfile dla collectd | |
430 | Group: Daemons | |
431 | Requires: %{name} = %{version}-%{release} | |
432 | ||
433 | %description logfile | |
434 | Logfile plugin for collectd. | |
435 | ||
b8e7f76a PG |
436 | %package match_regex |
437 | Summary: match_regex plugin for collectd | |
438 | Summary(pl_PL.UTF-8): Wtyczka match_regex dla collectd | |
439 | Group: Daemons | |
440 | Requires: %{name} = %{version}-%{release} | |
441 | ||
442 | %description match_regex | |
443 | match_regex plugin for collectd. | |
444 | ||
445 | %package match_timediff | |
446 | Summary: match_timediff plugin for collectd | |
447 | Summary(pl_PL.UTF-8): Wtyczka match_timediff dla collectd | |
448 | Group: Daemons | |
449 | Requires: %{name} = %{version}-%{release} | |
450 | ||
451 | %description match_timediff | |
452 | match_timediff plugin for collectd. | |
453 | ||
454 | %package match_value | |
455 | Summary: match_value plugin for collectd | |
456 | Summary(pl_PL.UTF-8): Wtyczka match_value dla collectd | |
457 | Group: Daemons | |
458 | Requires: %{name} = %{version}-%{release} | |
459 | ||
460 | %description match_value | |
461 | match_value plugin for collectd. | |
462 | ||
5e965dc7 | 463 | %package mbmon |
b8e7f76a | 464 | Summary: mbmon plugin for collectd |
5e965dc7 PG |
465 | Summary(pl_PL.UTF-8): Wtyczka mbmon dla collectd |
466 | Group: Daemons | |
467 | Requires: %{name} = %{version}-%{release} | |
468 | ||
469 | %description mbmon | |
470 | The mbmon plugin uses mbmon to retrieve temperature, voltage, etc. | |
471 | ||
472 | %package memcached | |
473 | Summary: memcached-plugin for collectd | |
474 | Summary(pl_PL.UTF-8): Wtyczka memcached dla collectd | |
475 | Group: Daemons | |
476 | Requires: %{name} = %{version}-%{release} | |
477 | ||
478 | %description memcached | |
479 | The memcached plugin connects to a memcached daemon and collects the number | |
480 | of connections and requests handled by the daemon, the CPU resources consumed, | |
481 | number of items cached, number of threads, and bytes sent and received. | |
482 | ||
483 | %package memory | |
484 | Summary: memory-plugin for collectd | |
485 | Summary(pl_PL.UTF-8): Wtyczka memory dla collectd | |
486 | Group: Daemons | |
487 | Requires: %{name} = %{version}-%{release} | |
488 | ||
489 | %description memory | |
490 | Collects physical memory utilization for collectd. | |
491 | ||
492 | %package multimeter | |
493 | Summary: multimeter-plugin for collectd | |
494 | Summary(pl_PL.UTF-8): Wtyczka multimeter dla collectd | |
495 | Group: Daemons | |
496 | Requires: %{name} = %{version}-%{release} | |
497 | ||
498 | %description multimeter | |
499 | Multimeter plugin for collectd. | |
500 | ||
18e77dbc | 501 | %package mysql |
273ffc81 JB |
502 | Summary: mysql-plugin for collectd |
503 | Summary(pl_PL.UTF-8): Moduł mysql dla collectd. | |
18e77dbc | 504 | Group: Daemons |
273ffc81 | 505 | Requires: %{name} = %{version}-%{release} |
18e77dbc | 506 | |
507 | %description mysql | |
273ffc81 | 508 | MySQL querying plugin. This plugins provides data of issued commands, |
18e77dbc | 509 | called handlers and database traffic. |
510 | ||
511 | %description mysql -l pl.UTF-8 | |
273ffc81 JB |
512 | Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych |
513 | poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym. | |
18e77dbc | 514 | |
5e965dc7 PG |
515 | %package netlink |
516 | Summary: netlink-plugin for collectd | |
517 | Summary(pl_PL.UTF-8): Wtyczka netlink dla collectd | |
518 | Group: Daemons | |
519 | Requires: %{name} = %{version}-%{release} | |
520 | ||
521 | %description netlink | |
522 | This plugin will open a netlink socket to the Linux kernel and use it to get | |
523 | statistics for interfaces, qdiscs, classes, and, if you can make use of it, | |
524 | filters. Since in most setups many of the statistics this plugin can collect | |
525 | aren't of interest, you can select which information to gather using the | |
526 | configuration. | |
527 | ||
528 | %package network | |
529 | Summary: network-plugin for collectd | |
530 | Summary(pl_PL.UTF-8): Wtyczka network dla collectd | |
531 | Group: Daemons | |
532 | Requires: %{name} = %{version}-%{release} | |
533 | ||
534 | %description network | |
535 | nginx plugin for collectd. | |
536 | ||
537 | %package nfs | |
538 | Summary: NFS-plugin for collectd | |
539 | Summary(pl_PL.UTF-8): Wtyczka NFS dla collectd | |
540 | Group: Daemons | |
541 | Requires: %{name} = %{version}-%{release} | |
542 | ||
543 | %description nfs | |
544 | The nfs plugin counts the number of procedure calls of the different NFS | |
545 | procedures. | |
546 | ||
8bf13ddb PG |
547 | %package nginx |
548 | Summary: nginx-plugin for collectd | |
549 | Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd | |
550 | Group: Daemons | |
551 | Requires: %{name} = %{version}-%{release} | |
552 | ||
553 | %description nginx | |
5e965dc7 PG |
554 | This plugin collects the number of connections and requests handled by the |
555 | nginx daemon, a HTTP and mail server/proxy. It queries the page provided by | |
556 | the ngx_http_stub_status_module module, which isn't compiled by default. | |
8bf13ddb | 557 | |
7be39ce7 | 558 | %package notify_desktop |
559 | Summary: notify_desktop for collectd | |
560 | Summary(pl_PL.UTF-8): Wtyczka notify_desktop dla collectd | |
561 | Group: Daemons | |
562 | Requires: %{name} = %{version}-%{release} | |
563 | ||
564 | %description notify_desktop | |
5e965dc7 PG |
565 | This plugin sends a desktop notification to a notification daemon, as |
566 | defined in the Desktop Notification Specification. To actually display the | |
567 | notifications, notification-daemon is required and collectd has to be able | |
568 | to access the X server. | |
7be39ce7 | 569 | |
b4b27e4a | 570 | %package notify_email |
5e965dc7 | 571 | Summary: notify_email-plugin for collectd |
b4b27e4a PG |
572 | Summary(pl_PL.UTF-8): Wtyczka notify_email dla collectd |
573 | Group: Daemons | |
574 | Requires: %{name} = %{version}-%{release} | |
575 | ||
576 | %description notify_email | |
577 | notify_email plugin for collectd. | |
578 | ||
5e965dc7 PG |
579 | %package ntpd |
580 | Summary: ntpd-plugin for collectd | |
581 | Summary(pl_PL.UTF-8): Wtyczka ntpd dla collectd | |
582 | Group: Daemons | |
583 | Requires: %{name} = %{version}-%{release} | |
584 | ||
585 | %description ntpd | |
586 | NTPd plugin for collectd. | |
587 | ||
b4b27e4a PG |
588 | %package nut |
589 | Summary: nut-plugin for collectd | |
590 | Summary(pl_PL.UTF-8): Wtyczka nut dla collectd | |
591 | Group: Daemons | |
592 | Requires: %{name} = %{version}-%{release} | |
593 | ||
594 | %description nut | |
5e965dc7 PG |
595 | UPS statistics using the Network UPS Tools. These statistics include |
596 | basically everything NUT will give us, including voltages, currents, power, | |
597 | frequencies, load, and temperatures. | |
b4b27e4a | 598 | |
b8e7f76a PG |
599 | %package openvpn |
600 | Summary: openvpn plugin for collectd | |
601 | Summary(pl_PL.UTF-8): Wtyczka openvpn dla collectd | |
602 | Group: Daemons | |
603 | Requires: %{name} = %{version}-%{release} | |
604 | Requires: openvpn | |
605 | ||
606 | %description openvpn | |
607 | The OpenVPN plugin reads a status file maintained by OpenVPN and gathers | |
608 | traffic statistics about connected clients. | |
609 | ||
907cfb56 PG |
610 | %package ping |
611 | Summary: ping-plugin for collectd | |
612 | Summary(pl_PL.UTF-8): Wtyczka ping dla collectd | |
613 | Group: Daemons | |
614 | Requires: %{name} = %{version}-%{release} | |
615 | ||
616 | %description ping | |
5e965dc7 PG |
617 | The network latency is measured as a roundtrip time. An ICMP-echo-request |
618 | (aka. "ping")is sent to a host and the time needed for his echo-reply (aka. | |
619 | "pong") to arrive is measured. If a reply is not received within one second | |
620 | the plugin will no longer expect a reply and return. This may happen in | |
621 | several circumstances, e. g. the packet is lost, the host is down, a router | |
622 | has dismissed the packet, etc. | |
907cfb56 | 623 | |
b4b27e4a PG |
624 | %package postgresql |
625 | Summary: mysql-plugin for collectd | |
626 | Summary(pl_PL.UTF-8): Moduł postgresql dla collectd. | |
627 | Group: Daemons | |
628 | Requires: %{name} = %{version}-%{release} | |
629 | ||
630 | %description postgresql | |
5e965dc7 PG |
631 | The postgresql plugin queries statistics from PostgreSQL databases. It keeps |
632 | a persistent connection to all configured databases and tries to reconnect | |
633 | if the connection has been interrupted. | |
b4b27e4a | 634 | |
4b6e34c7 | 635 | %package powerdns |
636 | Summary: powerdns-plugin for collectd | |
637 | Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd | |
638 | Group: Daemons | |
639 | Requires: %{name} = %{version}-%{release} | |
640 | ||
641 | %description powerdns | |
5e965dc7 PG |
642 | The powerdns plugin queries statistics from an authoritative PowerDNS |
643 | nameserver and/or a PowerDNS recursor. Since both offer a wide variety of | |
644 | values, many of which are probably meaningless to most users, but may be | |
645 | useful for some. | |
646 | ||
647 | %package processes | |
648 | Summary: processes-plugin for collectd | |
649 | Summary(pl_PL.UTF-8): Wtyczka processes dla collectd | |
650 | Group: Daemons | |
651 | Requires: %{name} = %{version}-%{release} | |
652 | ||
653 | %description processes | |
654 | This plugin collects the number of processes, grouped by their state (e.g. | |
655 | running, sleeping, zombies, etc.). In addition to that, it can select | |
656 | detailed statistics about selected processes, grouped by name. | |
4b6e34c7 | 657 | |
d94da88b | 658 | %package protocols |
659 | Summary: protocols-plugin for collectd | |
660 | Summary(pl_PL.UTF-8): Wtyczka protocols dla collectd | |
661 | Group: Daemons | |
662 | Requires: %{name} = %{version}-%{release} | |
663 | ||
664 | %description protocols | |
665 | The protocols-plugin provides information about network protocols, such as | |
666 | IP, TCP and UDP. | |
667 | ||
8bf13ddb PG |
668 | %package rrdtool |
669 | Summary: rrdtool-plugin for collectd | |
670 | Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd | |
671 | Group: Daemons | |
672 | Requires: %{name} = %{version}-%{release} | |
673 | Requires: rrdtool | |
674 | ||
675 | %description rrdtool | |
676 | RRDTOOL plugin for collectd. | |
677 | ||
678 | %package sensors | |
679 | Summary: sensors-plugin for collectd | |
680 | Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd | |
681 | Group: Daemons | |
682 | Requires: %{name} = %{version}-%{release} | |
683 | ||
684 | %description sensors | |
5e965dc7 PG |
685 | This plugin uses lm-sensors to read hardware sensors. You will need to |
686 | configure lm-sensors before this plugin will collect any usefull and correct | |
687 | data. | |
688 | ||
5e965dc7 PG |
689 | %package serial |
690 | Summary: serial-plugin for collectd | |
691 | Summary(pl_PL.UTF-8): Wtyczka serial dla collectd | |
692 | Group: Daemons | |
693 | Requires: %{name} = %{version}-%{release} | |
694 | ||
695 | %description serial | |
696 | Serial plugin for collectd. | |
8bf13ddb PG |
697 | |
698 | %package snmp | |
699 | Summary: snmp-plugin for collectd | |
700 | Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd | |
701 | Group: Daemons | |
702 | Requires: %{name} = %{version}-%{release} | |
703 | ||
704 | %description snmp | |
5e965dc7 PG |
705 | The snmp plugin queries other hosts using SNMP, the Simple Network |
706 | Management Protocol, and translates the value it receives to collectd's | |
707 | internal format and dispatches them. Depending on the write plugins you have | |
708 | loaded they may be written to disk or submitted to another instance or | |
709 | whatever you configured. | |
710 | ||
711 | %package swap | |
712 | Summary: swap-plugin for collectd | |
713 | Summary(pl_PL.UTF-8): Wtyczka swap dla collectd | |
714 | Group: Daemons | |
715 | Requires: %{name} = %{version}-%{release} | |
716 | ||
717 | %description swap | |
718 | Swap space plugin for collectd. | |
719 | ||
720 | %package syslog | |
721 | Summary: syslog-plugin for collectd | |
722 | Summary(pl_PL.UTF-8): Wtyczka syslog dla collectd | |
723 | Group: Daemons | |
724 | Requires: %{name} = %{version}-%{release} | |
725 | ||
726 | %description syslog | |
727 | Syslog plugin for collectd. | |
728 | ||
d94da88b | 729 | %package table |
730 | Summary: table-plugin for collectd | |
731 | Summary(pl_PL.UTF-8): Wtyczka table dla collectd | |
732 | Group: Daemons | |
733 | Requires: %{name} = %{version}-%{release} | |
734 | ||
735 | %description table | |
736 | The table-plugin provides parsing for table-like structured files, | |
737 | such as many files beneath /proc. | |
738 | ||
b8e7f76a PG |
739 | %package target_notification |
740 | Summary: target_notification-plugin for collectd | |
741 | Summary(pl_PL.UTF-8): Wtyczka target_notification dla collectd | |
742 | Group: Daemons | |
743 | Requires: %{name} = %{version}-%{release} | |
744 | ||
745 | %description target_notification | |
746 | target_notification plugin for collectd. | |
747 | ||
748 | %package target_replace | |
749 | Summary: target_replace-plugin for collectd | |
750 | Summary(pl_PL.UTF-8): Wtyczka target_replace dla collectd | |
751 | Group: Daemons | |
752 | Requires: %{name} = %{version}-%{release} | |
753 | ||
754 | %description target_replace | |
755 | target_replace plugin for collectd. | |
756 | ||
757 | %package target_set | |
758 | Summary: target_set-plugin for collectd | |
759 | Summary(pl_PL.UTF-8): Wtyczka target_set dla collectd | |
760 | Group: Daemons | |
761 | Requires: %{name} = %{version}-%{release} | |
762 | ||
763 | %description target_set | |
764 | target_set plugin for collectd. | |
765 | ||
5e965dc7 PG |
766 | %package tail |
767 | Summary: tail-plugin for collectd | |
768 | Summary(pl_PL.UTF-8): Wtyczka tail dla collectd | |
769 | Group: Daemons | |
770 | Requires: %{name} = %{version}-%{release} | |
771 | ||
772 | %description tail | |
773 | The tail-plugin can be used to "tail" logfiles, i.e. follow them as tail -F | |
774 | does. Each line is given to one or more "matches" which test if the line is | |
775 | relevant for any statistics using a regular expression. | |
776 | ||
777 | %package tcpconns | |
778 | Summary: tcpconns-plugin for collectd | |
779 | Summary(pl_PL.UTF-8): Wtyczka tcpconns dla collectd | |
780 | Group: Daemons | |
781 | Requires: %{name} = %{version}-%{release} | |
782 | ||
783 | %description tcpconns | |
784 | The tcpconns-plugin counts the number of TCP connections to or from a | |
785 | specified port. Typically the connectioins where you specify the local port | |
786 | are incoming connections while the connections where you specify the remote | |
787 | port are outgoing connections. | |
788 | ||
789 | %package teamspeak2 | |
790 | Summary: teamspeak2-plugin for collectd | |
791 | Summary(pl_PL.UTF-8): Wtyczka teamspeak2 dla collectd | |
792 | Group: Daemons | |
793 | Requires: %{name} = %{version}-%{release} | |
794 | ||
795 | %description teamspeak2 | |
796 | The teamspeak2 plugin connects to the query port of a teamspeak2 server and | |
797 | polls interesting global and virtual server data. The plugin can query only | |
798 | one physical server but unlimited virtual servers. | |
799 | ||
d94da88b | 800 | %package ted |
801 | Summary: ted-plugin for collectd | |
802 | Summary(pl_PL.UTF-8): Wtyczka ted dla collectd | |
803 | Group: Daemons | |
804 | Requires: %{name} = %{version}-%{release} | |
805 | ||
806 | %description ted | |
807 | The TED-plugin reads power consumption measurements from “The Energy Detective” | |
808 | (TED). | |
809 | ||
5e965dc7 PG |
810 | %package thermal |
811 | Summary: thermal-plugin for collectd | |
812 | Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd | |
813 | Group: Daemons | |
814 | Requires: %{name} = %{version}-%{release} | |
815 | ||
816 | %description thermal | |
817 | Thermal plugin for collectd. | |
818 | ||
819 | %package unixsock | |
820 | Summary: unixsock-plugin for collectd | |
821 | Summary(pl_PL.UTF-8): Wtyczka unixsock dla collectd | |
822 | Group: Daemons | |
823 | Requires: %{name} = %{version}-%{release} | |
824 | ||
825 | %description unixsock | |
826 | The unixsock plugin opens an UNIX-socket over which one can interact with | |
827 | the daemon. This can be used to use the values collected by collectd in | |
828 | other applications, such as monitoring, or submit externally collected | |
829 | values to collectd. | |
830 | ||
d94da88b | 831 | %package uptime |
832 | Summary: uptime-plugin for collectd | |
833 | Summary(pl_PL.UTF-8): Wtyczka uptime dla collectd | |
834 | Group: Daemons | |
835 | Requires: %{name} = %{version}-%{release} | |
836 | ||
837 | %description uptime | |
838 | The uptime-plugin can collect the server's uptime. | |
839 | ||
5e965dc7 PG |
840 | %package users |
841 | Summary: users-plugin for collectd | |
842 | Summary(pl_PL.UTF-8): Wtyczka users dla collectd | |
843 | Group: Daemons | |
844 | Requires: %{name} = %{version}-%{release} | |
845 | ||
846 | %description users | |
847 | Number of users currently logged in. | |
8bf13ddb PG |
848 | |
849 | %package uuid | |
850 | Summary: uuid-plugin for collectd | |
851 | Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd | |
852 | Group: Daemons | |
853 | Requires: %{name} = %{version}-%{release} | |
854 | ||
855 | %description uuid | |
5e965dc7 PG |
856 | This plugin, if loaded, causes the Hostname to be taken from the machine's |
857 | UUID. The UUID is a universally unique designation for the machine, usually | |
858 | taken from the machine's BIOS. This is most useful if the machine is | |
859 | running in a virtual environment such as Xen, in which case the UUID is | |
860 | preserved across shutdowns and migration. | |
861 | ||
862 | %package vmem | |
863 | Summary: vmem-plugin for collectd | |
864 | Summary(pl_PL.UTF-8): Wtyczka vmem dla collectd | |
865 | Group: Daemons | |
866 | Requires: %{name} = %{version}-%{release} | |
867 | ||
868 | %description vmem | |
869 | The vmem plugin collects information about the usage of virtual memory. | |
870 | Since the statistics provided by the Linux kernel are very detailed, they | |
871 | are collected very detailed. | |
872 | ||
873 | %package vserver | |
874 | Summary: vserver-plugin for collectd | |
875 | Summary(pl_PL.UTF-8): Wtyczka vserver dla collectd | |
876 | Group: Daemons | |
877 | Requires: %{name} = %{version}-%{release} | |
878 | ||
879 | %description vserver | |
880 | Collects information about the virtual servers running on a system, using | |
881 | Linux-Vserver. | |
882 | ||
883 | %package wireless | |
884 | Summary: wireless-plugin for collectd | |
885 | Summary(pl_PL.UTF-8): Wtyczka wireless dla collectd | |
886 | Group: Daemons | |
887 | Requires: %{name} = %{version}-%{release} | |
888 | ||
889 | %description wireless | |
890 | Wireless plugin for collectd. | |
8bf13ddb PG |
891 | |
892 | %package xmms | |
893 | Summary: xmms-plugin for collectd | |
894 | Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd | |
895 | Group: Daemons | |
896 | Requires: %{name} = %{version}-%{release} | |
8bf13ddb PG |
897 | |
898 | %description xmms | |
899 | This plugin collectd data provided by XMMS. | |
900 | ||
373d486f AF |
901 | %prep |
902 | %setup -q | |
cdf53ab5 | 903 | %patch0 -p1 |
526f2b1b | 904 | |
373d486f AF |
905 | %build |
906 | %{__libtoolize} | |
907 | %{__aclocal} | |
908 | %{__autoconf} | |
909 | %{__autoheader} | |
910 | %{__automake} | |
4b6e34c7 | 911 | |
373d486f AF |
912 | %configure \ |
913 | --with-libstatgrab=/usr \ | |
914 | --with-lm-sensors=/usr \ | |
4b6e34c7 | 915 | --with-libmysql=/usr \ |
34fc103e | 916 | --%{?with_dns:en}%{!?with_dns:dis}able-dns \ |
7e70ab62 | 917 | --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \ |
34fc103e | 918 | --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \ |
7e70ab62 | 919 | --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \ |
1018cae1 | 920 | --%{?with_mysql:en}%{!?with_mysql:dis}able-mysql \ |
95c10a4d | 921 | --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \ |
1018cae1 TP |
922 | --%{?with_notify:en}%{!?with_notify:dis}able-notify_desktop \ |
923 | --%{?with_libesmtp:en}%{!?with_libesmtp:dis}able-notify_email \ | |
924 | --%{?with_ups:en}%{!?with_ups:dis}able-nut \ | |
925 | --%{?with_ping:en}%{!?with_ping:dis}able-ping \ | |
926 | --%{?with_psql:en}%{!?with_psql:dis}able-postgresql \ | |
876407e2 | 927 | --%{?with_rrd:en}%{!?with_rrd:dis}able-rrdtool \ |
1018cae1 TP |
928 | --%{?with_sensors:en}%{!?with_sensors:dis}able-sensors \ |
929 | --%{?with_snmp:en}%{!?with_snmp:dis}able-snmp \ | |
930 | --%{?with_xmms:en}%{!?with_xmms:dis}able-xmms \ | |
931 | %{!?with_curl:--disable-{apache,ascent,bind,curl,nginx}} \ | |
556a9493 | 932 | %{!?with_xml:--disable-{ascent,bind,libvirt}} \ |
aedbf1de PG |
933 | --disable-ipvs \ |
934 | --disable-libvirt \ | |
935 | --disable-perl | |
4b6e34c7 | 936 | |
937 | ||
87ba198e | 938 | %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \ |
939 | BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \ | |
940 | BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread" | |
373d486f AF |
941 | |
942 | %install | |
943 | rm -rf $RPM_BUILD_ROOT | |
711f12a6 | 944 | install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \ |
96376a8d | 945 | $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir}} |
373d486f AF |
946 | |
947 | %{__make} install \ | |
948 | DESTDIR=$RPM_BUILD_ROOT | |
81857fc6 | 949 | |
e105712e | 950 | touch $RPM_BUILD_ROOT%{_var}/log/collectd.log |
ff0d0ea0 | 951 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
373d486f | 952 | |
96376a8d PG |
953 | # Web frontend: |
954 | install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir} | |
955 | install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin | |
956 | install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf | |
957 | install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf | |
cdf53ab5 | 958 | install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf |
96376a8d | 959 | |
711f12a6 | 960 | ### Configs instalation ### |
b8e7f76a PG |
961 | for i in `egrep "^(#|)LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do |
962 | egrep "LoadPlugin $i$" src/collectd.conf | %{__sed} -e "s/^#//" > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf | |
4929f1a7 | 963 | grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf |
cbe0cde9 | 964 | done |
965 | ||
711f12a6 PG |
966 | # Example config in sources: src/collectd.conf |
967 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf | |
4929f1a7 PG |
968 | |
969 | # Overwrite only files which we want to change: | |
970 | install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf | |
971 | install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf | |
711f12a6 | 972 | |
96376a8d PG |
973 | # Cleanups: |
974 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
975 | ||
373d486f AF |
976 | %clean |
977 | rm -rf $RPM_BUILD_ROOT | |
978 | ||
81857fc6 | 979 | %post |
373d486f AF |
980 | /sbin/chkconfig --add %{name} |
981 | %service %{name} restart | |
982 | ||
81857fc6 | 983 | %preun |
373d486f AF |
984 | if [ "$1" = "0" ]; then |
985 | %service -q %{name} stop | |
986 | /sbin/chkconfig --del %{name} | |
987 | fi | |
988 | ||
b8e7f76a PG |
989 | %post libs -p /sbin/ldconfig |
990 | %postun libs -p /sbin/ldconfig | |
991 | ||
bed4848f PG |
992 | %define module_scripts() \ |
993 | %post %1 \ | |
994 | %service %{name} restart \ | |
995 | \ | |
996 | %postun %1 \ | |
997 | %service %{name} restart | |
998 | ||
0e2c8900 | 999 | %module_scripts apache |
5e965dc7 | 1000 | %module_scripts apcups |
0e2c8900 | 1001 | %module_scripts ascent |
5e965dc7 | 1002 | %module_scripts battery |
0e2c8900 | 1003 | %module_scripts bind |
d94da88b | 1004 | %module_scripts conntrack |
5e965dc7 | 1005 | %module_scripts cpu |
d94da88b | 1006 | %module_scripts cpufreq |
5e965dc7 | 1007 | %module_scripts csv |
0e2c8900 | 1008 | %module_scripts curl |
b8e7f76a | 1009 | %module_scripts dbi |
5e965dc7 PG |
1010 | %module_scripts df |
1011 | %module_scripts disk | |
0e2c8900 | 1012 | %module_scripts dns |
5e965dc7 PG |
1013 | %module_scripts email |
1014 | %module_scripts entropy | |
1015 | %module_scripts exec | |
1016 | %module_scripts filecount | |
d94da88b | 1017 | %module_scripts fscache |
bed4848f | 1018 | %module_scripts hddtemp |
5e965dc7 | 1019 | %module_scripts interface |
0e2c8900 TP |
1020 | %module_scripts ipmi |
1021 | %module_scripts iptables | |
5e965dc7 PG |
1022 | %module_scripts irq |
1023 | %module_scripts load | |
1024 | %module_scripts logfile | |
b8e7f76a PG |
1025 | %module_scripts match_regex |
1026 | %module_scripts match_timediff | |
1027 | %module_scripts match_value | |
5e965dc7 PG |
1028 | %module_scripts mbmon |
1029 | %module_scripts memcached | |
1030 | %module_scripts memory | |
0e2c8900 TP |
1031 | %module_scripts multimeter |
1032 | %module_scripts mysql | |
1033 | %module_scripts netlink | |
5e965dc7 PG |
1034 | %module_scripts network |
1035 | %module_scripts nfs | |
0e2c8900 TP |
1036 | %module_scripts nginx |
1037 | %module_scripts notify_desktop | |
1038 | %module_scripts notify_email | |
5e965dc7 | 1039 | %module_scripts ntpd |
0e2c8900 | 1040 | %module_scripts nut |
b8e7f76a | 1041 | %module_scripts openvpn |
0e2c8900 TP |
1042 | %module_scripts ping |
1043 | %module_scripts postgresql | |
bed4848f | 1044 | %module_scripts powerdns |
5e965dc7 | 1045 | %module_scripts processes |
d94da88b | 1046 | %module_scripts protocols |
0e2c8900 TP |
1047 | %module_scripts rrdtool |
1048 | %module_scripts sensors | |
5e965dc7 | 1049 | %module_scripts serial |
0e2c8900 | 1050 | %module_scripts snmp |
5e965dc7 PG |
1051 | %module_scripts swap |
1052 | %module_scripts syslog | |
d94da88b | 1053 | %module_scripts table |
5e965dc7 | 1054 | %module_scripts tail |
b8e7f76a PG |
1055 | %module_scripts target_notification |
1056 | %module_scripts target_replace | |
1057 | %module_scripts target_set | |
5e965dc7 PG |
1058 | %module_scripts tcpconns |
1059 | %module_scripts teamspeak2 | |
d94da88b | 1060 | %module_scripts ted |
5e965dc7 PG |
1061 | %module_scripts thermal |
1062 | %module_scripts unixsock | |
d94da88b | 1063 | %module_scripts uptime |
5e965dc7 | 1064 | %module_scripts users |
bed4848f | 1065 | %module_scripts uuid |
5e965dc7 PG |
1066 | %module_scripts vmem |
1067 | %module_scripts vserver | |
1068 | %module_scripts wireless | |
0e2c8900 | 1069 | %module_scripts xmms |
bed4848f | 1070 | |
96376a8d PG |
1071 | %triggerin collection -- apache1 < 1.3.37-3, apache1-base |
1072 | %webapp_register apache %{_webapp} | |
1073 | ||
1074 | %triggerun collection -- apache1 < 1.3.37-3, apache1-base | |
1075 | %webapp_unregister apache %{_webapp} | |
1076 | ||
1077 | %triggerin collection -- apache < 2.2.0, apache-base | |
1078 | %webapp_register httpd %{_webapp} | |
1079 | ||
1080 | %triggerun collection -- apache < 2.2.0, apache-base | |
1081 | %webapp_unregister httpd %{_webapp} | |
1082 | ||
73f73519 | 1083 | %triggerin collection -- lighttpd |
cdf53ab5 PG |
1084 | %webapp_register lighttpd %{_webapp} |
1085 | ||
73f73519 | 1086 | %triggerun collection -- lighttpd |
cdf53ab5 PG |
1087 | %webapp_unregister lighttpd %{_webapp} |
1088 | ||
373d486f AF |
1089 | %files |
1090 | %defattr(644,root,root,755) | |
e105712e | 1091 | %doc AUTHORS ChangeLog README TODO contrib |
25bc0190 PG |
1092 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf |
1093 | %dir %{_sysconfdir}/%{name}.d | |
373d486f | 1094 | %attr(755,root,root) %{_sbindir}/collectd |
e105712e | 1095 | %attr(755,root,root) %{_sbindir}/collectdmon |
18e77dbc | 1096 | %attr(755,root,root) %{_bindir}/collectd-nagios |
b8e7f76a PG |
1097 | %dir %{_datadir}/%{name} |
1098 | %{_datadir}/%{name}/types.db | |
ff0d0ea0 | 1099 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
373d486f | 1100 | %{_mandir}/man1/collectd.1* |
18e77dbc | 1101 | %{_mandir}/man1/collectd-nagios.1* |
373d486f | 1102 | %{_mandir}/man5/collectd.conf.5* |
18e77dbc | 1103 | %{_mandir}/man5/collectd-perl.5* |
e105712e | 1104 | %{_mandir}/man1/collectdmon.1* |
1105 | %{_mandir}/man5/types.db.5* | |
e105712e | 1106 | %dir %{_var}/lib/%{name} |
1107 | ||
b8e7f76a PG |
1108 | %files libs |
1109 | %defattr(644,root,root,755) | |
1110 | %attr(755,root,root) %{_libdir}/libcollectdclient.so.*.*.* | |
1111 | %attr(755,root,root) %ghost %{_libdir}/libcollectdclient.so.0 | |
421d51c6 | 1112 | %dir %{_libdir}/%{name} |
b8e7f76a PG |
1113 | |
1114 | %files devel | |
1115 | %defattr(644,root,root,755) | |
1116 | %attr(755,root,root) %{_libdir}/libcollectdclient.so | |
1117 | %{_libdir}/libcollectdclient.la | |
1118 | %dir %{_includedir}/%{name} | |
1119 | %{_includedir}/%{name}/*.h | |
1120 | %{_pkgconfigdir}/libcollectdclient.pc | |
1121 | ||
5e965dc7 PG |
1122 | %files collection |
1123 | %defattr(644,root,root,755) | |
1124 | %dir %{_webappdir} | |
1125 | %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf | |
1126 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf | |
1127 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf | |
cdf53ab5 | 1128 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf |
5e965dc7 PG |
1129 | %dir %{_appdir} |
1130 | %dir %{_appdir}/cgi-bin | |
1131 | %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi | |
1132 | ||
8bf13ddb | 1133 | ########## PLUGINS: |
1018cae1 TP |
1134 | %if %{with xml} |
1135 | %if %{with curl} | |
61ccc70a TP |
1136 | %files apache |
1137 | %defattr(640,root,root,755) | |
1138 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf | |
1139 | %attr(755,root,root) %{_libdir}/%{name}/apache.so | |
1018cae1 TP |
1140 | %endif |
1141 | %endif | |
61ccc70a | 1142 | |
5e965dc7 PG |
1143 | %files apcups |
1144 | %defattr(644,root,root,755) | |
1145 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf | |
1146 | %attr(755,root,root) %{_libdir}/%{name}/apcups.so | |
1147 | ||
1018cae1 | 1148 | %if %{with curl} |
8bf13ddb | 1149 | %files ascent |
61ccc70a | 1150 | %defattr(640,root,root,755) |
711f12a6 | 1151 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf |
8bf13ddb | 1152 | %attr(755,root,root) %{_libdir}/%{name}/ascent.so |
1018cae1 | 1153 | %endif |
18e77dbc | 1154 | |
5e965dc7 | 1155 | %files battery |
5fafedfc | 1156 | %defattr(644,root,root,755) |
5e965dc7 PG |
1157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf |
1158 | %attr(755,root,root) %{_libdir}/%{name}/battery.so | |
1159 | ||
1018cae1 TP |
1160 | %if %{with xml} |
1161 | %if %{with curl} | |
b8e7f76a PG |
1162 | %files bind |
1163 | %defattr(644,root,root,755) | |
1164 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/bind.conf | |
1165 | %attr(755,root,root) %{_libdir}/%{name}/bind.so | |
1018cae1 TP |
1166 | %endif |
1167 | %endif | |
b8e7f76a | 1168 | |
d94da88b | 1169 | %files conntrack |
1170 | %defattr(644,root,root,755) | |
1171 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/conntrack.conf | |
1172 | %attr(755,root,root) %{_libdir}/%{name}/conntrack.so | |
1173 | ||
5e965dc7 PG |
1174 | %files cpu |
1175 | %defattr(644,root,root,755) | |
1176 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf | |
1177 | %attr(755,root,root) %{_libdir}/%{name}/cpu.so | |
1178 | ||
1179 | %files cpufreq | |
1180 | %defattr(644,root,root,755) | |
1181 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf | |
1182 | %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so | |
1183 | ||
1184 | %files csv | |
1185 | %defattr(644,root,root,755) | |
1186 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf | |
1187 | %attr(755,root,root) %{_libdir}/%{name}/csv.so | |
1188 | ||
1018cae1 | 1189 | %if %{with curl} |
b8e7f76a | 1190 | %files curl |
61ccc70a | 1191 | %defattr(640,root,root,755) |
b8e7f76a PG |
1192 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl.conf |
1193 | %attr(755,root,root) %{_libdir}/%{name}/curl.so | |
1018cae1 | 1194 | %endif |
b8e7f76a PG |
1195 | |
1196 | %files dbi | |
61ccc70a | 1197 | %defattr(640,root,root,755) |
b8e7f76a PG |
1198 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dbi.conf |
1199 | %attr(755,root,root) %{_libdir}/%{name}/dbi.so | |
1200 | ||
5e965dc7 PG |
1201 | %files df |
1202 | %defattr(644,root,root,755) | |
1203 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf | |
1204 | %attr(755,root,root) %{_libdir}/%{name}/df.so | |
1205 | ||
1206 | %files disk | |
1207 | %defattr(644,root,root,755) | |
1208 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf | |
1209 | %attr(755,root,root) %{_libdir}/%{name}/disk.so | |
5fafedfc | 1210 | |
7e70ab62 | 1211 | %if %{with dns} |
8bf13ddb PG |
1212 | %files dns |
1213 | %defattr(644,root,root,755) | |
711f12a6 | 1214 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf |
8bf13ddb | 1215 | %attr(755,root,root) %{_libdir}/%{name}/dns.so |
7e70ab62 | 1216 | %endif |
8bf13ddb | 1217 | |
5e965dc7 PG |
1218 | %files email |
1219 | %defattr(644,root,root,755) | |
1220 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf | |
1221 | %attr(755,root,root) %{_libdir}/%{name}/email.so | |
1222 | %{_mandir}/man5/collectd-email.5* | |
1223 | ||
1224 | %files entropy | |
1225 | %defattr(644,root,root,755) | |
1226 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf | |
1227 | %attr(755,root,root) %{_libdir}/%{name}/entropy.so | |
1228 | ||
1229 | %files exec | |
1230 | %defattr(644,root,root,755) | |
1231 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf | |
1232 | %attr(755,root,root) %{_libdir}/%{name}/exec.so | |
1233 | %{_mandir}/man5/collectd-exec.5* | |
1234 | ||
1235 | %files filecount | |
1236 | %defattr(644,root,root,755) | |
1237 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf | |
1238 | %attr(755,root,root) %{_libdir}/%{name}/filecount.so | |
1239 | ||
d94da88b | 1240 | %files fscache |
1241 | %defattr(644,root,root,755) | |
1242 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/fscache.conf | |
1243 | %attr(755,root,root) %{_libdir}/%{name}/fscache.so | |
1244 | ||
8bf13ddb PG |
1245 | %files hddtemp |
1246 | %defattr(644,root,root,755) | |
711f12a6 | 1247 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf |
8bf13ddb PG |
1248 | %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so |
1249 | ||
5e965dc7 PG |
1250 | %files interface |
1251 | %defattr(644,root,root,755) | |
1252 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf | |
1253 | %attr(755,root,root) %{_libdir}/%{name}/interface.so | |
1254 | ||
87ba198e | 1255 | %if %{with ipmi} |
1256 | %files ipmi | |
1257 | %defattr(644,root,root,755) | |
711f12a6 | 1258 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf |
87ba198e | 1259 | %attr(755,root,root) %{_libdir}/%{name}/ipmi.so |
1260 | %endif | |
1261 | ||
5e965dc7 PG |
1262 | %if %{with iptables} |
1263 | %files iptables | |
1264 | %defattr(644,root,root,755) | |
1265 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf | |
1266 | %attr(755,root,root) %{_libdir}/%{name}/iptables.so | |
1267 | %endif | |
1268 | ||
1269 | %files irq | |
1270 | %defattr(644,root,root,755) | |
1271 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf | |
1272 | %attr(755,root,root) %{_libdir}/%{name}/irq.so | |
1273 | ||
1274 | %files load | |
1275 | %defattr(644,root,root,755) | |
1276 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf | |
1277 | %attr(755,root,root) %{_libdir}/%{name}/load.so | |
1278 | ||
1279 | %files logfile | |
1280 | %defattr(644,root,root,755) | |
1281 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf | |
1282 | %attr(755,root,root) %{_libdir}/%{name}/logfile.so | |
4929f1a7 | 1283 | %{_var}/log/collectd.log |
5e965dc7 | 1284 | |
b8e7f76a PG |
1285 | %files match_regex |
1286 | %defattr(644,root,root,755) | |
1287 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_regex.conf | |
1288 | %attr(755,root,root) %{_libdir}/%{name}/match_regex.so | |
1289 | ||
1290 | %files match_timediff | |
1291 | %defattr(644,root,root,755) | |
1292 | %attr(755,root,root) %{_libdir}/%{name}/match_timediff.so | |
1293 | ||
1294 | %files match_value | |
1295 | %defattr(644,root,root,755) | |
1296 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_value.conf | |
1297 | %attr(755,root,root) %{_libdir}/%{name}/match_value.so | |
1298 | ||
5e965dc7 PG |
1299 | %files mbmon |
1300 | %defattr(644,root,root,755) | |
1301 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf | |
1302 | %attr(755,root,root) %{_libdir}/%{name}/mbmon.so | |
1303 | ||
1304 | %files memcached | |
1305 | %defattr(644,root,root,755) | |
1306 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf | |
1307 | %attr(755,root,root) %{_libdir}/%{name}/memcached.so | |
1308 | ||
1309 | %files memory | |
1310 | %defattr(644,root,root,755) | |
1311 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf | |
1312 | %attr(755,root,root) %{_libdir}/%{name}/memory.so | |
1313 | ||
1314 | %if %{with multimeter} | |
1315 | %files multimeter | |
1316 | %defattr(644,root,root,755) | |
1317 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf | |
1318 | %attr(755,root,root) %{_libdir}/%{name}/multimeter.so | |
1319 | %endif | |
1320 | ||
1018cae1 | 1321 | %if %{with mysql} |
18e77dbc | 1322 | %files mysql |
61ccc70a | 1323 | %defattr(640,root,root,755) |
711f12a6 | 1324 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf |
18e77dbc | 1325 | %attr(755,root,root) %{_libdir}/%{name}/mysql.so |
1018cae1 | 1326 | %endif |
8bf13ddb | 1327 | |
5e965dc7 PG |
1328 | %if %{with netlink} |
1329 | %files netlink | |
1330 | %defattr(644,root,root,755) | |
1331 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf | |
1332 | %attr(755,root,root) %{_libdir}/%{name}/netlink.so | |
1333 | %endif | |
1334 | ||
1335 | %files network | |
1336 | %defattr(644,root,root,755) | |
1337 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf | |
1338 | %attr(755,root,root) %{_libdir}/%{name}/network.so | |
1339 | ||
1340 | %files nfs | |
1341 | %defattr(644,root,root,755) | |
1342 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf | |
1343 | %attr(755,root,root) %{_libdir}/%{name}/nfs.so | |
1344 | ||
1018cae1 | 1345 | %if %{with curl} |
8bf13ddb | 1346 | %files nginx |
61ccc70a | 1347 | %defattr(640,root,root,755) |
711f12a6 | 1348 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf |
8bf13ddb | 1349 | %attr(755,root,root) %{_libdir}/%{name}/nginx.so |
1018cae1 | 1350 | %endif |
8bf13ddb | 1351 | |
1018cae1 | 1352 | %if %{with notify} |
7be39ce7 | 1353 | %files notify_desktop |
1354 | %defattr(644,root,root,755) | |
711f12a6 | 1355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf |
7be39ce7 | 1356 | %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so |
1018cae1 | 1357 | %endif |
7be39ce7 | 1358 | |
1018cae1 | 1359 | %if %{with libesmtp} |
b4b27e4a | 1360 | %files notify_email |
61ccc70a | 1361 | %defattr(640,root,root,755) |
711f12a6 | 1362 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf |
b4b27e4a | 1363 | %attr(755,root,root) %{_libdir}/%{name}/notify_email.so |
1018cae1 | 1364 | %endif |
b4b27e4a | 1365 | |
5e965dc7 PG |
1366 | %files ntpd |
1367 | %defattr(644,root,root,755) | |
1368 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf | |
1369 | %attr(755,root,root) %{_libdir}/%{name}/ntpd.so | |
1370 | ||
1018cae1 | 1371 | %if %{with ups} |
b4b27e4a PG |
1372 | %files nut |
1373 | %defattr(644,root,root,755) | |
711f12a6 | 1374 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf |
b4b27e4a | 1375 | %attr(755,root,root) %{_libdir}/%{name}/nut.so |
1018cae1 | 1376 | %endif |
b4b27e4a | 1377 | |
b8e7f76a PG |
1378 | %files openvpn |
1379 | %defattr(644,root,root,755) | |
1380 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/openvpn.conf | |
1381 | %attr(755,root,root) %{_libdir}/%{name}/openvpn.so | |
1382 | ||
1018cae1 | 1383 | %if %{with ping} |
907cfb56 PG |
1384 | %files ping |
1385 | %defattr(644,root,root,755) | |
711f12a6 | 1386 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf |
907cfb56 | 1387 | %attr(755,root,root) %{_libdir}/%{name}/ping.so |
1018cae1 | 1388 | %endif |
907cfb56 | 1389 | |
1018cae1 | 1390 | %if %{with psql} |
b4b27e4a | 1391 | %files postgresql |
61ccc70a | 1392 | %defattr(640,root,root,755) |
711f12a6 | 1393 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf |
b4b27e4a | 1394 | %attr(755,root,root) %{_libdir}/%{name}/postgresql.so |
8a56fd06 | 1395 | %{_datadir}/%{name}/postgresql_default.conf |
1018cae1 | 1396 | %endif |
b4b27e4a | 1397 | |
4b6e34c7 | 1398 | %files powerdns |
1399 | %defattr(644,root,root,755) | |
711f12a6 | 1400 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf |
4b6e34c7 | 1401 | %attr(755,root,root) %{_libdir}/%{name}/powerdns.so |
1402 | ||
5e965dc7 PG |
1403 | %files processes |
1404 | %defattr(644,root,root,755) | |
1405 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf | |
1406 | %attr(755,root,root) %{_libdir}/%{name}/processes.so | |
1407 | ||
d94da88b | 1408 | %files protocols |
1409 | %defattr(644,root,root,755) | |
1410 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/protocols.conf | |
1411 | %attr(755,root,root) %{_libdir}/%{name}/protocols.so | |
1412 | ||
1018cae1 | 1413 | %if %{with rrd} |
8bf13ddb PG |
1414 | %files rrdtool |
1415 | %defattr(644,root,root,755) | |
711f12a6 | 1416 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf |
8bf13ddb | 1417 | %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so |
1018cae1 | 1418 | %endif |
8bf13ddb | 1419 | |
1018cae1 | 1420 | %if %{with sensors} |
8bf13ddb PG |
1421 | %files sensors |
1422 | %defattr(644,root,root,755) | |
711f12a6 | 1423 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf |
8bf13ddb | 1424 | %attr(755,root,root) %{_libdir}/%{name}/sensors.so |
1018cae1 | 1425 | %endif |
8bf13ddb | 1426 | |
5e965dc7 PG |
1427 | %files serial |
1428 | %defattr(644,root,root,755) | |
1429 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf | |
1430 | %attr(755,root,root) %{_libdir}/%{name}/serial.so | |
1431 | ||
1018cae1 | 1432 | %if %{with snmp} |
8bf13ddb PG |
1433 | %files snmp |
1434 | %defattr(644,root,root,755) | |
711f12a6 | 1435 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf |
8bf13ddb | 1436 | %attr(755,root,root) %{_libdir}/%{name}/snmp.so |
5e965dc7 | 1437 | %{_mandir}/man5/collectd-snmp.5* |
1018cae1 | 1438 | %endif |
5e965dc7 PG |
1439 | |
1440 | %files swap | |
1441 | %defattr(644,root,root,755) | |
1442 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf | |
1443 | %attr(755,root,root) %{_libdir}/%{name}/swap.so | |
1444 | ||
1445 | %files syslog | |
1446 | %defattr(644,root,root,755) | |
1447 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf | |
1448 | %attr(755,root,root) %{_libdir}/%{name}/syslog.so | |
1449 | ||
d94da88b | 1450 | %files table |
1451 | %defattr(644,root,root,755) | |
1452 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/table.conf | |
1453 | %attr(755,root,root) %{_libdir}/%{name}/table.so | |
1454 | ||
5e965dc7 PG |
1455 | %files tail |
1456 | %defattr(644,root,root,755) | |
1457 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf | |
1458 | %attr(755,root,root) %{_libdir}/%{name}/tail.so | |
1459 | ||
b8e7f76a PG |
1460 | %files target_notification |
1461 | %defattr(644,root,root,755) | |
1462 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_notification.conf | |
1463 | %attr(755,root,root) %{_libdir}/%{name}/target_notification.so | |
1464 | ||
1465 | %files target_replace | |
1466 | %defattr(644,root,root,755) | |
1467 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_replace.conf | |
1468 | %attr(755,root,root) %{_libdir}/%{name}/target_replace.so | |
1469 | ||
1470 | %files target_set | |
1471 | %defattr(644,root,root,755) | |
1472 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_set.conf | |
1473 | %attr(755,root,root) %{_libdir}/%{name}/target_set.so | |
1474 | ||
5e965dc7 PG |
1475 | %files tcpconns |
1476 | %defattr(644,root,root,755) | |
1477 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf | |
1478 | %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so | |
1479 | ||
1480 | %files teamspeak2 | |
1481 | %defattr(644,root,root,755) | |
1482 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf | |
1483 | %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so | |
1484 | ||
d94da88b | 1485 | %files ted |
1486 | %defattr(644,root,root,755) | |
1487 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ted.conf | |
1488 | %attr(755,root,root) %{_libdir}/%{name}/ted.so | |
1489 | ||
5e965dc7 PG |
1490 | %files thermal |
1491 | %defattr(644,root,root,755) | |
1492 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf | |
1493 | %attr(755,root,root) %{_libdir}/%{name}/thermal.so | |
1494 | ||
1495 | %files unixsock | |
1496 | %defattr(644,root,root,755) | |
1497 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf | |
1498 | %attr(755,root,root) %{_libdir}/%{name}/unixsock.so | |
1499 | %{_mandir}/man5/collectd-unixsock.5* | |
1500 | ||
d94da88b | 1501 | %files uptime |
1502 | %defattr(644,root,root,755) | |
1503 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uptime.conf | |
1504 | %attr(755,root,root) %{_libdir}/%{name}/uptime.so | |
1505 | ||
5e965dc7 PG |
1506 | %files users |
1507 | %defattr(644,root,root,755) | |
1508 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf | |
1509 | %attr(755,root,root) %{_libdir}/%{name}/users.so | |
8bf13ddb PG |
1510 | |
1511 | %files uuid | |
1512 | %defattr(644,root,root,755) | |
711f12a6 | 1513 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf |
8bf13ddb PG |
1514 | %attr(755,root,root) %{_libdir}/%{name}/uuid.so |
1515 | ||
5e965dc7 PG |
1516 | %files vmem |
1517 | %defattr(644,root,root,755) | |
1518 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf | |
1519 | %attr(755,root,root) %{_libdir}/%{name}/vmem.so | |
1520 | ||
1521 | %files vserver | |
1522 | %defattr(644,root,root,755) | |
1523 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf | |
1524 | %attr(755,root,root) %{_libdir}/%{name}/vserver.so | |
1525 | ||
1526 | %files wireless | |
1527 | %defattr(644,root,root,755) | |
1528 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf | |
1529 | %attr(755,root,root) %{_libdir}/%{name}/wireless.so | |
1530 | ||
1018cae1 | 1531 | %if %{with xmms} |
8bf13ddb PG |
1532 | %files xmms |
1533 | %defattr(644,root,root,755) | |
711f12a6 | 1534 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf |
8bf13ddb | 1535 | %attr(755,root,root) %{_libdir}/%{name}/xmms.so |
1018cae1 | 1536 | %endif |