- Switch out dispatcher

- Fix bug upgrading rule types
This commit is contained in:
Steve Grubb 2006-07-13 20:38:11 +00:00
parent bcf52d7fa0
commit cb9ea2d589
3 changed files with 25 additions and 14 deletions

View File

@ -61,3 +61,4 @@ audit-1.2.1.tar.gz
audit-1.2.2.tar.gz audit-1.2.2.tar.gz
audit-1.2.3.tar.gz audit-1.2.3.tar.gz
audit-1.2.4.tar.gz audit-1.2.4.tar.gz
audit-1.2.5.tar.gz

View File

@ -1,14 +1,14 @@
Summary: User space tools for 2.6 kernel auditing. Summary: User space tools for 2.6 kernel auditing
Name: audit Name: audit
Version: 1.2.4 Version: 1.2.5
Release: 1.1 Release: 1
License: GPL License: GPL
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://people.redhat.com/sgrubb/audit/ URL: http://people.redhat.com/sgrubb/audit/
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libtool swig python-devel BuildRequires: libtool swig python-devel
BuildRequires: kernel-headers >= 2.6.16 BuildRequires: kernel-headers >= 2.6.17
BuildRequires: automake >= 1.9 BuildRequires: automake >= 1.9
BuildRequires: autoconf >= 2.59 BuildRequires: autoconf >= 2.59
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
@ -33,7 +33,7 @@ Summary: Header files and static library for libaudit
License: LGPL License: LGPL
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: kernel-headers >= 2.6.16 Requires: kernel-headers >= 2.6.17
%description libs-devel %description libs-devel
The audit-libs-devel package contains the static libraries and header The audit-libs-devel package contains the static libraries and header
@ -45,7 +45,7 @@ Summary: Python bindings for libaudit
License: LGPL License: LGPL
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: kernel-headers >= 2.6.16 Requires: kernel-headers >= 2.6.17
%description libs-python %description libs-python
The audit-libs-python package contains the bindings so that libaudit The audit-libs-python package contains the bindings so that libaudit
@ -65,13 +65,11 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/{sbin,etc/{sysconfig,rc.d/init.d}} mkdir -p $RPM_BUILD_ROOT/{sbin,etc/{sysconfig,rc.d/init.d}}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT/%{_lib} mkdir -p $RPM_BUILD_ROOT/%{_lib}
mkdir -p $RPM_BUILD_ROOT/usr/{lib,lib32}/audit
mkdir -p $RPM_BUILD_ROOT/%{_var}/log/audit mkdir -p $RPM_BUILD_ROOT/%{_var}/log/audit
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
mkdir -p $RPM_BUILD_ROOT/%{_libdir} mkdir -p $RPM_BUILD_ROOT/%{_libdir}
# We manually install this since Makefile doesn't
install -m 0644 lib/libaudit.h $RPM_BUILD_ROOT/%{_includedir}
# This winds up in the wrong place when libtool is involved # This winds up in the wrong place when libtool is involved
mv $RPM_BUILD_ROOT/%{_lib}/libaudit.a $RPM_BUILD_ROOT%{_libdir} mv $RPM_BUILD_ROOT/%{_lib}/libaudit.a $RPM_BUILD_ROOT%{_libdir}
mv $RPM_BUILD_ROOT/%{_lib}/libauparse.a $RPM_BUILD_ROOT%{_libdir} mv $RPM_BUILD_ROOT/%{_lib}/libauparse.a $RPM_BUILD_ROOT%{_libdir}
@ -90,9 +88,6 @@ rm -f $RPM_BUILD_ROOT/%{_lib}/libauparse.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.a rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.la rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.la
# Temp remove this file
rm -f $RPM_BUILD_ROOT/sbin/audispd
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -106,6 +101,14 @@ fi
if [ -f /etc/audit.rules ]; then if [ -f /etc/audit.rules ]; then
mv /etc/audit.rules /etc/audit/audit.rules mv /etc/audit.rules /etc/audit/audit.rules
fi fi
if [ -f /etc/audit/auditd.conf ]; then
tmp=`mktemp /etc/audit/auditd-post.XXXXXX`
if [ -n $tmp ]; then
sed 's|#dispatcher|dispatcher|g' /etc/audit/auditd.conf > $tmp && \
cat $tmp > /etc/audit/auditd.conf
rm -f $tmp
fi
fi
%preun %preun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
@ -150,16 +153,23 @@ fi
%attr(750,root,root) /sbin/ausearch %attr(750,root,root) /sbin/ausearch
%attr(750,root,root) /sbin/aureport %attr(750,root,root) /sbin/aureport
%attr(750,root,root) /sbin/autrace %attr(750,root,root) /sbin/autrace
#%attr(750,root,root) /sbin/audispd %attr(750,root,root) /sbin/audispd
%attr(755,root,root) /etc/rc.d/init.d/auditd %attr(755,root,root) /etc/rc.d/init.d/auditd
%attr(750,root,root) %{_var}/log/audit %attr(750,root,root) %{_var}/log/audit
%attr(750,root,root) %dir /etc/audit %attr(750,root,root) %dir /etc/audit
%attr(750,root,root) %dir /usr/lib/audit
%attr(750,root,root) %dir /usr/lib32/audit
%config(noreplace) %attr(640,root,root) /etc/audit/auditd.conf %config(noreplace) %attr(640,root,root) /etc/audit/auditd.conf
%config(noreplace) %attr(640,root,root) /etc/audit/audit.rules %config(noreplace) %attr(640,root,root) /etc/audit/audit.rules
%config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd %config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd
/usr/lib/python2.4/site-packages/AuditMsg.py*
%changelog %changelog
* Thu Jul 13 2006 Steve Grubb <sgrubb@redhat.com> 1.2.5-1
- Switch out dispatcher
- Fix bug upgrading rule types
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.1 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.1
- rebuild - rebuild

View File

@ -1 +1 @@
a4a63915c411d17aa1f38e6104f49d38 audit-1.2.4.tar.gz d5d56d5e3189215dcd37a5eded761d12 audit-1.2.5.tar.gz