Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
collectd
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 10
[-]
[+]
Added
collectd.spec
@@ -0,0 +1,296 @@ +# norootforbuild + +Name: collectd +Version: 4.2.2 +Release: 0 +Summary: Statistics Collection Daemon for filling RRD Files +Source: http://verplant.org/collectd/files/collectd-%{version}.tar.bz2 +Source1: collectd.suse.init +Source2: collectd.apache2.conf +Patch4: collectd-lib64.patch +Patch5: collectd-fix-ignore-return-value.patch +Patch6: collectd-fix-snprintf-overflow.patch +Patch7: collectd-fix-config.patch +Patch9: collectd-version.patch +Patch10: collectd-perl-vendor.patch +URL: http://verplant.org/collectd/ +Group: System/Monitoring +License: GNU General Public License (GPL) +BuildRoot: %{_tmppath}/build-%{name}-%{version} +Requires: sensors rrdtool +BuildRequires: sensors rrdtool libpng-devel zlib-devel perl +BuildRequires: libstatgrab-devel gettext gettext-devel intltool +BuildRequires: make gcc autoconf automake libtool +BuildRequires: freetype2-devel libart_lgpl-devel +%if %suse_version >= 930 +BuildRequires: mysql-shared mysql-devel >= 4.1.0 +%endif +%if %suse_version >= 1030 +BuildRequires: rrdtool-devel +BuildRequires: libcurl-devel +%else +BuildRequires: curl-devel +%endif +# in case we'd like to split it later: +Provides: collectd-perl = %{version}-%{release} +PreReq: %fillup_prereq +PreReq: %insserv_prereq +# play nice with collectd-beta: +Obsoletes: collectd-beta < %{version} +Provides: collectd-beta = %{version}-%{release} + +%description +collectd is a small daemon written in C for performance. It reads various +system statistics and updates RRD files, creating them if neccessary. +Since the daemon doesn't need to startup every time it wants to update the +files it's very fast and easy on the system. Also, the statistics are very +fine grained since the files are updated every 10 seconds. + +%package web +Summary: Web Frontend for watching the %{name} Statistics +Group: System/Monitoring +Requires: perl apache2 rrdtool + +%description web +Web frontend CGI for watching %{name} statistic from a browser. + +Please look at /etc/apache2/conf.d/%{name}.conf on how to enable. + +%debug_package +%prep +%setup -q -n "collectd-%{version}" +%if "%{_lib}"=="lib64" +%patch4 +%endif +%patch5 +%patch6 +%patch7 +%patch9 +%patch10 +%__sed -i 's|@@VERSION@@|%{version}|g' configure.in + +%build +autoreconf -fiv + +%configure \ + --with-libstatgrab \ + --with-rrdtool \ + --disable-nut \ +%if %suse_version < 930 + --disable-mysql \ +%endif +%ifos linux + --enable-serial +%else + --disable-serial +%endif + +%__make %{?jobs:-j%{jobs}} + +%install +%makeinstall +%__chmod 0755 "%{buildroot}%{_libdir}/collectd"/*.so + +%__install -d -m 0755 "%{buildroot}%{_localstatedir}/lib/collectd" + +%__install -D -m 0755 "%{SOURCE1}" "%{buildroot}/etc/init.d/collectd" +%__install -d -m 0755 "%{buildroot}/usr/sbin" +%__ln_s "../../etc/init.d/collectd" "%{buildroot}/usr/sbin/rccollectd" + +%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}/etc/apache2/conf.d/%{name}.conf" +%__install -D -m 0755 contrib/collection.cgi "%{buildroot}/srv/www/collectd/collection.cgi" +# remove it from contrib, to avoid having it end up in the main package as well: +%__rm contrib/collection.cgi + +%perl_process_packlist + +%preun +%stop_on_removal collectd + +%postun +%restart_on_update collectd +%insserv_cleanup + +%post +%{fillup_only collectd} + +%clean +%__rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%doc AUTHORS ChangeLog COPYING NEWS README +%doc contrib +%config(noreplace) %{_sysconfdir}/collectd.conf +%{_bindir}/collectd-nagios +%{_sbindir}/collectd +%dir %{_libdir}/collectd +%{_libdir}/collectd/types.db +%{_libdir}/collectd/*.so +%{_libdir}/collectd/*.la +%{perl_vendorlib}/Collectd.pm +%dir %{perl_vendorlib}/Collectd +%{perl_vendorlib}/Collectd/* +%{perl_vendorarch}/auto/Collectd +%doc %{_mandir}/man1/collectd.1* +%doc %{_mandir}/man1/collectd-nagios.1* +%doc %{_mandir}/man5/collectd.conf.5* +%doc %{_mandir}/man5/collectd-email.5* +%doc %{_mandir}/man5/collectd-exec.5* +%doc %{_mandir}/man5/collectd-snmp.5* +%doc %{_mandir}/man5/collectd-perl.5* +%doc %{_mandir}/man5/collectd-unixsock.5* +%doc %{perl_man3dir}/Collectd::Unixsock.%{perl_man3ext}* +%dir %{_localstatedir}/lib/collectd +/etc/init.d/collectd +/usr/sbin/rccollectd +/var/adm/perl-modules/%{name} + +%files web +%defattr(-,root,root) +%config(noreplace) /etc/apache2/conf.d/%{name}.conf +/srv/www/collectd + +%changelog +* Tue Dec 18 2007 Pascal Bleser <guru@unixtech.be> 4.2.2 +- new upstream version + +* Sat Nov 10 2007 Pascal Bleser <guru@unixtech.be> 4.2.1 +- new upstream version +- promoted beta to stable + +* Thu Oct 25 2007 Pascal Bleser <guru@unixtech.be> 4.1.3 +- new upstream version + +* Mon Oct 1 2007 Pascal Bleser <guru@unixtech.be> 4.1.2 +- new upstream version + +* Thu Sep 13 2007 Pascal Bleser <guru@unixtech.be> 4.1.1 +- new upstream version +- forked off -beta + +* Wed Sep 12 2007 Pascal Bleser <guru@unixtech.be> 4.0.8 +- new upstream version +- moved to openSUSE Build Service + +* Thu Aug 30 2007 Pascal Bleser <guru@unixtech.be> 4.0.7-1 +- added --disable-nut, made the build fail +- new upstream version + +* Tue Aug 14 2007 Pascal Bleser <guru@unixtech.be> 4.0.6-2 +- fixed commented defaults in configuration file +- fixed init script +- dropped sysconfig +- fixed access rights on init script, thanks to Detlef for reporting + +* Sat Aug 4 2007 Pascal Bleser <guru@unixtech.be> 4.0.6-1 +- new upstream version + +* Mon Jun 25 2007 Pascal Bleser <guru@unixtech.be> 4.0.4-1 +- new upstream version + +* Thu Jun 21 2007 Pascal Bleser <guru@unixtech.be> 4.0.3-1 +- new upstream version + +* Sun Jun 17 2007 Pascal Bleser <guru@unixtech.be> 4.0.2-1 +- new upstream version + +* Thu Jun 7 2007 Pascal Bleser <guru@unixtech.be> 4.0.1-1 +- new upstream version