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