%define name aide
%define ver @AIDEVERSION@
%define rel 1
%define prefix /usr
Summary: Advanced Intrusion Detection Environment
Name: %name
Version: %ver
Release: %rel
Copyright: GPL
Group: Console/Security
Source: http://prdownloads.sourceforge.net/aide/aide-%ver.tar.gz
BuildRoot: /var/tmp/aide-%{PACKAGE_VERSION}-root
Obsoletes: %name
URL: http://sourceforge.net/projects/aide
Docdir: %{prefix}/doc
%description
aide is an intrusion detection system for checking the integrity of files.
%changelog
* Fri Nov 28 2003 Richard van den Berg <richard@vdberg.org>
- Changed URLs to point to sourceforge.net
* 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 install-man
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 README-snprintf LICENSE-snprintf.txt Todo doc/aide*
%{prefix}/bin/aide
%{_mandir}/man1/aide.1*
%{_mandir}/man5/aide.conf.5*
/var/lib/aide