]> git.pld-linux.org Git - packages/collectd.git/blame - collectd.spec
- put plugins which are linked with external libs into separate packages
[packages/collectd.git] / collectd.spec
CommitLineData
373d486f 1# TODO:
373d486f 2# - lm_sensors subpackage
762d0c28 3# - initscripts for local/client/server mode (subpackage ?)
373d486f
AF
4# - collection CGI script
5# - package contrib scripts as %doc
8bf13ddb
PG
6# - put every plugin into subpackages
7# - Current plugins status:
8# apache . . . . . . yes
9# apcups . . . . . . yes
10# apple_sensors . . . no
11# ascent . . . . . . yes
12# battery . . . . . . yes
13# cpu . . . . . . . . yes
14# cpufreq . . . . . . yes
15# csv . . . . . . . . yes
16# df . . . . . . . . yes
17# disk . . . . . . . yes
18# dns . . . . . . . . yes
19# email . . . . . . . yes
20# entropy . . . . . . yes
21# exec . . . . . . . yes
22# hddtemp . . . . . . yes
23# interface . . . . . yes
24# iptables . . . . . yes
25# ipmi . . . . . . . no
26# ipvs . . . . . . . no (ip_vs.h not found)
27# irq . . . . . . . . yes
28# libvirt . . . . . . no
29# load . . . . . . . yes
30# logfile . . . . . . yes
31# mbmon . . . . . . . yes
32# memcached . . . . . yes
33# memory . . . . . . yes
34# multimeter . . . . yes
35# mysql . . . . . . . yes
36# netlink . . . . . . yes
37# network . . . . . . yes
38# nfs . . . . . . . . yes
39# nginx . . . . . . . yes
40# ntpd . . . . . . . yes
41# nut . . . . . . . . no
42# perl . . . . . . . no (needs libperl)
43# ping . . . . . . . yes
44# powerdns . . . . . yes
45# processes . . . . . yes
46# rrdtool . . . . . . yes
47# sensors . . . . . . yes
48# serial . . . . . . yes
49# snmp . . . . . . . yes
50# swap . . . . . . . yes
51# syslog . . . . . . yes
52# tail . . . . . . . yes
53# tape . . . . . . . no
54# tcpconns . . . . . yes
55# teamspeak2 . . . . yes
56# unixsock . . . . . yes
57# users . . . . . . . yes
58# uuid . . . . . . . yes
59# vmem . . . . . . . yes
60# vserver . . . . . . yes
61# wireless . . . . . yes
62# xmms . . . . . . . yes
63
7df111b4 64Summary: Collects system information in RRD files
322f1351 65Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 66Name: collectd
e105712e 67Version: 4.4.0
8bf13ddb 68Release: 0.2
373d486f 69License: GPL v2
81857fc6 70Group: Daemons
f6984413 71Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
e105712e 72# Source0-md5: a677ddcad97fdb3cdd09efac4842b11d
f6984413 73Source1: %{name}.conf
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
8bf13ddb
PG
81# External package needed (http://verplant.org/liboping/)
82#BuildRequires: liboping-devel
762d0c28 83BuildRequires: libpcap-devel
8bf13ddb 84BuildRequires: libstatgrab-devel >= 0.12
373d486f 85BuildRequires: libtool
762d0c28 86BuildRequires: mysql-devel
18e77dbc 87BuildRequires: perl-devel
7df111b4 88BuildRequires: rpmbuild(macros) >= 1.228
762d0c28 89BuildRequires: rrdtool-devel
8bf13ddb 90BuildRequires: xmms-devel
7df111b4 91Requires(post,preun): /sbin/chkconfig
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
JR
104%description -l pl.UTF-8
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
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
8bf13ddb
PG
137%package dns
138Summary: dns-plugin for collectd
139Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
140Group: Daemons
141Requires: %{name} = %{version}-%{release}
142
143%description dns
144dns plugin for collectd.
145
146%package hddtemp
147Summary: hddtemp-plugin for collectd
148Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
149Group: Daemons
150Requires: %{name} = %{version}-%{release}
151
152%description hddtemp
153hddtemp plugin for collectd.
154
18e77dbc 155%package mysql
273ffc81
JB
156Summary: mysql-plugin for collectd
157Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
18e77dbc 158Group: Daemons
273ffc81 159Requires: %{name} = %{version}-%{release}
18e77dbc 160
161%description mysql
273ffc81 162MySQL querying plugin. This plugins provides data of issued commands,
18e77dbc 163called handlers and database traffic.
164
165%description mysql -l pl.UTF-8
273ffc81
JB
166Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
167poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
18e77dbc 168
8bf13ddb
PG
169%package nginx
170Summary: nginx-plugin for collectd
171Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
172Group: Daemons
173Requires: %{name} = %{version}-%{release}
174
175%description nginx
176nginx plugin for collectd.
177
178%package rrdtool
179Summary: rrdtool-plugin for collectd
180Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
181Group: Daemons
182Requires: %{name} = %{version}-%{release}
183Requires: rrdtool
184
185%description rrdtool
186RRDTOOL plugin for collectd.
187
188%package sensors
189Summary: sensors-plugin for collectd
190Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
191Group: Daemons
192Requires: %{name} = %{version}-%{release}
193
194%description sensors
195This plugin collectd data provided by hardware sensors.
196
197%package snmp
198Summary: snmp-plugin for collectd
199Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
200Group: Daemons
201Requires: %{name} = %{version}-%{release}
202
203%description snmp
204snmp plugin for collectd.
205
206%package uuid
207Summary: uuid-plugin for collectd
208Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
209Group: Daemons
210Requires: %{name} = %{version}-%{release}
211
212%description uuid
213This plugin collectd UUID data.
214
215%package xmms
216Summary: xmms-plugin for collectd
217Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
218Group: Daemons
219Requires: %{name} = %{version}-%{release}
220Requires: xmms-libs
221
222%description xmms
223This plugin collectd data provided by XMMS.
224
373d486f
AF
225%prep
226%setup -q
227
228%build
229%{__libtoolize}
230%{__aclocal}
231%{__autoconf}
232%{__autoheader}
233%{__automake}
234%configure \
235 --with-libstatgrab=/usr \
236 --with-lm-sensors=/usr \
e6f53b24 237 --with-libmysql=/usr
e105712e 238%{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
373d486f
AF
239
240%install
241rm -rf $RPM_BUILD_ROOT
242
243%{__make} install \
244 DESTDIR=$RPM_BUILD_ROOT
81857fc6 245
e105712e 246install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}}
247#install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
248touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
249install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
f6984413
AF
250
251rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
373d486f
AF
252
253%clean
254rm -rf $RPM_BUILD_ROOT
255
81857fc6 256%post
373d486f
AF
257/sbin/chkconfig --add %{name}
258%service %{name} restart
259
81857fc6 260%preun
373d486f
AF
261if [ "$1" = "0" ]; then
262 %service -q %{name} stop
263 /sbin/chkconfig --del %{name}
264fi
265
266%files
267%defattr(644,root,root,755)
e105712e 268%doc AUTHORS ChangeLog README TODO contrib
373d486f
AF
269
270%attr(755,root,root) %{_sbindir}/collectd
e105712e 271%attr(755,root,root) %{_sbindir}/collectdmon
18e77dbc 272%attr(755,root,root) %{_bindir}/collectd-nagios
373d486f 273%dir %{_libdir}/%{name}
c1bbd93e 274%attr(755,root,root) %{_libdir}/%{name}/apcups.so
18e77dbc 275#%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
373d486f 276%attr(755,root,root) %{_libdir}/%{name}/battery.so
373d486f 277%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
c1bbd93e 278%attr(755,root,root) %{_libdir}/%{name}/cpu.so
18e77dbc 279%attr(755,root,root) %{_libdir}/%{name}/csv.so
373d486f
AF
280%attr(755,root,root) %{_libdir}/%{name}/df.so
281%attr(755,root,root) %{_libdir}/%{name}/disk.so
762d0c28 282%attr(755,root,root) %{_libdir}/%{name}/email.so
18e77dbc 283%attr(755,root,root) %{_libdir}/%{name}/entropy.so
284%attr(755,root,root) %{_libdir}/%{name}/exec.so
18e77dbc 285%attr(755,root,root) %{_libdir}/%{name}/interface.so
e105712e 286%attr(755,root,root) %{_libdir}/%{name}/iptables.so
18e77dbc 287%attr(755,root,root) %{_libdir}/%{name}/irq.so
373d486f 288%attr(755,root,root) %{_libdir}/%{name}/load.so
18e77dbc 289%attr(755,root,root) %{_libdir}/%{name}/logfile.so
762d0c28 290%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
e6f53b24 291%attr(755,root,root) %{_libdir}/%{name}/memcached.so
373d486f 292%attr(755,root,root) %{_libdir}/%{name}/memory.so
762d0c28 293%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
e105712e 294%attr(755,root,root) %{_libdir}/%{name}/netlink.so
18e77dbc 295%attr(755,root,root) %{_libdir}/%{name}/network.so
373d486f 296%attr(755,root,root) %{_libdir}/%{name}/nfs.so
c1bbd93e 297%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
e6f53b24 298#%attr(755,root,root) %{_libdir}/%{name}/perl.so
373d486f 299%attr(755,root,root) %{_libdir}/%{name}/ping.so
e105712e 300%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
373d486f 301%attr(755,root,root) %{_libdir}/%{name}/processes.so
373d486f
AF
302%attr(755,root,root) %{_libdir}/%{name}/serial.so
303%attr(755,root,root) %{_libdir}/%{name}/swap.so
e6f53b24 304%attr(755,root,root) %{_libdir}/%{name}/syslog.so
e105712e 305%attr(755,root,root) %{_libdir}/%{name}/tail.so
18e77dbc 306#%attr(755,root,root) %{_libdir}/%{name}/tape.so
e105712e 307%attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
e6f53b24 308%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
18e77dbc 309#%attr(755,root,root) %{_libdir}/%{name}/traffic.so
18e77dbc 310%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
e6f53b24 311%attr(755,root,root) %{_libdir}/%{name}/users.so
e105712e 312%attr(755,root,root) %{_libdir}/%{name}/vmem.so
c1bbd93e 313%attr(755,root,root) %{_libdir}/%{name}/vserver.so
f6984413 314%attr(755,root,root) %{_libdir}/%{name}/wireless.so
e6f53b24 315%{_libdir}/%{name}/types.db
373d486f
AF
316
317%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
318
319#%attr(754,root,root) /etc/rc.d/init.d/%{name}
320#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
321
322%{_mandir}/man1/collectd.1*
18e77dbc 323%{_mandir}/man1/collectd-nagios.1*
373d486f 324%{_mandir}/man5/collectd.conf.5*
18e77dbc 325%{_mandir}/man5/collectd-email.5*
326%{_mandir}/man5/collectd-exec.5*
327%{_mandir}/man5/collectd-perl.5*
328%{_mandir}/man5/collectd-snmp.5*
329%{_mandir}/man5/collectd-unixsock.5*
e105712e 330%{_mandir}/man1/collectdmon.1*
331%{_mandir}/man5/types.db.5*
332%{_var}/log/collectd.log
333%dir %{_var}/lib/%{name}
334
8bf13ddb
PG
335########## PLUGINS:
336%files ascent
337%defattr(644,root,root,755)
338%attr(755,root,root) %{_libdir}/%{name}/ascent.so
18e77dbc 339
340%files apache
341%defattr(644,root,root,755)
342%attr(755,root,root) %{_libdir}/%{name}/apache.so
343
8bf13ddb
PG
344%files dns
345%defattr(644,root,root,755)
346%attr(755,root,root) %{_libdir}/%{name}/dns.so
347
348%files hddtemp
349%defattr(644,root,root,755)
350%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
351
18e77dbc 352%files mysql
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/%{name}/mysql.so
8bf13ddb
PG
355
356%files nginx
357%defattr(644,root,root,755)
358%attr(755,root,root) %{_libdir}/%{name}/nginx.so
359
360%files rrdtool
361%defattr(644,root,root,755)
362%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
363
364%files sensors
365%defattr(644,root,root,755)
366%attr(755,root,root) %{_libdir}/%{name}/sensors.so
367
368%files snmp
369%defattr(644,root,root,755)
370%attr(755,root,root) %{_libdir}/%{name}/snmp.so
371
372%files uuid
373%defattr(644,root,root,755)
374%attr(755,root,root) %{_libdir}/%{name}/uuid.so
375
376%files xmms
377%defattr(644,root,root,755)
378%attr(755,root,root) %{_libdir}/%{name}/xmms.so
This page took 0.099138 seconds and 4 git commands to generate.