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