- start update to 4.2.1
[packages/collectd.git] / collectd.spec
CommitLineData
373d486f 1# TODO:
373d486f 2# - lm_sensors subpackage
e6f53b24 3# - perl (plugin and bindings) subpackage
373d486f 4# - hddtemp subpackage
762d0c28 5# - initscripts for local/client/server mode (subpackage ?)
373d486f
AF
6# - collection CGI script
7# - package contrib scripts as %doc
e6f53b24
AF
8# - build nut, iptables and other plugins
9# - fix building perl plugin
7df111b4 10Summary: Collects system information in RRD files
322f1351 11Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
373d486f 12Name: collectd
e6f53b24 13Version: 4.2.1
92177587 14Release: 0.1
373d486f 15License: GPL v2
81857fc6 16Group: Daemons
f6984413 17Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
e6f53b24 18# Source0-md5: 8f708005ce592f53566385118f6eef76
f6984413 19Source1: %{name}.conf
18e77dbc 20#Patch0: %{name}-include.patch
f6984413 21URL: http://collectd.org/
373d486f
AF
22BuildRequires: autoconf
23BuildRequires: automake
762d0c28 24BuildRequires: curl-devel
7df111b4 25BuildRequires: libstatgrab-devel >= 0.12
762d0c28 26BuildRequires: libpcap-devel
373d486f 27BuildRequires: libtool
762d0c28 28BuildRequires: mysql-devel
18e77dbc 29BuildRequires: perl-devel
7df111b4 30BuildRequires: rpmbuild(macros) >= 1.228
762d0c28 31BuildRequires: rrdtool-devel
7df111b4 32Requires(post,preun): /sbin/chkconfig
373d486f
AF
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
7df111b4
JB
36collectd is a small daemon which collects system information every 10
37seconds and writes the results in an RRD-file.
38
39In contrast to most similar software, collectd is not a script but
40written in plain C for performance and portability. As a daemon it
41stays in memory, so there is no need to start up a heavy interpreter
42every time new values should be logged. This allows collectd to have a
4310 second resolution while being nice to the system.
44
19cbcad3
JR
45%description -l pl.UTF-8
46collectd to mały demon zbierający co 10 sekund informacje o systemie i
47zapisujący wyniki do pliku RRD.
373d486f 48
19cbcad3
JR
49W odróżnieniu od innych podobnych programów collectd nie jest
50skryptem, lecz jest napisany w czystym C z myślą o wydajności i
51przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
52urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
53zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
54sekund i nie obciążać zbytnio systemu.
373d486f 55
18e77dbc 56%package apache
57Summary: apache-plugin for collectd.
58Summary(pl_PL.UTF-8): moduł apache dla collectd.
59Group: Daemons
60Requires: %{name} = %{epoch}:%{version}-%{release}
61
62%description apache
63This plugin collectd data provided by Apache's `mod_status'.
64
65%description apache -l pl.UTF-8
66Plugin collectd zbierający informacje udostępniane przez moduł 'mod_status' Apacha.
67
68%package mysql
69Summary: mysql-plugin for collectd.
70Summary(pl_PL.UTF-8): moduł mysql-plugin do collectd.
71Group: Daemons
72Requires: %{name} = %{epoch}:%{version}-%{release}
73
74%description mysql
75MySQL querying plugin. This plugins provides data of issued commands,
76called handlers and database traffic.
77
78%description mysql -l pl.UTF-8
79Moduł odpytujący MySQL. Wtyczka udostępnia dane z mysqla.
80
373d486f
AF
81%prep
82%setup -q
18e77dbc 83#%patch -p1
373d486f
AF
84
85%build
e6f53b24
AF
86#if [ -f version-gen.sh ]; then
87# echo zaktualizuj speca baranie
88#else
89# echo "head -1 ChangeLog |cut -f 3 -d ' ' |tr -d '\n' " > version-gen.sh
90# chmod a+rx version-gen.sh
91#fi
373d486f
AF
92%{__libtoolize}
93%{__aclocal}
94%{__autoconf}
95%{__autoheader}
96%{__automake}
97%configure \
98 --with-libstatgrab=/usr \
99 --with-lm-sensors=/usr \
e6f53b24 100 --with-libmysql=/usr
373d486f
AF
101%{__make}
102
103%install
104rm -rf $RPM_BUILD_ROOT
105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
81857fc6 108
f6984413
AF
109install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
110
111rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
373d486f
AF
112
113%clean
114rm -rf $RPM_BUILD_ROOT
115
81857fc6 116%post
373d486f
AF
117/sbin/chkconfig --add %{name}
118%service %{name} restart
119
81857fc6 120%preun
373d486f
AF
121if [ "$1" = "0" ]; then
122 %service -q %{name} stop
123 /sbin/chkconfig --del %{name}
124fi
125
126%files
127%defattr(644,root,root,755)
128%doc AUTHORS ChangeLog README TODO
129
130%attr(755,root,root) %{_sbindir}/collectd
18e77dbc 131%attr(755,root,root) %{_bindir}/collectd-nagios
373d486f 132%dir %{_libdir}/%{name}
c1bbd93e 133%attr(755,root,root) %{_libdir}/%{name}/apcups.so
18e77dbc 134#%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
373d486f 135%attr(755,root,root) %{_libdir}/%{name}/battery.so
373d486f 136%attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
c1bbd93e 137%attr(755,root,root) %{_libdir}/%{name}/cpu.so
18e77dbc 138%attr(755,root,root) %{_libdir}/%{name}/csv.so
373d486f
AF
139%attr(755,root,root) %{_libdir}/%{name}/df.so
140%attr(755,root,root) %{_libdir}/%{name}/disk.so
762d0c28
AF
141%attr(755,root,root) %{_libdir}/%{name}/dns.so
142%attr(755,root,root) %{_libdir}/%{name}/email.so
18e77dbc 143%attr(755,root,root) %{_libdir}/%{name}/entropy.so
144%attr(755,root,root) %{_libdir}/%{name}/exec.so
373d486f 145%attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
18e77dbc 146%attr(755,root,root) %{_libdir}/%{name}/interface.so
147%attr(755,root,root) %{_libdir}/%{name}/irq.so
373d486f 148%attr(755,root,root) %{_libdir}/%{name}/load.so
18e77dbc 149%attr(755,root,root) %{_libdir}/%{name}/logfile.so
762d0c28 150%attr(755,root,root) %{_libdir}/%{name}/mbmon.so
e6f53b24 151%attr(755,root,root) %{_libdir}/%{name}/memcached.so
373d486f 152%attr(755,root,root) %{_libdir}/%{name}/memory.so
762d0c28 153%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
18e77dbc 154%attr(755,root,root) %{_libdir}/%{name}/network.so
373d486f 155%attr(755,root,root) %{_libdir}/%{name}/nfs.so
e6f53b24 156%attr(755,root,root) %{_libdir}/%{name}/nginx.so
c1bbd93e 157%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
e6f53b24 158#%attr(755,root,root) %{_libdir}/%{name}/perl.so
373d486f
AF
159%attr(755,root,root) %{_libdir}/%{name}/ping.so
160%attr(755,root,root) %{_libdir}/%{name}/processes.so
18e77dbc 161%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
162#%attr(755,root,root) %{_libdir}/%{name}/sensors.so
e6f53b24 163%attr(755,root,root) %{_libdir}/%{name}/sensors.so
373d486f
AF
164%attr(755,root,root) %{_libdir}/%{name}/serial.so
165%attr(755,root,root) %{_libdir}/%{name}/swap.so
e6f53b24 166%attr(755,root,root) %{_libdir}/%{name}/syslog.so
18e77dbc 167#%attr(755,root,root) %{_libdir}/%{name}/tape.so
e6f53b24 168%attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
18e77dbc 169#%attr(755,root,root) %{_libdir}/%{name}/traffic.so
18e77dbc 170%attr(755,root,root) %{_libdir}/%{name}/unixsock.so
e6f53b24 171%attr(755,root,root) %{_libdir}/%{name}/users.so
c1bbd93e 172%attr(755,root,root) %{_libdir}/%{name}/vserver.so
f6984413 173%attr(755,root,root) %{_libdir}/%{name}/wireless.so
e6f53b24
AF
174%{_libdir}/%{name}/types.db
175
373d486f
AF
176
177%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
178
179#%attr(754,root,root) /etc/rc.d/init.d/%{name}
180#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
181
182%{_mandir}/man1/collectd.1*
18e77dbc 183%{_mandir}/man1/collectd-nagios.1*
373d486f 184%{_mandir}/man5/collectd.conf.5*
18e77dbc 185%{_mandir}/man5/collectd-email.5*
186%{_mandir}/man5/collectd-exec.5*
187%{_mandir}/man5/collectd-perl.5*
188%{_mandir}/man5/collectd-snmp.5*
189%{_mandir}/man5/collectd-unixsock.5*
190
191%files apache
192%defattr(644,root,root,755)
193%attr(755,root,root) %{_libdir}/%{name}/apache.so
194
195%files mysql
196%defattr(644,root,root,755)
197%attr(755,root,root) %{_libdir}/%{name}/mysql.so
This page took 0.063349 seconds and 4 git commands to generate.