2008-03-28 15:45:19 +01:00
|
|
|
#
|
2008-06-25 18:53:54 +02:00
|
|
|
# spec file for package audit-secondary (Version 1.7.4)
|
2008-03-28 15:45:19 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
2008-08-02 02:36:28 +02:00
|
|
|
# nodebuginfo
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
Name: audit-secondary
|
|
|
|
%define _name audit
|
2008-06-23 02:42:51 +02:00
|
|
|
BuildRequires: audit audit-devel gcc-c++ openldap2-devel pkg-config python-devel swig
|
2008-03-28 15:45:19 +01:00
|
|
|
Summary: Python Bindings for libaudit
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: System/Monitoring
|
2008-06-25 18:53:54 +02:00
|
|
|
Version: 1.7.4
|
2008-08-02 02:36:28 +02:00
|
|
|
Release: 2
|
2008-03-28 15:45:19 +01:00
|
|
|
Url: http://people.redhat.com/sgrubb/audit/
|
|
|
|
Source0: audit-%{version}.tar.bz2
|
|
|
|
Patch0: audit-no_sca.patch
|
2008-06-25 18:53:54 +02:00
|
|
|
Patch1: audit-plugins-path.patch
|
2008-03-28 15:45:19 +01:00
|
|
|
Requires: audit = %{version}-%{release}
|
|
|
|
Requires: audit-libs = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
|
|
|
|
%description
|
|
|
|
The audit-libs-python package contains the bindings for using libaudit
|
|
|
|
by python.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Steve Grubb <sgrubb@redhat.com>
|
|
|
|
|
|
|
|
%package -n audit-libs-python
|
|
|
|
Summary: Python Bindings for libaudit
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: System/Monitoring
|
2008-04-20 15:23:11 +02:00
|
|
|
%py_requires
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
%description -n audit-libs-python
|
|
|
|
The audit-libs-python package contains the bindings for using libaudit
|
|
|
|
by python.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Steve Grubb <sgrubb@redhat.com>
|
|
|
|
|
|
|
|
%package -n audit-audispd-plugins
|
|
|
|
Summary: Default plugins for the audit dispatcher
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: openldap2
|
|
|
|
|
|
|
|
%description -n audit-audispd-plugins
|
|
|
|
The audit-audispd-plugins package contains plugin components for the
|
|
|
|
audit dispatcher (audispd).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Steve Grubb <sgrubb@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
# remove selinux policy
|
|
|
|
rm -rf audisp/plugins/zos-remote/policy
|
|
|
|
# we don't build prelude
|
|
|
|
rm -rf audisp/plugins/prelude
|
|
|
|
%setup -q -n audit-%{version}
|
|
|
|
%patch0 -p1
|
2008-06-25 18:53:54 +02:00
|
|
|
%patch1 -p1
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
./configure --prefix=%{_prefix} --sbindir=/sbin --mandir=%{_mandir} --libdir=/%{_lib} --sysconfdir=/etc --with-apparmor
|
|
|
|
pushd src/mt
|
|
|
|
make libaudit.h
|
|
|
|
popd
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/_tmp
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man5,man8}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install -C swig
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install -C bindings
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install -C audisp/plugins
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT/_tmp install -C docs
|
|
|
|
# Clean up some unneeded library files
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/_audit.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/_audit.la
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/auparse-1.0-py%{py_ver}.egg-info
|
|
|
|
# Cleanup plugins
|
|
|
|
# audispd-zos-remote uses ldap which is in /usr/lib so move to /usr/sbin
|
2008-06-25 18:53:54 +02:00
|
|
|
# audisp-remote shouldn't be in /sbin either, it's not 'essential'
|
|
|
|
mv $RPM_BUILD_ROOT/sbin/{audispd-zos-remote,audisp-remote} $RPM_BUILD_ROOT/usr/sbin
|
2008-03-28 15:45:19 +01:00
|
|
|
# af_unix/syslog (builtin) is packaged by main spec file
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/audisp/plugins.d/{af_unix,syslog}.conf
|
|
|
|
# Just need selecteed man pages
|
|
|
|
mv $RPM_BUILD_ROOT/_tmp/%{_mandir}/man8/audispd-zos-remote.8 $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
mv $RPM_BUILD_ROOT/_tmp/%{_mandir}/man5/zos-remote.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
rm -rf $RPM_BUILD_ROOT/_tmp
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -n audit-libs-python
|
|
|
|
%defattr(-,root,root,-)
|
2008-06-25 18:53:54 +02:00
|
|
|
%attr(755,root,root) %{_libdir}/python%{py_ver}/site-packages/_audit.so
|
|
|
|
%attr(755,root,root) %{_libdir}/python%{py_ver}/site-packages/auparse.so
|
2008-03-28 15:45:19 +01:00
|
|
|
%{_libdir}/python%{py_ver}/site-packages/audit.py*
|
|
|
|
|
|
|
|
%files -n audit-audispd-plugins
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(644,root,root) %{_mandir}/man8/audispd-zos-remote.8.gz
|
|
|
|
%attr(644,root,root) %{_mandir}/man5/zos-remote.conf.5.gz
|
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audisp/plugins.d/audispd-zos-remote.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audisp/zos-remote.conf
|
|
|
|
%attr(750,root,root) /usr/sbin/audispd-zos-remote
|
2008-06-25 18:53:54 +02:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audisp/audisp-remote.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audisp/plugins.d/au-remote.conf
|
|
|
|
%attr(750,root,root) /usr/sbin/audisp-remote
|
|
|
|
%attr(644,root,root) %{_mandir}/man5/audisp-remote.conf.5.gz
|
|
|
|
%attr(644,root,root) %{_mandir}/man8/audisp-remote.8.gz
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
%changelog
|
2008-08-02 02:36:28 +02:00
|
|
|
* Fri Aug 01 2008 ro@suse.de
|
|
|
|
- disable debuginfo for secondary specfile
|
2008-06-25 18:53:54 +02:00
|
|
|
* Wed Jun 25 2008 tonyj@suse.de
|
|
|
|
- Update from 1.7.2 to 1.7.4 (see audit.changes for upstream change
|
|
|
|
history)
|
|
|
|
- Update from 1.6.8 to 1.7.2 (see audit.changes for upstream change
|
|
|
|
history)
|
2008-06-23 02:42:51 +02:00
|
|
|
* Tue Jun 03 2008 coolo@suse.de
|
|
|
|
- avoid packaging a directory with different permissions (creating
|
|
|
|
rpm -V output)
|
2008-04-20 15:23:11 +02:00
|
|
|
* Wed Apr 16 2008 aj@suse.de
|
|
|
|
- Use %%py_requires for proper requires.
|
2008-03-28 15:45:19 +01:00
|
|
|
* Wed Mar 26 2008 tonyj@suse.de
|
|
|
|
- Update to version 1.6.8.
|
|
|
|
- Rename to audit-secondary and build audisp-plugins from here
|
|
|
|
to minimise bootstrap dependancies.
|
|
|
|
* Tue Mar 18 2008 schwab@suse.de
|
|
|
|
- Use autoreconf.
|
|
|
|
* Thu Oct 11 2007 tonyj@suse.de
|
|
|
|
- Upgrade to 1.6.2
|
|
|
|
* Wed Jul 25 2007 tonyj@suse.de
|
|
|
|
- Upgrade to 1.5.5
|
|
|
|
Drop audit-swig-attribute.patch (upstreamed)
|
|
|
|
* Fri Jul 13 2007 tonyj@suse.de
|
|
|
|
- Fix build errors on ppc
|
|
|
|
* Thu Jul 12 2007 tonyj@suse.de
|
|
|
|
- Upgrade to 1.5.4
|
|
|
|
* Wed May 02 2007 tonyj@suse.de
|
|
|
|
- Upgrade to 1.5.3.
|
|
|
|
* Wed Nov 29 2006 tonyj@suse.de
|
|
|
|
- Upgrade to 1.2.9 (drop several patches which are now upstream)
|
|
|
|
- /usr/sbin/audispd now packaged by audit-libs-python
|
|
|
|
* Sun Nov 05 2006 ro@suse.de
|
|
|
|
- fix requires
|
2008-04-20 15:23:11 +02:00
|
|
|
* Fri Sep 01 2006 tonyj@suse.de
|
2008-03-28 15:45:19 +01:00
|
|
|
- Upgrade to 1.2.6-1
|
|
|
|
* Wed Aug 16 2006 cthiel@suse.de
|
|
|
|
- split off package
|