Changes of Revision 10
[-] | Added | collectd.spec |
x 1
2 +# norootforbuild 3 + 4 +Name: collectd 5 +Version: 4.2.2 6 +Release: 0 7 +Summary: Statistics Collection Daemon for filling RRD Files 8 +Source: http://verplant.org/collectd/files/collectd-%{version}.tar.bz2 9 +Source1: collectd.suse.init 10 +Source2: collectd.apache2.conf 11 +Patch4: collectd-lib64.patch 12 +Patch5: collectd-fix-ignore-return-value.patch 13 +Patch6: collectd-fix-snprintf-overflow.patch 14 +Patch7: collectd-fix-config.patch 15 +Patch9: collectd-version.patch 16 +Patch10: collectd-perl-vendor.patch 17 +URL: http://verplant.org/collectd/ 18 +Group: System/Monitoring 19 +License: GNU General Public License (GPL) 20 +BuildRoot: %{_tmppath}/build-%{name}-%{version} 21 +Requires: sensors rrdtool 22 +BuildRequires: sensors rrdtool libpng-devel zlib-devel perl 23 +BuildRequires: libstatgrab-devel gettext gettext-devel intltool 24 +BuildRequires: make gcc autoconf automake libtool 25 +BuildRequires: freetype2-devel libart_lgpl-devel 26 +%if %suse_version >= 930 27 +BuildRequires: mysql-shared mysql-devel >= 4.1.0 28 +%endif 29 +%if %suse_version >= 1030 30 +BuildRequires: rrdtool-devel 31 +BuildRequires: libcurl-devel 32 +%else 33 +BuildRequires: curl-devel 34 +%endif 35 +# in case we'd like to split it later: 36 +Provides: collectd-perl = %{version}-%{release} 37 +PreReq: %fillup_prereq 38 +PreReq: %insserv_prereq 39 +# play nice with collectd-beta: 40 +Obsoletes: collectd-beta < %{version} 41 +Provides: collectd-beta = %{version}-%{release} 42 + 43 +%description 44 +collectd is a small daemon written in C for performance. It reads various 45 +system statistics and updates RRD files, creating them if neccessary. 46 +Since the daemon doesn't need to startup every time it wants to update the 47 +files it's very fast and easy on the system. Also, the statistics are very 48 +fine grained since the files are updated every 10 seconds. 49 + 50 +%package web 51 +Summary: Web Frontend for watching the %{name} Statistics 52 +Group: System/Monitoring 53 +Requires: perl apache2 rrdtool 54 + 55 +%description web 56 +Web frontend CGI for watching %{name} statistic from a browser. 57 + 58 +Please look at /etc/apache2/conf.d/%{name}.conf on how to enable. 59 + 60 +%debug_package 61 +%prep 62 +%setup -q -n "collectd-%{version}" 63 +%if "%{_lib}"=="lib64" 64 +%patch4 65 +%endif 66 +%patch5 67 +%patch6 68 +%patch7 69 +%patch9 70 +%patch10 71 +%__sed -i 's|@@VERSION@@|%{version}|g' configure.in 72 + 73 +%build 74 +autoreconf -fiv 75 + 76 +%configure \ 77 + --with-libstatgrab \ 78 + --with-rrdtool \ 79 + --disable-nut \ 80 +%if %suse_version < 930 81 + --disable-mysql \ 82 +%endif 83 +%ifos linux 84 + --enable-serial 85 +%else 86 + --disable-serial 87 +%endif 88 + 89 +%__make %{?jobs:-j%{jobs}} 90 + 91 +%install 92 +%makeinstall 93 +%__chmod 0755 "%{buildroot}%{_libdir}/collectd"/*.so 94 + 95 +%__install -d -m 0755 "%{buildroot}%{_localstatedir}/lib/collectd" 96 + 97 +%__install -D -m 0755 "%{SOURCE1}" "%{buildroot}/etc/init.d/collectd" 98 +%__install -d -m 0755 "%{buildroot}/usr/sbin" 99 +%__ln_s "../../etc/init.d/collectd" "%{buildroot}/usr/sbin/rccollectd" 100 + 101 +%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}/etc/apache2/conf.d/%{name}.conf" 102 +%__install -D -m 0755 contrib/collection.cgi "%{buildroot}/srv/www/collectd/collection.cgi" 103 +# remove it from contrib, to avoid having it end up in the main package as well: 104 +%__rm contrib/collection.cgi 105 + 106 +%perl_process_packlist 107 + 108 +%preun 109 +%stop_on_removal collectd 110 + 111 +%postun 112 +%restart_on_update collectd 113 +%insserv_cleanup 114 + 115 +%post 116 +%{fillup_only collectd} 117 + 118 +%clean 119 +%__rm -rf "%{buildroot}" 120 + 121 +%files 122 +%defattr(-,root,root) 123 +%doc AUTHORS ChangeLog COPYING NEWS README 124 +%doc contrib 125 +%config(noreplace) %{_sysconfdir}/collectd.conf 126 +%{_bindir}/collectd-nagios 127 +%{_sbindir}/collectd 128 +%dir %{_libdir}/collectd 129 +%{_libdir}/collectd/types.db 130 +%{_libdir}/collectd/*.so 131 +%{_libdir}/collectd/*.la 132 +%{perl_vendorlib}/Collectd.pm 133 +%dir %{perl_vendorlib}/Collectd 134 +%{perl_vendorlib}/Collectd/* 135 +%{perl_vendorarch}/auto/Collectd 136 +%doc %{_mandir}/man1/collectd.1* 137 +%doc %{_mandir}/man1/collectd-nagios.1* 138 +%doc %{_mandir}/man5/collectd.conf.5* 139 +%doc %{_mandir}/man5/collectd-email.5* 140 +%doc %{_mandir}/man5/collectd-exec.5* 141 +%doc %{_mandir}/man5/collectd-snmp.5* 142 +%doc %{_mandir}/man5/collectd-perl.5* 143 +%doc %{_mandir}/man5/collectd-unixsock.5* 144 +%doc %{perl_man3dir}/Collectd::Unixsock.%{perl_man3ext}* 145 +%dir %{_localstatedir}/lib/collectd 146 +/etc/init.d/collectd 147 +/usr/sbin/rccollectd 148 +/var/adm/perl-modules/%{name} 149 + 150 +%files web 151 +%defattr(-,root,root) 152 +%config(noreplace) /etc/apache2/conf.d/%{name}.conf 153 +/srv/www/collectd 154 + 155 +%changelog 156 +* Tue Dec 18 2007 Pascal Bleser <guru@unixtech.be> 4.2.2 157 +- new upstream version 158 + 159 +* Sat Nov 10 2007 Pascal Bleser <guru@unixtech.be> 4.2.1 160 +- new upstream version 161 +- promoted beta to stable 162 + 163 +* Thu Oct 25 2007 Pascal Bleser <guru@unixtech.be> 4.1.3 164 +- new upstream version 165 + 166 +* Mon Oct 1 2007 Pascal Bleser <guru@unixtech.be> 4.1.2 167 +- new upstream version 168 + 169 +* Thu Sep 13 2007 Pascal Bleser <guru@unixtech.be> 4.1.1 170 +- new upstream version 171 +- forked off -beta 172 + 173 +* Wed Sep 12 2007 Pascal Bleser <guru@unixtech.be> 4.0.8 174 +- new upstream version 175 +- moved to openSUSE Build Service 176 + 177 +* Thu Aug 30 2007 Pascal Bleser <guru@unixtech.be> 4.0.7-1 178 +- added --disable-nut, made the build fail 179 +- new upstream version 180 + 181 +* Tue Aug 14 2007 Pascal Bleser <guru@unixtech.be> 4.0.6-2 182 +- fixed commented defaults in configuration file 183 +- fixed init script 184 +- dropped sysconfig 185 +- fixed access rights on init script, thanks to Detlef for reporting 186 + 187 +* Sat Aug 4 2007 Pascal Bleser <guru@unixtech.be> 4.0.6-1 188 +- new upstream version 189 + 190 +* Mon Jun 25 2007 Pascal Bleser <guru@unixtech.be> 4.0.4-1 191 +- new upstream version 192 + 193 +* Thu Jun 21 2007 Pascal Bleser <guru@unixtech.be> 4.0.3-1 194 +- new upstream version 195 + 196 +* Sun Jun 17 2007 Pascal Bleser <guru@unixtech.be> 4.0.2-1 197 +- new upstream version 198 + 199 +* Thu Jun 7 2007 Pascal Bleser <guru@unixtech.be> 4.0.1-1 200 +- new upstream version 201 |