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