From c5201dccfb37ee831cb9471a7f79617b1bf4700f Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Nov 19 2004 22:18:07 +0000 Subject: New version --- diff --git a/audit.spec b/audit.spec index d802ac4..6a6d941 100644 --- a/audit.spec +++ b/audit.spec @@ -1,14 +1,14 @@ Summary: User space tools for 2.6 kernel auditing. Name: audit -Version: 0.5.2 +Version: 0.5.3 Release: 1 License: GPL Group: System Environment/Daemons -URL: http://people.redhat.com/faith/audit/ +URL: http://people.redhat.com/sgrubb/audit/ Source0: %{name}-%{version}.tar.gz -Patch1: audit-0.5.2-x86_64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pam-devel +Requires: chkconfig %description @@ -16,9 +16,19 @@ 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. +%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. + %prep %setup -q -%patch1 -p1 -b .x86_64 %build autoreconf -fv --install @@ -32,10 +42,37 @@ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 mkdir -p $RPM_BUILD_ROOT/lib/security make DESTDIR=$RPM_BUILD_ROOT install +# 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} %clean rm -rf $RPM_BUILD_ROOT +%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/* + %files %defattr(-,root,root,-) @@ -50,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Nov 22 2004 Steve Grubb 0.5.3-1 +- New version + * Mon Nov 15 2004 Steve Grubb 0.5.2-1 - New version