New version
This commit is contained in:
parent
bcb2c57a1d
commit
c5201dccfb
48
audit.spec
48
audit.spec
@ -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: 0.5.2
|
Version: 0.5.3
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://people.redhat.com/faith/audit/
|
URL: http://people.redhat.com/sgrubb/audit/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch1: audit-0.5.2-x86_64.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
|
Requires: chkconfig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
@ -16,9 +16,19 @@ The audit package contains the user space utilities for
|
|||||||
storing and processing the audit records generate by
|
storing and processing the audit records generate by
|
||||||
the audit subsystem in the Linux 2.6 kernel.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .x86_64
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fv --install
|
autoreconf -fv --install
|
||||||
@ -32,10 +42,37 @@ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|||||||
mkdir -p $RPM_BUILD_ROOT/lib/security
|
mkdir -p $RPM_BUILD_ROOT/lib/security
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -50,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 22 2004 Steve Grubb <sgrubb@redhat.com> 0.5.3-1
|
||||||
|
- New version
|
||||||
|
|
||||||
* Mon Nov 15 2004 Steve Grubb <sgrubb@redhat.com> 0.5.2-1
|
* Mon Nov 15 2004 Steve Grubb <sgrubb@redhat.com> 0.5.2-1
|
||||||
- New version
|
- New version
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user