Name: hatools
Version: 2.00
Release: 1%{?dist}
Summary: Improved shell scripting in High Availability environment
Group: System Environment/Base
License: GPLv2+
URL: http://fatalmind.com/software/hatools/
Source0: http://fatalmind.com/software/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
The HA-Tools provide some programs to improve shell scripting in a High
Availability environment.
The halockrun program provides a simple and reliable way to implement a locking
in shell scripts. A typical usage for halockrun is to prevent cronjobs to run
simultanously. halockrun uses a lock on a file via fcntl(2) which ensures the
release of the lock even if the process gets killed via SIGKILL.
The hatimerun program provides a time-out mechanism which can be used from
shell scripts.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/*
%{_mandir}/*/*
%changelog
* Thu Jan 29 2009 Oliver Falk <oliver@linux-kernel.at> - 2.00-1
- Initial specfile