%define name     aide
%define ver      0.6
%define rel      1
%define prefix   /usr

Summary: Advanced Intrusion Detection Environment
Name: %name
Version: %ver
Release: %rel
Copyright: GPL
Group: Console/Security
Source: http://www.cs.tut.fi/~rammer/aide-0.6.tar.gz
BuildRoot: /var/tmp/aide-%{PACKAGE_VERSION}-root
Obsoletes: %name
URL: http://www.cs.tut.fi/~rammer/aide.html
Docdir: %{prefix}/doc

%description
aide is an intrusion detection system for checking the integrity of files.

%changelog

* Wed Jan 26 2000 Matthew Kirkwood <weejock@ferret.lmh.ox.ac.uk>

- Fixes for RH 6.1 and sysconfdir changed to /etc and /var/lib/aide added

* Sun Sep 12 1999 Rami Lehti <rammer@cs.tut.fi>

- Some small changes to make this autogeneratable by configure.

* Sat Sep 11 1999 Zach Brown <zab@redhat.com>

- First go

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=/etc --with-config-file=/etc/aide.conf

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install-strip
mkdir -p -m700 $RPM_BUILD_ROOT/var/lib/aide

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%doc AUTHORS COPYING ChangeLog NEWS README doc/aide*
%{prefix}/bin/aide
%{prefix}/man/man1/aide.1
%{prefix}/man/man5/aide.conf.5
/var/lib/aide
