2004-11-15 22:58:29 +00:00
|
|
|
Summary: User space tools for 2.6 kernel auditing.
|
2004-09-09 03:16:50 +00:00
|
|
|
Name: audit
|
2005-01-08 23:20:29 +00:00
|
|
|
Version: 0.6.1
|
2004-09-09 03:16:50 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
2004-11-15 22:58:29 +00:00
|
|
|
Group: System Environment/Daemons
|
2004-11-19 22:18:07 +00:00
|
|
|
URL: http://people.redhat.com/sgrubb/audit/
|
2004-09-09 03:16:50 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2004-11-15 22:58:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2004-12-03 20:58:39 +00:00
|
|
|
BuildRequires: glibc-kernheaders pam-devel libtool
|
2005-01-05 19:13:59 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2004-11-19 22:18:07 +00:00
|
|
|
Requires: chkconfig
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The audit package contains the user space utilities for
|
|
|
|
storing and processing the audit records generate by
|
|
|
|
the audit subsystem in the Linux 2.6 kernel.
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%package libs
|
|
|
|
Summary: Dynamic library for libaudit
|
2004-11-19 22:18:07 +00:00
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%description libs
|
|
|
|
The audit-libs package contains the dynamic libraries needed for
|
|
|
|
applications to use the audit framework.
|
|
|
|
|
|
|
|
%package libs-devel
|
|
|
|
Summary: Header files and static library for libaudit
|
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libs-devel
|
|
|
|
The audit-libs-devel package contains the static libraries and header
|
|
|
|
files needed for developing applications that need to use the audit
|
|
|
|
framework libraries.
|
2004-11-19 22:18:07 +00:00
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2004-11-15 22:58:29 +00:00
|
|
|
autoreconf -fv --install
|
2004-11-15 23:23:40 +00:00
|
|
|
./configure --sbindir=/sbin --mandir=%{_mandir} --libdir=/lib --with-pam=yes
|
2004-09-09 03:16:50 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-11-15 22:58:29 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/{sbin,etc/{sysconfig,rc.d/init.d}}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/lib/security
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2004-09-09 03:16:50 +00:00
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
|
2004-12-13 19:27:06 +00:00
|
|
|
# We manually install this since Makefile doesn't
|
2004-11-19 22:18:07 +00:00
|
|
|
install -m 0644 lib/libaudit.h $RPM_BUILD_ROOT/%{_includedir}
|
2004-12-13 19:27:06 +00:00
|
|
|
# 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.la $RPM_BUILD_ROOT%{_libdir}
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%post libs
|
|
|
|
/sbin/ldconfig 2>/dev/null
|
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
%post
|
2004-12-03 20:58:39 +00:00
|
|
|
/sbin/ldconfig 2>/dev/null
|
2004-11-19 22:18:07 +00:00
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
/sbin/chkconfig --add auditd
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/service auditd stop > /dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del auditd
|
|
|
|
fi
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%postun libs
|
|
|
|
/sbin/ldconfig 2>/dev/null
|
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
%postun
|
2004-12-03 20:58:39 +00:00
|
|
|
/sbin/ldconfig 2>/dev/null
|
2004-11-19 22:18:07 +00:00
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/sbin/service auditd condrestart > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%attr(755,root,root) /lib/libaudit.*
|
|
|
|
|
|
|
|
%files libs-devel
|
2004-11-19 22:18:07 +00:00
|
|
|
%defattr(-,root,root)
|
2004-12-13 19:27:06 +00:00
|
|
|
%{_libdir}/libaudit.*
|
2004-11-19 22:18:07 +00:00
|
|
|
%{_includedir}/libaudit.h
|
2004-12-03 20:58:39 +00:00
|
|
|
%{_mandir}/man3/*
|
2004-11-19 22:18:07 +00:00
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2004-11-15 22:58:29 +00:00
|
|
|
%doc ChangeLog
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
2004-09-09 03:16:50 +00:00
|
|
|
%attr(750,root,root) /sbin/auditctl
|
|
|
|
%attr(750,root,root) /sbin/auditd
|
2004-11-15 23:03:35 +00:00
|
|
|
%attr(755,root,root) /lib/security/pam_audit.so
|
2004-11-15 22:58:29 +00:00
|
|
|
%attr(755,root,root) /etc/rc.d/init.d/auditd
|
2004-12-10 22:13:10 +00:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/auditd.conf
|
2004-11-15 22:58:29 +00:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd
|
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%changelog
|
2005-01-08 23:20:29 +00:00
|
|
|
* Sat Jan 08 2005 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
|
|
|
|
- New version: rework auditctl and its man pages.
|
|
|
|
- Added admin_space_left config option as last chance before
|
|
|
|
running out of disk space.
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
* Wed Jan 05 2005 Steve Grubb <sgrubb@redhat.com> 0.6-1
|
|
|
|
- New version
|
|
|
|
- Split package up to libs, libs-devel, and audit.
|
|
|
|
|
|
|
|
* Mon Dec 13 2004 Steve Grubb <sgrubb@redhat.com> 0.5.6-1
|
2004-12-13 19:27:06 +00:00
|
|
|
- New version
|
|
|
|
|
2004-12-10 22:13:10 +00:00
|
|
|
* Fri Dec 10 2004 Steve Grubb <sgrubb@redhat.com> 0.5.5-1
|
|
|
|
- New version
|
|
|
|
|
2004-12-03 20:58:39 +00:00
|
|
|
* Fri Dec 03 2004 Steve Grubb <sgrubb@redhat.com> 0.5.4-1
|
|
|
|
- New version
|
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
* Mon Nov 22 2004 Steve Grubb <sgrubb@redhat.com> 0.5.3-1
|
|
|
|
- New version
|
|
|
|
|
2004-11-15 23:03:35 +00:00
|
|
|
* Mon Nov 15 2004 Steve Grubb <sgrubb@redhat.com> 0.5.2-1
|
|
|
|
- New version
|
|
|
|
|
2004-11-15 22:58:29 +00:00
|
|
|
* Wed Nov 10 2004 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
|
|
|
|
- Added initscript pieces
|
|
|
|
- New version
|
|
|
|
|
|
|
|
* Wed Sep 1 2004 Charlie Bennett (ccb@redhat.com) 0.5-1
|
2004-09-09 03:16:50 +00:00
|
|
|
- Initial build.
|
|
|
|
|