%define name cacti-cactid %define version 0.8.6c %define release 3mdk Summary: A backend data gatherer for cacti Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Servers URL: http://www.cacti.net/ Source0: http://www.cacti.net/downloads/cactid/%{name}-%{version}.tar.bz2 Patch0: cacti-cactid-0.8.6c-no_logfile.diff.bz2 Requires: cacti = %{version} BuildRequires: MySQL-devel BuildRequires: net-snmp-devel BuildRequires: file BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description This code represents the future replacement for cmd.php. As you can see from the short changelog, development on this code has only just begun. It has been included in the main release for *testing* purposes only! Please stick to cmd.php for now. %prep %setup -q %patch0 -p0 # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' %build %configure2_5x %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_sysconfdir} install -d %{buildroot}%{_sbindir} install -m0644 cactid.conf %{buildroot}%{_sysconfdir}/ install -m0755 cactid %{buildroot}%{_sbindir}/ %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGELOG INSTALL README %config(noreplace) %{_sysconfdir}/cactid.conf %attr(0755,root,root) %{_sbindir}/cactid %changelog * Mon Feb 28 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.6c-3mdk - fix #13965 - strip away annoying ^M * Mon Jan 24 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.6c-2mdk - rebuilt against MySQL-4.1.x system libs * Mon Dec 20 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.6c-1mdk - 0.8.6c - fix url * Fri Oct 08 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.6b-1mdk - initial mandrake package