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