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