de46efc
%{?_with_static: %define nostatic %nil }
de46efc
%{!?_with_static: %define nostatic --disable-static }
de46efc
de46efc
# segfaults
de46efc
%{!?_with_curl: %{!?_without_curl: %define _without_curl --without-curl}}
0f06d55
484b717
Summary: Intrusion detection environment
cvsextras 9fe78cd
Name: aide
6999185
Version: 0.13.1
67d0a64
Release: 2
cvsextras eca01ee
URL: http://sourceforge.net/projects/aide
cvsextras 9fe78cd
License: GPL
cvsextras 9fe78cd
Group: Applications/System
defbe11
Source0: http://download.sourceforge.net/aide/aide-%{version}.tar.gz
cvsextras 9fe78cd
Source1: aide.conf
cvsextras 9fe78cd
Source2: README.quickstart
6999185
Source3: aide.conf.rhel
596fd89
Patch0: aide-0.13.1-manuals.patch
67d0a64
Patch1: aide-0.12-selcon.patch
cvsextras 9fe78cd
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
cvsextras 9fe78cd
Buildrequires: mhash-devel zlib-devel
484b717
Buildrequires: flex bison
de46efc
%if "%{?_with_curl}x" != "x"
de46efc
Buildrequires: curl-devel
de46efc
%endif
6999185
Buildrequires: pkgconfig
6999185
Buildrequires: libattr-devel libacl-devel libselinux-devel
6999185
Buildrequires: audit-libs-devel >= 1.2.8-2
defbe11
#Buildrequires: postgresql-devel libgcrypt-devel
defbe11
#(needs --with-psql and -lgcrypt in src/Makefile.in)
cvsextras 9fe78cd
484b717
%description
cvsextras 9fe78cd
AIDE (Advanced Intrusion Detection Environment) is a file integrity
cvsextras 9fe78cd
checker and intrusion detection program.
cvsextras 9fe78cd
cvsextras 9fe78cd
cvsextras 9fe78cd
%prep
defbe11
%setup -q
6999185
596fd89
%patch0 -p1 -b .manuals
596fd89
# Adjust default paths in manual (not as safe as the patch).
596fd89
#sed -i -e 's!@sysconfdir@/aide.db\(.new\)\?!%{_localstatedir}/lib/aide/aide.db\1.gz!' doc/aide.1.in
596fd89
#sed -i -e 's!@sysconfdir@/aide.conf!%{_sysconfdir}/aide.conf!' doc/aide.1.in
67d0a64
%patch1 -p1 -b .selcon
cvsextras 9fe78cd
59aeff8
defbe11
%build
cvsextras 9fe78cd
%configure --with-config_file=%{_sysconfdir}/aide.conf \
cvsextras 9fe78cd
           --with-zlib \
de46efc
           --with-mhash --enable-mhash \
de46efc
           %{?_with_curl} %{?_without_curl} \
6999185
           --with-selinux --with-posix-acl --with-configmactype=sha256 \
6999185
           --with-audit \
de46efc
           %{?nostatic}
cvsextras 9fe78cd
cvsextras 9fe78cd
make %{?_smp_mflags}
cvsextras 9fe78cd
cvsextras 9fe78cd
cvsextras 9fe78cd
%install
cvsextras 9fe78cd
rm -rf $RPM_BUILD_ROOT
cvsextras 9fe78cd
%makeinstall bindir=$RPM_BUILD_ROOT%{_sbindir}
cvsextras 9fe78cd
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
cvsextras 9fe78cd
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
cvsextras 9fe78cd
mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide
cvsextras 9fe78cd
install -p %{SOURCE2} README.quickstart
6999185
install -p %{SOURCE3} aide.conf.rhel
defbe11
cvsextras 9fe78cd
cvsextras 9fe78cd
%clean
cvsextras 9fe78cd
rm -rf $RPM_BUILD_ROOT
cvsextras 9fe78cd
cvsextras 9fe78cd
cvsextras 9fe78cd
%files
cvsextras 9fe78cd
%defattr(0644,root,root,0755)
defbe11
%doc AUTHORS COPYING ChangeLog NEWS README doc/manual.html contrib/
6999185
%doc README.quickstart aide.conf.rhel
cvsextras 9fe78cd
%attr(0700,root,root) %{_sbindir}/aide
cvsextras 9fe78cd
%{_mandir}/man1/*
cvsextras 9fe78cd
%{_mandir}/man5/*
cvsextras 9fe78cd
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf
cvsextras 9fe78cd
%dir %attr(0700,root,root) %{_localstatedir}/lib/aide
cvsextras 9fe78cd
cvsextras 9fe78cd
cvsextras 9fe78cd
%changelog
67d0a64
* Sun Jul 22 2007 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.13.1-2
67d0a64
- Apply Steve Conklin's patch to increase displayed portion of
67d0a64
  selinux context.
67d0a64
6999185
* Sun Dec 17 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.13.1-1
6999185
- Update to 0.13.1 release.
6999185
6999185
* Sun Dec 10 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.13-1
6999185
- Update to 0.13 release.
6999185
- Include default aide.conf from RHEL5 as doc example file.
6999185
6999185
* Sun Oct 29 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.12-3.20061027cvs
6999185
- CAUTION! This changes the database format and results in a report of
6999185
  false inconsistencies until an old database file is updated.
6999185
- Check out CVS 20061027 which now contains Red Hat's
6999185
  acl/xattr/selinux/audit patches.
6999185
- Patches merged upstream.
6999185
- Update manual page substitutions.
6999185
b7d62ec
* Mon Oct 23 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.12-2
b7d62ec
- Add "memory leaks and performance updates" patch as posted
b7d62ec
  to aide-devel by Steve Grubb.
b7d62ec
de46efc
* Sat Oct 07 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.12-1
de46efc
- Update to 0.12 release.
de46efc
- now offers --disable-static, so -no-static patch is obsolete
de46efc
- fill last element of getopt struct array with zeroes
de46efc
de46efc
* Mon Oct 02 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.11-3
c946fce
- rebuilt
c946fce
defbe11
* Mon Sep 11 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.11-2
50f447b
- rebuilt
50f447b
defbe11
* Sun Feb 19 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.11-1
defbe11
- Update to 0.11 release.
defbe11
- useless-includes patch merged upstream.
defbe11
- old Russian man pages not available anymore.
0f06d55
- disable static linking.
0f06d55
d60bc73
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
d60bc73
- rebuilt
d60bc73
cvsextras eca01ee
* Fri Nov 28 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.1
cvsextras eca01ee
- Update to 0.10 release.
cvsextras eca01ee
- memleaks patch merged upstream.
cvsextras eca01ee
- rootpath patch merged upstream.
cvsextras eca01ee
- fstat patch not needed anymore.
cvsextras eca01ee
- Updated URL.
cvsextras eca01ee
cvsextras 9ad39ae
* Thu Nov 13 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.0.2.cvs20031104
cvsextras 9ad39ae
- Added buildreq m4 to work around incomplete deps of bison package.
cvsextras 9ad39ae
cvsextras 9fe78cd
* Tue Nov 04 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.0.1.cvs20031104
cvsextras 9fe78cd
- Only tar.gz available upstream.
cvsextras 9fe78cd
- byacc not needed when bison -y is available.
cvsextras 9fe78cd
- Installed Russian manual pages.
cvsextras 9fe78cd
- Updated with changes from CVS (2003-11-04).
cvsextras 9fe78cd
- getopt patch merged upstream.
cvsextras 9fe78cd
- bison-1.35 patch incorporated upstream.
cvsextras 9fe78cd
cvsextras 9fe78cd
* Tue Sep 09 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.9-0.fdr.0.2.20030902
cvsextras 9fe78cd
- Added fixes for further memleaks.
cvsextras 9fe78cd
cvsextras 9fe78cd
* Sun Sep 07 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.9-0.fdr.0.1.20030902
cvsextras 9fe78cd
- Initial package version.
cvsextras 9fe78cd