]> git.pld-linux.org Git - packages/collectd.git/blame - collectd.spec
- newline
[packages/collectd.git] / collectd.spec
CommitLineData
373d486f 1# TODO:
373d486f 2# - lm_sensors subpackage
762d0c28 3# - initscripts for local/client/server mode (subpackage ?)
373d486f 4# - package contrib scripts as %doc
8bf13ddb
PG
5# - put every plugin into subpackages
6# - Current plugins status:
7# apache . . . . . . yes
8# apcups . . . . . . yes
9# apple_sensors . . . no
10# ascent . . . . . . yes
11# battery . . . . . . yes
12# cpu . . . . . . . . yes
13# cpufreq . . . . . . yes
14# csv . . . . . . . . yes
15# df . . . . . . . . yes
16# disk . . . . . . . yes
17# dns . . . . . . . . yes
18# email . . . . . . . yes
19# entropy . . . . . . yes
20# exec . . . . . . . yes
21# hddtemp . . . . . . yes
22# interface . . . . . yes
23# iptables . . . . . yes
24# ipmi . . . . . . . no
25# ipvs . . . . . . . no (ip_vs.h not found)
26# irq . . . . . . . . yes
27# libvirt . . . . . . no
28# load . . . . . . . yes
29# logfile . . . . . . yes
30# mbmon . . . . . . . yes
31# memcached . . . . . yes
32# memory . . . . . . yes
33# multimeter . . . . yes
34# mysql . . . . . . . yes
35# netlink . . . . . . yes
36# network . . . . . . yes
37# nfs . . . . . . . . yes
38# nginx . . . . . . . yes
39# ntpd . . . . . . . yes
40# nut . . . . . . . . no
41# perl . . . . . . . no (needs libperl)
42# ping . . . . . . . yes
43# powerdns . . . . . yes
44# processes . . . . . yes
45# rrdtool . . . . . . yes
46# sensors . . . . . . yes
47# serial . . . . . . yes
48# snmp . . . . . . . yes
49# swap . . . . . . . yes
50# syslog . . . . . . yes
51# tail . . . . . . . yes
52# tape . . . . . . . no
53# tcpconns . . . . . yes
54# teamspeak2 . . . . yes
55# unixsock . . . . . yes
56# users . . . . . . . yes
57# uuid . . . . . . . yes
58# vmem . . . . . . . yes
59# vserver . . . . . . yes
60# wireless . . . . . yes
61# xmms . . . . . . . yes
62
7df111b4 63Summary: Collects system information in RRD files
322f1351 64Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 65Name: collectd
e105712e 66Version: 4.4.0
907cfb56 67Release: 0.3
373d486f 68License: GPL v2
81857fc6 69Group: Daemons
f6984413 70Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
e105712e 71# Source0-md5: a677ddcad97fdb3cdd09efac4842b11d
f6984413 72Source1: %{name}.conf
ec8f9a12 73Source2: %{name}.init
f6984413 74URL: http://collectd.org/
e105712e 75BuildRequires: OpenIPMI-devel
373d486f
AF
76BuildRequires: autoconf
77BuildRequires: automake
762d0c28 78BuildRequires: curl-devel
8bf13ddb 79BuildRequires: iptables-devel
e105712e 80BuildRequires: libnetlink-devel
907cfb56 81BuildRequires: liboping-devel
762d0c28 82BuildRequires: libpcap-devel
8bf13ddb 83BuildRequires: libstatgrab-devel >= 0.12
373d486f 84BuildRequires: libtool
3a1b5393 85BuildRequires: lm_sensors-devel
762d0c28 86BuildRequires: mysql-devel
18e77dbc 87BuildRequires: perl-devel
c7024cdb 88BuildRequires: rpmbuild(macros) >= 1.268
762d0c28 89BuildRequires: rrdtool-devel
8bf13ddb 90BuildRequires: xmms-devel
7df111b4 91Requires(post,preun): /sbin/chkconfig
c7024cdb 92Requires: rc-scripts
373d486f
AF
93BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94
95%description
7df111b4
JB
96collectd is a small daemon which collects system information every 10
97seconds and writes the results in an RRD-file.
98
99In contrast to most similar software, collectd is not a script but
100written in plain C for performance and portability. As a daemon it
101stays in memory, so there is no need to start up a heavy interpreter
102every time new values should be logged. This allows collectd to have a
10310 second resolution while being nice to the system.
104
19cbcad3 105%description -l pl.UTF-8
c7024cdb
ER
106collectd to mały demon zbierający co 10 sekund informacje o systemie i
107zapisujący wyniki do pliku RRD.
373d486f 108
19cbcad3
JR
109W odróżnieniu od innych podobnych programów collectd nie jest
110skryptem, lecz jest napisany w czystym C z myślą o wydajności i
111przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
c7024cdb
ER
112urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
113zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
114sekund i nie obciążać zbytnio systemu.
373d486f 115
8bf13ddb
PG
116%package ascent
117Summary: ascent-plugin for collectd
118Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
119Group: Daemons
120Requires: %{name} = %{version}-%{release}
121
122%description ascent
123ascent plugin for collectd.
124
18e77dbc 125%package apache
273ffc81
JB
126Summary: apache-plugin for collectd
127Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
18e77dbc 128Group: Daemons
273ffc81 129Requires: %{name} = %{version}-%{release}
18e77dbc 130
131%description apache
132This plugin collectd data provided by Apache's `mod_status'.
133
134%description apache -l pl.UTF-8
273ffc81
JB
135Wtyczka collectd zbierająca informacje udostępniane przez moduł
136'mod_status' Apacha.
18e77dbc 137
5fafedfc 138%package collection
139Summary: Web script for collectiond
140Summary(pl_PL.UTF-8): Web script for collectiond
141Group: Applications/WWW
142Requires: %{name} = %{version}-%{release}
143
144%description collection
145Web script for collectiond
146
8bf13ddb
PG
147%package dns
148Summary: dns-plugin for collectd
149Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
150Group: Daemons
151Requires: %{name} = %{version}-%{release}
3a1b5393 152Requires: perl-rrdtool
ef79d9ea 153
8bf13ddb
PG
154%description dns
155dns plugin for collectd.
156
157%package hddtemp
158Summary: hddtemp-plugin for collectd
159Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
160Group: Daemons
161Requires: %{name} = %{version}-%{release}
162
163%description hddtemp
164hddtemp plugin for collectd.
165
18e77dbc 166%package mysql
273ffc81
JB
167Summary: mysql-plugin for collectd
168Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
18e77dbc 169Group: Daemons
273ffc81 170Requires: %{name} = %{version}-%{release}
18e77dbc 171
172%description mysql
273ffc81 173MySQL querying plugin. This plugins provides data of issued commands,
18e77dbc 174called handlers and database traffic.
175
176%description mysql -l pl.UTF-8
273ffc81
JB
177Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
178poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
18e77dbc 179
8bf13ddb
PG
180%package nginx
181Summary: nginx-plugin for collectd
182Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
183Group: Daemons
184Requires: %{name} = %{version}-%{release}
185
186%description nginx
187nginx plugin for collectd.
188
907cfb56
PG
189%package ping
190Summary: ping-plugin for collectd
191Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
192Group: Daemons
193Requires: %{name} = %{version}-%{release}
194
195%description ping
196ping plugin for collectd.
197
8bf13ddb
PG
198%package rrdtool
199Summary: rrdtool-plugin for collectd
200Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
201Group: Daemons
202Requires: %{name} = %{version}-%{release}
203Requires: rrdtool
204
205%description rrdtool
206RRDTOOL plugin for collectd.
207
208%package sensors
209Summary: sensors-plugin for collectd
210Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
211Group: Daemons
212Requires: %{name} = %{version}-%{release}
213
214%description sensors
215This plugin collectd data provided by hardware sensors.
216
217%package snmp
218Summary: snmp-plugin for collectd
219Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
220Group: Daemons
221Requires: %{name} = %{version}-%{release}
222
223%description snmp
224snmp plugin for collectd.
225
226%package uuid
227Summary: uuid-plugin for collectd
228Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
229Group: Daemons
230Requires: %{name} = %{version}-%{release}
231
232%description uuid
233This plugin collectd UUID data.
234
235%package xmms
236Summary: xmms-plugin for collectd
237Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
238Group: Daemons
239Requires: %{name} = %{version}-%{release}
240Requires: xmms-libs
241
242%description xmms
243This plugin collectd data provided by XMMS.
244
373d486f
AF
245%prep
246%setup -q
247
248%build
249%{__libtoolize}
250%{__aclocal}
251%{__autoconf}
252%{__autoheader}
253%{__automake}
254%configure \
255 --with-libstatgrab=/usr \
256 --with-lm-sensors=/usr \
5fafedfc 257 --with-libmysql=/usr
e105712e 258%{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
373d486f
AF
259
260%install
261rm -rf $RPM_BUILD_ROOT
262
263%{__make} install \
264 DESTDIR=$RPM_BUILD_ROOT
81857fc6 265
e105712e 266install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}}
5fafedfc 267install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
ff0d0ea0 268install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
e105712e 269#install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
270touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
271install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
5fafedfc 272install contrib/collection.conf $RPM_BUILD_ROOT%{_sysconfdir}
273install contrib/collection.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
f6984413 274rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
ff0d0ea0 275install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
373d486f
AF
276
277%clean
278rm -rf $RPM_BUILD_ROOT
279
81857fc6 280%post
373d486f
AF
281/sbin/chkconfig --add %{name}
282%service %{name} restart
283
81857fc6 284%preun
373d486f
AF
285if [ "$1" = "0" ]; then
286 %service -q %{name} stop
287 /sbin/chkconfig --del %{name}
288fi
289
290%files
291%defattr(644,root,root,755)
e105712e 292%doc AUTHORS ChangeLog README TODO contrib
373d486f
AF
293
294%attr(755,root,root) %{_sbindir}/collectd
e105712e 295%attr(755,root,root) %{_sbindir}/collectdmon
18e77dbc 296%attr(755,root,root) %{_bindir}/collectd-nagios
373d486f 297%dir %{_libdir}/%{name}
c1bbd93e 298%attr(755,root,root) %{_libdir}/%{name}/apcups.so
18e77dbc 299#%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
373d486f 300%attr(755,root,root) %{_libdir}/%{name}/battery.so
373d486f 301%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
c1bbd93e 302%attr(755,root,root) %{_libdir}/%{name}/cpu.so
18e77dbc 303%attr(755,root,root) %{_libdir}/%{name}/csv.so
373d486f
AF
304%attr(755,root,root) %{_libdir}/%{name}/df.so
305%attr(755,root,root) %{_libdir}/%{name}/disk.so
762d0c28 306%attr(755,root,root) %{_libdir}/%{name}/email.so
18e77dbc 307%attr(755,root,root) %{_libdir}/%{name}/entropy.so
308%attr(755,root,root) %{_libdir}/%{name}/exec.so
18e77dbc 309%attr(755,root,root) %{_libdir}/%{name}/interface.so
e105712e 310%attr(755,root,root) %{_libdir}/%{name}/iptables.so
18e77dbc 311%attr(755,root,root) %{_libdir}/%{name}/irq.so
373d486f 312%attr(755,root,root) %{_libdir}/%{name}/load.so
18e77dbc 313%attr(755,root,root) %{_libdir}/%{name}/logfile.so
762d0c28 314%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
e6f53b24 315%attr(755,root,root) %{_libdir}/%{name}/memcached.so
373d486f 316%attr(755,root,root) %{_libdir}/%{name}/memory.so
762d0c28 317%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
e105712e 318%attr(755,root,root) %{_libdir}/%{name}/netlink.so
18e77dbc 319%attr(755,root,root) %{_libdir}/%{name}/network.so
373d486f 320%attr(755,root,root) %{_libdir}/%{name}/nfs.so
c1bbd93e 321%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
e6f53b24 322#%attr(755,root,root) %{_libdir}/%{name}/perl.so
e105712e 323%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
373d486f 324%attr(755,root,root) %{_libdir}/%{name}/processes.so
373d486f
AF
325%attr(755,root,root) %{_libdir}/%{name}/serial.so
326%attr(755,root,root) %{_libdir}/%{name}/swap.so
e6f53b24 327%attr(755,root,root) %{_libdir}/%{name}/syslog.so
e105712e 328%attr(755,root,root) %{_libdir}/%{name}/tail.so
18e77dbc 329#%attr(755,root,root) %{_libdir}/%{name}/tape.so
e105712e 330%attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
e6f53b24 331%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
18e77dbc 332#%attr(755,root,root) %{_libdir}/%{name}/traffic.so
18e77dbc 333%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
e6f53b24 334%attr(755,root,root) %{_libdir}/%{name}/users.so
e105712e 335%attr(755,root,root) %{_libdir}/%{name}/vmem.so
c1bbd93e 336%attr(755,root,root) %{_libdir}/%{name}/vserver.so
f6984413 337%attr(755,root,root) %{_libdir}/%{name}/wireless.so
e6f53b24 338%{_libdir}/%{name}/types.db
373d486f
AF
339
340%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
341
ff0d0ea0 342%attr(754,root,root) /etc/rc.d/init.d/%{name}
373d486f
AF
343
344%{_mandir}/man1/collectd.1*
18e77dbc 345%{_mandir}/man1/collectd-nagios.1*
373d486f 346%{_mandir}/man5/collectd.conf.5*
18e77dbc 347%{_mandir}/man5/collectd-email.5*
348%{_mandir}/man5/collectd-exec.5*
349%{_mandir}/man5/collectd-perl.5*
350%{_mandir}/man5/collectd-snmp.5*
351%{_mandir}/man5/collectd-unixsock.5*
e105712e 352%{_mandir}/man1/collectdmon.1*
353%{_mandir}/man5/types.db.5*
354%{_var}/log/collectd.log
355%dir %{_var}/lib/%{name}
356
8bf13ddb
PG
357########## PLUGINS:
358%files ascent
359%defattr(644,root,root,755)
360%attr(755,root,root) %{_libdir}/%{name}/ascent.so
18e77dbc 361
362%files apache
363%defattr(644,root,root,755)
364%attr(755,root,root) %{_libdir}/%{name}/apache.so
365
5fafedfc 366%files collection
367%defattr(644,root,root,755)
368%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/collection.conf
369%attr(755,root,root) /home/services/httpd/cgi-bin/collection.cgi
370
8bf13ddb
PG
371%files dns
372%defattr(644,root,root,755)
373%attr(755,root,root) %{_libdir}/%{name}/dns.so
374
375%files hddtemp
376%defattr(644,root,root,755)
377%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
378
18e77dbc 379%files mysql
380%defattr(644,root,root,755)
381%attr(755,root,root) %{_libdir}/%{name}/mysql.so
8bf13ddb
PG
382
383%files nginx
384%defattr(644,root,root,755)
385%attr(755,root,root) %{_libdir}/%{name}/nginx.so
386
907cfb56
PG
387%files ping
388%defattr(644,root,root,755)
389%attr(755,root,root) %{_libdir}/%{name}/ping.so
390
8bf13ddb
PG
391%files rrdtool
392%defattr(644,root,root,755)
393%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
394
395%files sensors
396%defattr(644,root,root,755)
397%attr(755,root,root) %{_libdir}/%{name}/sensors.so
398
399%files snmp
400%defattr(644,root,root,755)
401%attr(755,root,root) %{_libdir}/%{name}/snmp.so
402
403%files uuid
404%defattr(644,root,root,755)
405%attr(755,root,root) %{_libdir}/%{name}/uuid.so
406
407%files xmms
408%defattr(644,root,root,755)
409%attr(755,root,root) %{_libdir}/%{name}/xmms.so
This page took 0.087649 seconds and 4 git commands to generate.