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