8b87dc
# segfaults
8b87dc
%{!?_with_curl: %{!?_without_curl: %global _without_curl --without-curl}}
8b87dc
8b87dc
Summary: Intrusion detection environment
8b87dc
Name: aide
8b87dc
Version: 0.15.1
8b87dc
Release: 9%{?dist}
8b87dc
URL: http://sourceforge.net/projects/aide
8b87dc
License: GPLv2+
8b87dc
Group: Applications/System
8b87dc
Source0: http://downloads.sourceforge.net/aide/aide-%{version}.tar.gz
8b87dc
Source1: aide.conf
8b87dc
Source2: README.quickstart
8b87dc
Source3: aide.logrotate
8b87dc
# Customize the database file location in the man page.
8b87dc
Patch1: aide-0.14-man.patch
8b87dc
# fix aide in FIPS mode
8b87dc
Patch2: aide-0.15.1-fipsfix.patch
8b87dc
# warn if processing prelinked binary objects and the prelink binary is not available
8b87dc
Patch3: aide-0.15.1-prelinkwarn.patch
8b87dc
8b87dc
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
8b87dc
BuildRequires: mktemp
8b87dc
%ifnarch aarch64 ppc64le
8b87dc
BuildRequires: prelink
8b87dc
%endif
8b87dc
BuildRequires: elfutils-libelf-devel
8b87dc
%if 0%{?rhel} == 0
8b87dc
Buildrequires: mhash-devel
8b87dc
%endif
8b87dc
Buildrequires: zlib-devel libgcrypt-devel
8b87dc
Buildrequires: flex bison
8b87dc
Buildrequires: libattr-devel e2fsprogs-devel
8b87dc
Buildrequires: libacl-devel libselinux-devel
8b87dc
Buildrequires: audit-libs-devel >= 1.2.8-2
8b87dc
%if "%{?_with_curl}x" != "x"
8b87dc
Buildrequires: curl-devel
8b87dc
%endif
8b87dc
8b87dc
%description
8b87dc
AIDE (Advanced Intrusion Detection Environment) is a file integrity
8b87dc
checker and intrusion detection program.
8b87dc
8b87dc
8b87dc
%prep
8b87dc
%setup -q
8b87dc
%patch1 -p1 -b .man
8b87dc
%patch2 -p1 -b .fipsfix
8b87dc
%patch3 -p1 -b .prelinkwarn
8b87dc
8b87dc
%build
8b87dc
%configure --with-config_file=%{_sysconfdir}/aide.conf \
8b87dc
           --with-zlib \
8b87dc
           --disable-static \
8b87dc
%if 0%{?rhel} == 0
8b87dc
           --with-mhash \
8b87dc
%endif
8b87dc
           %{?_with_curl} %{?_without_curl} \
8b87dc
           --with-posix-acl \
8b87dc
           --with-selinux \
8b87dc
%ifnarch aarch64 ppc64le
8b87dc
           --with-prelink \
8b87dc
%else
8b87dc
	   --without-prelink \
8b87dc
%endif
8b87dc
           --with-xattr \
8b87dc
           --with-e2fsattrs \
8b87dc
           --with-audit
8b87dc
8b87dc
make
8b87dc
8b87dc
8b87dc
%install
8b87dc
rm -rf $RPM_BUILD_ROOT
8b87dc
make DESTDIR=$RPM_BUILD_ROOT bindir=%{_sbindir} install
8b87dc
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/aide
8b87dc
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
8b87dc
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
8b87dc
mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide
8b87dc
install -p %{SOURCE2} README.quickstart
8b87dc
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
8b87dc
install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/aide
8b87dc
8b87dc
%clean
8b87dc
rm -rf $RPM_BUILD_ROOT
8b87dc
8b87dc
8b87dc
%files
8b87dc
%defattr(0644,root,root,0755)
8b87dc
%doc AUTHORS COPYING ChangeLog NEWS README doc/manual.html contrib/
8b87dc
%doc README.quickstart
8b87dc
%attr(0700,root,root) %{_sbindir}/aide
8b87dc
%{_mandir}/man1/*
8b87dc
%{_mandir}/man5/*
8b87dc
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf
8b87dc
%config(noreplace) %{_sysconfdir}/logrotate.d/aide
8b87dc
%dir %attr(0700,root,root) %{_localstatedir}/lib/aide
8b87dc
%dir %attr(0700,root,root) %{_localstatedir}/log/aide
8b87dc
8b87dc
8b87dc
%changelog
8b87dc
* Mon Aug  4 2014 Daniel Kopecek <dkopecek@redhat.com> - 0.15.1-9
8b87dc
- Don't require prelink on aarch64 and ppc64le
8b87dc
  Resolves: rhbz#1078555
8b87dc
  Resolves: rhbz#1125462
8b87dc
8b87dc
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.15.1-8
8b87dc
- Mass rebuild 2014-01-24
8b87dc
8b87dc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.15.1-7
8b87dc
- Mass rebuild 2013-12-27
8b87dc
8b87dc
* Fri Nov 08 2013 Daniel Kopecek <dkopecek@redhat.com> - 0.15.1-6
8b87dc
- warn if processing prelinked binary objects and the prelink binary
8b87dc
  is not available
8b87dc
  Resolves: rbhz#1004826
8b87dc
8b87dc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-5
8b87dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8b87dc
8b87dc
* Thu Nov 22 2012 Daniel Kopecek <dkopecek@redhat.com> - 0.15.1-4
8b87dc
- added patch to fix aide in FIPS mode
8b87dc
- use only FIPS approved digest algorithms in aide.conf so that
8b87dc
  aide works by default in FIPS mode
8b87dc
8b87dc
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-3
8b87dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8b87dc
8b87dc
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
8b87dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8b87dc
8b87dc
* Thu Nov 11 2010 Steve Grubb <sgrubb@redhat.com> - 0.15.1-1
8b87dc
- New upstream release
8b87dc
8b87dc
* Tue May 18 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-5
8b87dc
- Apply 2 upstream bug fixes
8b87dc
8b87dc
* Tue May 18 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-4
8b87dc
- Use upstream's patch to fix bz 590566
8b87dc
8b87dc
* Sat May 15 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-3
8b87dc
- Fix bz 590561 aide does not detect the change of SElinux context
8b87dc
- Fix bz 590566 aide reports a changed file when it has not been changed
8b87dc
8b87dc
* Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-2
8b87dc
- Fix bz 574764 by replacing abort calls with exit
8b87dc
- Apply libgcrypt init patch
8b87dc
8b87dc
* Tue Mar 16 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-1
8b87dc
- New upstream release final 0.14
8b87dc
8b87dc
* Thu Feb 25 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-0.4.rc3
8b87dc
- New upstream release
8b87dc
8b87dc
* Thu Feb 25 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-0.3.rc2
8b87dc
- New upstream release
8b87dc
8b87dc
* Tue Feb 23 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-0.2.rc1
8b87dc
- Fix dirent detection on 64bit systems
8b87dc
8b87dc
* Mon Feb 22 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-0.1.rc1
8b87dc
- New upstream release
8b87dc
8b87dc
* Fri Feb 19 2010 Steve Grubb <sgrubb@redhat.com> - 0.13.1-16
8b87dc
- Add logrotate script and spec file cleanups
8b87dc
8b87dc
* Fri Dec 11 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-15
8b87dc
- Get rid of .dedosify files
8b87dc
8b87dc
* Wed Dec 09 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-14
8b87dc
- Revise patch for Initialize libgcrypt correctly (#530485)
8b87dc
8b87dc
* Sat Nov 07 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-13
8b87dc
- Initialize libgcrypt correctly (#530485)
8b87dc
8b87dc
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.13.1-12
8b87dc
- rebuilt with new audit
8b87dc
8b87dc
* Wed Aug 19 2009 Steve Grubb <sgrubb@redhat.com> 0.13.1-11
8b87dc
- rebuild for new audit-libs
8b87dc
- Correct regex for root's dot files (#509370)
8b87dc
8b87dc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-10
8b87dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8b87dc
8b87dc
* Mon Jun 08 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-9
8b87dc
- Make aide smarter about prelinked files (Peter Vrabec)
8b87dc
- Add /lib64 to default config
8b87dc
8b87dc
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-7
8b87dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8b87dc
8b87dc
* Fri Jan 30 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-6
8b87dc
- enable xattr support and update config file
8b87dc
8b87dc
* Fri Sep 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.13.1-5
8b87dc
- fix selcon patch to apply without fuzz
8b87dc
8b87dc
* Fri Feb 15 2008 Steve Conklin <sconklin@redhat.com>
8b87dc
- rebuild for gcc4.3
8b87dc
8b87dc
* Tue Aug 21 2007 Michael Schwendt <mschwendt[AT]users.sf.net>
8b87dc
- rebuilt
8b87dc
8b87dc
* Sun Jul 22 2007 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.13.1-2
8b87dc
- Apply Steve Conklin's patch to increase displayed portion of
8b87dc
  selinux context.
8b87dc
8b87dc
* Sun Dec 17 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.13.1-1
8b87dc
- Update to 0.13.1 release.
8b87dc
8b87dc
* Sun Dec 10 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.13-1
8b87dc
- Update to 0.13 release.
8b87dc
- Include default aide.conf from RHEL5 as doc example file.
8b87dc
8b87dc
* Sun Oct 29 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.12-3.20061027cvs
8b87dc
- CAUTION! This changes the database format and results in a report of
8b87dc
  false inconsistencies until an old database file is updated.
8b87dc
- Check out CVS 20061027 which now contains Red Hat's
8b87dc
  acl/xattr/selinux/audit patches.
8b87dc
- Patches merged upstream.
8b87dc
- Update manual page substitutions.
8b87dc
8b87dc
* Mon Oct 23 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.12-2
8b87dc
- Add "memory leaks and performance updates" patch as posted
8b87dc
  to aide-devel by Steve Grubb.
8b87dc
8b87dc
* Sat Oct 07 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.12-1
8b87dc
- Update to 0.12 release.
8b87dc
- now offers --disable-static, so -no-static patch is obsolete
8b87dc
- fill last element of getopt struct array with zeroes
8b87dc
8b87dc
* Mon Oct 02 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.11-3
8b87dc
- rebuilt
8b87dc
8b87dc
* Mon Sep 11 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.11-2
8b87dc
- rebuilt
8b87dc
8b87dc
* Sun Feb 19 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.11-1
8b87dc
- Update to 0.11 release.
8b87dc
- useless-includes patch merged upstream.
8b87dc
- old Russian man pages not available anymore.
8b87dc
- disable static linking.
8b87dc
8b87dc
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
8b87dc
- rebuilt
8b87dc
8b87dc
* Fri Nov 28 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.1
8b87dc
- Update to 0.10 release.
8b87dc
- memleaks patch merged upstream.
8b87dc
- rootpath patch merged upstream.
8b87dc
- fstat patch not needed anymore.
8b87dc
- Updated URL.
8b87dc
8b87dc
* Thu Nov 13 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.0.2.cvs20031104
8b87dc
- Added buildreq m4 to work around incomplete deps of bison package.
8b87dc
8b87dc
* Tue Nov 04 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.0.1.cvs20031104
8b87dc
- Only tar.gz available upstream.
8b87dc
- byacc not needed when bison -y is available.
8b87dc
- Installed Russian manual pages.
8b87dc
- Updated with changes from CVS (2003-11-04).
8b87dc
- getopt patch merged upstream.
8b87dc
- bison-1.35 patch incorporated upstream.
8b87dc
8b87dc
* Tue Sep 09 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.9-0.fdr.0.2.20030902
8b87dc
- Added fixes for further memleaks.
8b87dc
8b87dc
* Sun Sep 07 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.9-0.fdr.0.1.20030902
8b87dc
- Initial package version.
8b87dc