2008-03-28 15:45:19 +01:00
|
|
|
#
|
2010-10-08 01:12:17 +02:00
|
|
|
# spec file for package audit-secondary (Version 2.0.5)
|
2008-03-28 15:45:19 +01:00
|
|
|
#
|
2010-01-14 15:25:16 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-03-28 15:45:19 +01:00
|
|
|
#
|
2008-08-06 01:41:00 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-03-28 15:45:19 +01:00
|
|
|
# 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
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%define _name audit
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
Name: audit-secondary
|
2010-05-05 20:41:24 +02:00
|
|
|
BuildRequires: gcc-c++ openldap2-devel pkg-config python-devel swig
|
2008-03-28 15:45:19 +01:00
|
|
|
Summary: Python Bindings for libaudit
|
2010-01-14 15:25:16 +01:00
|
|
|
License: GPLv2+
|
2008-03-28 15:45:19 +01:00
|
|
|
Group: System/Monitoring
|
2010-10-08 01:12:17 +02:00
|
|
|
Version: 2.0.5
|
|
|
|
Release: 1
|
2008-03-28 15:45:19 +01:00
|
|
|
Url: http://people.redhat.com/sgrubb/audit/
|
|
|
|
Source0: audit-%{version}.tar.bz2
|
2008-06-25 18:53:54 +02:00
|
|
|
Patch1: audit-plugins-path.patch
|
2010-05-05 20:41:24 +02:00
|
|
|
Requires: audit = %{version}
|
2008-03-28 15:45:19 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2010-05-05 20:41:24 +02:00
|
|
|
BuildRequires: audit-devel = %{version}
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
%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
|
2010-01-14 15:25:16 +01:00
|
|
|
License: GPLv2+
|
2008-03-28 15:45:19 +01:00
|
|
|
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
|
2010-01-14 15:25:16 +01:00
|
|
|
License: GPLv2+
|
2008-03-28 15:45:19 +01:00
|
|
|
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
|
2010-05-05 20:41:24 +02:00
|
|
|
%setup -q -n %{_name}-%{version}
|
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"
|
2010-05-05 20:41:24 +02:00
|
|
|
%configure --sbindir=/sbin \
|
|
|
|
--libdir=/%{_lib} --libexecdir=%{_prefix}/lib/%{name} \
|
|
|
|
--with-apparmor \
|
|
|
|
--disable-static --with-pic
|
2010-07-30 12:34:44 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2008-03-28 15:45:19 +01:00
|
|
|
|
|
|
|
%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
|
2008-09-29 17:28:30 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/_auparse.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/_auparse.la
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/auparse.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/auparse.la
|
2008-03-28 15:45:19 +01:00
|
|
|
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
|
|
|
|
|
2008-09-29 17:28:30 +02:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2008-03-28 15:45:19 +01:00
|
|
|
%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
|
2010-05-05 20:41:24 +02:00
|
|
|
%attr(750,root,root) %dir /etc/audisp
|
|
|
|
%attr(750,root,root) %dir /etc/audisp/plugins.d
|
2008-03-28 15:45:19 +01:00
|
|
|
%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
|