2007-01-15 23:51:54 +01:00
|
|
|
#
|
2011-02-21 14:53:49 +01:00
|
|
|
# spec file for package audit
|
2007-01-15 23:51:54 +01:00
|
|
|
#
|
2015-09-05 00:09:27 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:51:54 +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.
|
|
|
|
|
2007-01-15 23:51:54 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: audit
|
2013-06-28 10:51:36 +02:00
|
|
|
Summary: First part of auditing package
|
2012-02-29 19:06:19 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-15 23:51:54 +01:00
|
|
|
Group: System/Monitoring
|
2015-09-05 00:09:27 +02:00
|
|
|
Version: 2.4.4
|
2012-02-29 19:06:19 +01:00
|
|
|
Release: 0
|
2007-10-11 18:47:28 +02:00
|
|
|
Url: http://people.redhat.com/sgrubb/audit/
|
2012-10-12 15:06:39 +02:00
|
|
|
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
|
2013-12-04 08:41:29 +01:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Source2: README-BEFORE-ADDING-PATCHES
|
2007-01-15 23:51:54 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-01-22 15:09:24 +01:00
|
|
|
BuildRequires: autoconf >= 2.12
|
|
|
|
BuildRequires: gcc-c++
|
2013-03-26 09:57:41 +01:00
|
|
|
BuildRequires: kernel-headers >= 2.6.30
|
2013-01-22 15:09:24 +01:00
|
|
|
BuildRequires: libtool
|
2015-09-05 00:09:27 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-01-22 15:09:24 +01:00
|
|
|
BuildRequires: tcpd-devel
|
2010-05-05 20:41:24 +02:00
|
|
|
Requires: %{name}-libs = %{version}
|
2007-01-15 23:51:54 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The audit package contains the user space utilities for storing and
|
|
|
|
processing the audit records generated by the audit subsystem in the
|
|
|
|
Linux 2.6 kernel.
|
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%package -n libaudit1
|
2007-01-15 23:51:54 +01:00
|
|
|
Summary: Dynamic library for libaudit
|
2012-02-29 19:06:19 +01:00
|
|
|
License: LGPL-2.1+
|
2007-01-15 23:51:54 +01:00
|
|
|
Group: System/Monitoring
|
2010-05-05 20:41:24 +02:00
|
|
|
Obsoletes: %{name}-libs < 2.0.4
|
|
|
|
Provides: %{name}-libs = %{version}
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%description -n libaudit1
|
|
|
|
The libaudit package contains the dynamic libraries needed for
|
2007-01-15 23:51:54 +01:00
|
|
|
applications to use the audit framework.
|
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%package -n libauparse0
|
|
|
|
Summary: Dynamic library for libauparse
|
2012-02-29 19:06:19 +01:00
|
|
|
License: LGPL-2.1+
|
2010-05-05 20:41:24 +02:00
|
|
|
Group: System/Monitoring
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%description -n libauparse0
|
|
|
|
The libauparse package contains the dynamic libraries needed to
|
|
|
|
parse audit records.
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2013-06-28 10:51:36 +02:00
|
|
|
%package -n audit-devel
|
2007-01-15 23:51:54 +01:00
|
|
|
Summary: Header files and static library for libaudit
|
2012-02-29 19:06:19 +01:00
|
|
|
License: LGPL-2.1+
|
2008-03-28 15:45:19 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-05-05 20:41:24 +02:00
|
|
|
Requires: libaudit1 = %{version}
|
|
|
|
Requires: libauparse0 = %{version}
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2013-06-28 10:51:36 +02:00
|
|
|
%description -n audit-devel
|
2007-01-15 23:51:54 +01:00
|
|
|
The audit-devel package contains the static libraries and header files
|
|
|
|
needed for developing applications that need to use the audit framework
|
|
|
|
libraries.
|
|
|
|
|
|
|
|
%prep
|
2013-06-28 10:51:36 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2007-01-15 23:51:54 +01:00
|
|
|
|
|
|
|
%build
|
2008-03-19 11:57:31 +01:00
|
|
|
autoreconf -fi
|
2007-01-15 23:51:54 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2010-11-09 13:34:18 +01:00
|
|
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
2009-06-05 22:36:33 +02:00
|
|
|
# no krb support (omit --enable-gssapi-krb5=yes), see audit-no-gss.patch
|
2013-01-31 13:22:54 +01:00
|
|
|
%configure --enable-systemd --libexecdir=%{_prefix}/lib/%{name} \
|
2013-06-28 11:31:27 +02:00
|
|
|
--with-apparmor --with-libwrap --without-libcap-ng \
|
2012-10-12 15:06:39 +02:00
|
|
|
--disable-static --with-pic --without-python
|
2013-06-28 10:51:36 +02:00
|
|
|
(cd lib ; %{__make} %{?_smp_mflags})
|
|
|
|
(cd auparse ; %{__make} %{?_smp_mflags})
|
|
|
|
(cd docs ; %{__make} %{?_smp_mflags})
|
2007-01-15 23:51:54 +01:00
|
|
|
|
|
|
|
%install
|
2013-06-28 10:51:36 +02:00
|
|
|
(cd lib ; make DESTDIR=$RPM_BUILD_ROOT install)
|
|
|
|
(cd auparse ; make DESTDIR=$RPM_BUILD_ROOT install)
|
|
|
|
(cd docs ; make DESTDIR=$RPM_BUILD_ROOT install)
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_mandir}/man[578]
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
2007-01-15 23:51:54 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
|
2013-06-28 10:51:36 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5
|
2007-01-15 23:51:54 +01:00
|
|
|
# We manually install this since Makefile doesn't
|
|
|
|
install -m 0644 lib/libaudit.h $RPM_BUILD_ROOT/%{_includedir}
|
2013-06-28 10:51:36 +02:00
|
|
|
# Install libaudit.conf files by hand
|
|
|
|
install -m 0644 docs/libaudit.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
install -m 0644 init.d/libaudit.conf $RPM_BUILD_ROOT/etc
|
2010-05-05 20:41:24 +02:00
|
|
|
|
2013-06-28 10:51:36 +02:00
|
|
|
%{__rm} -fv %{buildroot}/%{_libdir}/lib{audit,auparse}.la
|
2010-05-05 20:41:23 +02:00
|
|
|
|
2008-09-29 17:28:30 +02:00
|
|
|
%check
|
2013-06-28 10:51:36 +02:00
|
|
|
(cd lib ; make check)
|
|
|
|
(cd auparse ; make check)
|
2008-09-29 17:28:30 +02:00
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%post -n libaudit1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libauparse0 -p /sbin/ldconfig
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%postun -n libaudit1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libauparse0 -p /sbin/ldconfig
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2010-05-05 20:41:24 +02:00
|
|
|
%files -n libaudit1
|
2007-01-15 23:51:54 +01:00
|
|
|
%defattr(-,root,root)
|
2012-10-12 15:06:39 +02:00
|
|
|
%{_libdir}/libaudit.so.*
|
2010-05-05 20:41:23 +02:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/libaudit.conf
|
2013-06-28 10:51:36 +02:00
|
|
|
%{_mandir}/man5/libaudit.conf.5.gz
|
2010-05-05 20:41:24 +02:00
|
|
|
|
|
|
|
%files -n libauparse0
|
|
|
|
%defattr(-,root,root)
|
2012-10-12 15:06:39 +02:00
|
|
|
%{_libdir}/libauparse.so.*
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2013-06-28 10:51:36 +02:00
|
|
|
%files -n audit-devel
|
2007-01-15 23:51:54 +01:00
|
|
|
%defattr(-,root,root)
|
2008-03-28 15:45:19 +01:00
|
|
|
%doc contrib/skeleton.c contrib/plugin
|
2012-10-12 15:06:39 +02:00
|
|
|
%{_libdir}/libaudit.so
|
|
|
|
%{_libdir}/libauparse.so
|
2007-01-15 23:51:54 +01:00
|
|
|
%{_includedir}/libaudit.h
|
2007-05-06 17:10:42 +02:00
|
|
|
%{_includedir}/auparse.h
|
|
|
|
%{_includedir}/auparse-defs.h
|
2007-01-15 23:51:54 +01:00
|
|
|
%{_mandir}/man3/*
|
2014-09-03 01:07:21 +02:00
|
|
|
%{_libdir}/pkgconfig/audit.pc
|
2015-09-05 00:09:27 +02:00
|
|
|
%{_libdir}/pkgconfig/auparse.pc
|
2007-01-15 23:51:54 +01:00
|
|
|
|
2007-05-06 17:10:42 +02:00
|
|
|
%changelog
|