- Add logrotate script
This commit is contained in:
parent
0af09555e4
commit
56f20c4b80
9
aide.logrotate
Normal file
9
aide.logrotate
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/var/log/aide/*.log {
|
||||||
|
weekly
|
||||||
|
missingok
|
||||||
|
rotate 4
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
copytruncate
|
||||||
|
minsize 100k
|
||||||
|
}
|
19
aide.spec
19
aide.spec
@ -1,19 +1,17 @@
|
|||||||
%{?_with_static: %define nostatic %nil }
|
|
||||||
%{!?_with_static: %define nostatic --disable-static }
|
|
||||||
|
|
||||||
# segfaults
|
# segfaults
|
||||||
%{!?_with_curl: %{!?_without_curl: %define _without_curl --without-curl}}
|
%{!?_with_curl: %{!?_without_curl: %global _without_curl --without-curl}}
|
||||||
|
|
||||||
Summary: Intrusion detection environment
|
Summary: Intrusion detection environment
|
||||||
Name: aide
|
Name: aide
|
||||||
Version: 0.13.1
|
Version: 0.13.1
|
||||||
Release: 15%{?dist}
|
Release: 16%{?dist}
|
||||||
URL: http://sourceforge.net/projects/aide
|
URL: http://sourceforge.net/projects/aide
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source0: http://download.sourceforge.net/aide/aide-%{version}.tar.gz
|
Source0: http://download.sourceforge.net/aide/aide-%{version}.tar.gz
|
||||||
Source1: aide.conf
|
Source1: aide.conf
|
||||||
Source2: README.quickstart
|
Source2: README.quickstart
|
||||||
|
Source3: aide.logrotate
|
||||||
Patch1: aide-0.13.1-contextsize.patch
|
Patch1: aide-0.13.1-contextsize.patch
|
||||||
Patch2: aide-0.12-dedosify.patch
|
Patch2: aide-0.12-dedosify.patch
|
||||||
Patch3: aide-0.13.1-manuals.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"
|
%if "%{?_with_curl}x" != "x"
|
||||||
Buildrequires: curl-devel
|
Buildrequires: curl-devel
|
||||||
%endif
|
%endif
|
||||||
#Buildrequires: postgresql-devel libgcrypt-devel
|
|
||||||
#(needs --with-psql and -lgcrypt in src/Makefile.in)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
AIDE (Advanced Intrusion Detection Environment) is a file integrity
|
AIDE (Advanced Intrusion Detection Environment) is a file integrity
|
||||||
@ -66,13 +62,14 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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%{_localstatedir}/log/aide
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
||||||
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
||||||
mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide
|
mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide
|
||||||
install -p %{SOURCE2} README.quickstart
|
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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -86,11 +83,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf
|
%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}/lib/aide
|
||||||
%dir %attr(0700,root,root) %{_localstatedir}/log/aide
|
%dir %attr(0700,root,root) %{_localstatedir}/log/aide
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 19 2010 Steve Grubb <sgrubb@redhat.com> - 0.13.1-16
|
||||||
|
- Add logrotate script and spec file cleanups
|
||||||
|
|
||||||
* Fri Dec 11 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-15
|
* Fri Dec 11 2009 Steve Grubb <sgrubb@redhat.com> - 0.13.1-15
|
||||||
- Get rid of .dedosify files
|
- Get rid of .dedosify files
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user