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
|
2004-11-19 22:18:07 +00:00
|
|
|
Version: 0.5.3
|
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
|
|
|
|
BuildRequires: pam-devel
|
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.
|
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Header files and libraries for libaudit
|
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libselinux = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The audit-devel package contains the static libraries and header files
|
|
|
|
needed for developing applications that need to use the audit framework
|
|
|
|
libraries.
|
|
|
|
|
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
|
|
|
# We manually install these since Makefile doesn't
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
install -m 0644 lib/libaudit.h $RPM_BUILD_ROOT/%{_includedir}
|
|
|
|
install -m 0644 lib/libaudit.a $RPM_BUILD_ROOT/%{_libdir}
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
%post
|
|
|
|
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
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/sbin/service auditd condrestart > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libaudit.a
|
|
|
|
%{_includedir}/libaudit.h
|
|
|
|
#%{_mandir}/man3/*
|
|
|
|
|
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
|
|
|
|
%config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd
|
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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.
|
|
|
|
|