diff --git a/aide.logrotate b/aide.logrotate new file mode 100644 index 0000000..614c6a6 --- /dev/null +++ b/aide.logrotate @@ -0,0 +1,9 @@ +/var/log/aide/*.log { + weekly + missingok + rotate 4 + compress + delaycompress + copytruncate + minsize 100k +} diff --git a/aide.spec b/aide.spec index 47ff2b8..f0d7746 100644 --- a/aide.spec +++ b/aide.spec @@ -1,19 +1,17 @@ -%{?_with_static: %define nostatic %nil } -%{!?_with_static: %define nostatic --disable-static } - # segfaults -%{!?_with_curl: %{!?_without_curl: %define _without_curl --without-curl}} +%{!?_with_curl: %{!?_without_curl: %global _without_curl --without-curl}} Summary: Intrusion detection environment Name: aide Version: 0.13.1 -Release: 15%{?dist} +Release: 16%{?dist} URL: http://sourceforge.net/projects/aide License: GPLv2+ Group: Applications/System Source0: http://download.sourceforge.net/aide/aide-%{version}.tar.gz Source1: aide.conf Source2: README.quickstart +Source3: aide.logrotate Patch1: aide-0.13.1-contextsize.patch Patch2: aide-0.12-dedosify.patch Patch3: aide-0.13.1-manuals.patch @@ -32,8 +30,6 @@ Buildrequires: audit-libs-devel >= 1.2.8-2 %if "%{?_with_curl}x" != "x" Buildrequires: curl-devel %endif -#Buildrequires: postgresql-devel libgcrypt-devel -#(needs --with-psql and -lgcrypt in src/Makefile.in) %description AIDE (Advanced Intrusion Detection Environment) is a file integrity @@ -66,13 +62,14 @@ make %install rm -rf $RPM_BUILD_ROOT -%makeinstall bindir=$RPM_BUILD_ROOT%{_sbindir} +make DESTDIR=$RPM_BUILD_ROOT bindir=%{_sbindir} install mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/aide mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide install -p %{SOURCE2} README.quickstart - +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d +install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/aide %clean rm -rf $RPM_BUILD_ROOT @@ -86,11 +83,15 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/* %{_mandir}/man5/* %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf +%{_sysconfdir}/logrotate.d/aide %dir %attr(0700,root,root) %{_localstatedir}/lib/aide %dir %attr(0700,root,root) %{_localstatedir}/log/aide %changelog +* Fri Feb 19 2010 Steve Grubb - 0.13.1-16 +- Add logrotate script and spec file cleanups + * Fri Dec 11 2009 Steve Grubb - 0.13.1-15 - Get rid of .dedosify files