Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > caaa8b00717c42b512c3f62288473892 > files > 2

arrayprobe-2.0-2mdv2008.0.src.rpm

Summary:	A command line HP (Compaq) SmartArray status checker
Name:		arrayprobe
Version:	2.0
Release:	%mkrel 2
License:	GPL
Group:		System/Kernel and hardware
URL:		http://www.strocamp.net/opensource/
Source0:	http://www.strocamp.net/opensource/compaq/downloads/%{name}-%{version}.tar.bz2
Patch0:		arrayprobe_2.0-2.diff
BuildRequires:	kernel-source
BuildRequires:	libtool
BuildRequires:	autoconf2.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Arrayprobe is a linux commandline utility that reports the status of a HP
(compaq) arraycontroller. This version only supports the newer controllers that
use the cciss driver. It works in two modes. The default mode reports the
status in a single line and can be used as a nagios check. The second mode is
activated by the -r option and prints a complete status report of the
controller and any events in the event queue.

%prep

%setup -q
%patch -p1

%build
rm -rf autom4te.cache configure
libtoolize --force --copy; aclocal; autoheader; automake --add-missing --copy --foreign; autoconf

%configure2_5x \
    --with-kernel=`ls -d /usr/src/2.6.*`

%make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_mandir}/man1

%makeinstall

install -m0644 debian/%{name}.cron.daily %{buildroot}%{_sysconfdir}/cron.daily/%{name}
install -m0644 debian/%{name}.1 %{buildroot}%{_mandir}/man1/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%attr(0644,root,root) %{_sysconfdir}/cron.daily/%{name}
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/%{name}.1*


%changelog
* Fri Aug 31 2007 Oden Eriksson <oeriksson@mandriva.com> 2.0-2mdv2008.0
+ Revision: 76950
- fix build (second try)
- fix build
- rebuild

* Sun Aug 19 2007 Oden Eriksson <oeriksson@mandriva.com> 2.0-1mdv2008.0
+ Revision: 66655
- Import arrayprobe



* Sat Jul 29 2006 Oden Eriksson <oeriksson@mandriva.com> 2.0-1mdv2007.0
- initial Mandriva package
- added one patch by debian (P0)