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