audit/audit.spec

396 lines
13 KiB
RPMSpec
Raw Permalink Normal View History

Name: audit
Version: 3.0.9
Release: 1mamba
Summary: User space tools for kernel auditing
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://people.redhat.com/sgrubb/audit/
Source: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
Patch0: audit-3.0-usrsbin.patch
Patch1: audit-2.8.4-rundir.patch
License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcap-ng-devel
BuildRequires: libe2fs-devel
BuildRequires: libkrb5-devel
BuildRequires: libnsl-devel
BuildRequires: libopenldap-devel
BuildRequires: libopenssl-devel
BuildRequires: libpython3-devel
BuildRequires: libsasl2-devel
BuildRequires: libtirpc-devel
BuildRequires: libwrap-devel
## AUTOBUILDREQ-END
BuildRequires: gcc-go
BuildRequires: libgo-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: swig
BuildRequires: libprelude-devel >= 5.2.0
%systemd_requires
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: audit-plugins
Obsoletes: audit-plugins < 3.0
%description
The audit package contains the user space utilities for storing and searching the audit records generate by the audit subsystem in the Linux 2.6+ kernel.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n lib%{name}-static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-static
This package contains the static libraries needed for developing applications that need to use static %{name} framework libraries.
%package -n python-audit
Summary: Python bindings for libaudit
Group: Development/Libraries/Python
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-audit
The python-audit package contains the bindings so that libaudit and libauparse can be used by python.
%package -n python-audit-py3
Group: Development/Libraries
Summary: Python3 bindings to %{name}
Requires: python3
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: python-audit < 3.0.8
%description -n python-audit-py3
The python-audit package containts Python 3 bindings to %{name}.
The libaudit-devel package contains the header files needed for developing applications that need to use the audit framework libraries.
%debug_package
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
%build
#autoreconf -v --install
%configure \
--with-prelude \
--with-libwrap \
--enable-gssapi-krb5=yes \
--with-libcap-ng=yes \
--with-python=no \
--with-python3=yes \
--enable-systemd=yes \
CFLAGS="%{optflags} -fcommon" \
%ifarch arm
--with-arm \
%endif
%ifarch aarch64
--with-aarch64 \
%endif
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_localstatedir}/log/audit
%makeinstall \
initdir=%{_unitdir}
#rm -f %{buildroot}%{python_sitearch}/_audit.a
#rm -f %{buildroot}%{python_sitearch}/_audit.la
#rm -f %{buildroot}%{python_sitearch}/_auparse.a
#rm -f %{buildroot}%{python_sitearch}/_auparse.la
#rm -f %{buildroot}%{python_sitearch}/auparse.a
#rm -f %{buildroot}%{python_sitearch}/auparse.la
install -d -m 0755 %{buildroot}%{_sysconfdir}/audit/rules.d
%check
make check
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -gt 1 ]; then
# fix /sbin -> /usr/sbin paths on upgrade
sed -i "s|path = /sbin/|path = /usr/sbin/|" %{_sysconfdir}/audit/plugins.d/*.conf
fi
%systemd_post auditd
if [ $1 -eq 1 -o -e /etc/rc5.d/S11auditd ]; then
systemctl -q daemon-reload
systemctl -q enable auditd
fi
:
%preun
%systemd_preun auditd
:
%postun
%systemd_postun auditd
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%posttrans -n lib%{name}
# clean broken old sysv links
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
:
%files
%defattr(-,root,root)
%attr(750,root,root) %dir %{_sysconfdir}/audit
%config(noreplace) %{_sysconfdir}/audit/audisp-remote.conf
%{_sysconfdir}/audit/plugins.d/af_unix.conf
%{_sysconfdir}/audit/plugins.d/au-remote.conf
%{_sysconfdir}/audit/plugins.d/audispd-zos-remote.conf
%{_sysconfdir}/audit/plugins.d/syslog.conf
%{_sysconfdir}/audit/zos-remote.conf
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/audit-stop.rules
%dir %{_sysconfdir}/audit/rules.d
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
%dir %{_datadir}/audit/sample-rules
%{_datadir}/audit/sample-rules/*.rules
%{_datadir}/audit/sample-rules/README-rules
%attr(644,root,root) %{_unitdir}/auditd.service
%dir %{_libexecdir}/initscripts/legacy-actions/auditd
%{_libexecdir}/initscripts/legacy-actions/auditd/*
%attr(750,root,root) %dir %{_localstatedir}/log/audit
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
%attr(750,root,root) %{_sbindir}/audisp-remote
%attr(750,root,root) %{_sbindir}/audisp-syslog
%attr(750,root,root) %{_sbindir}/auditctl
%attr(750,root,root) %{_sbindir}/auditd
%attr(750,root,root) %{_sbindir}/augenrules
%attr(750,root,root) %{_sbindir}/aureport
%attr(750,root,root) %{_sbindir}/ausearch
%attr(750,root,root) %{_sbindir}/autrace
%attr(755,root,root) %{_bindir}/aulast
%attr(755,root,root) %{_bindir}/aulastlog
%attr(755,root,root) %{_bindir}/ausyscall
%attr(750,root,root) %{_bindir}/auvirt
%{_mandir}/man5/auditd.conf.5*
%{_mandir}/man5/ausearch-expression.5*
%{_mandir}/man5/auditd-plugins.5*
%{_mandir}/man5/zos-remote.conf.5*
%{_mandir}/man7/*.7*
%{_mandir}/man5/audisp-remote.conf.5*
%{_mandir}/man5/libaudit.conf.5*
%{_mandir}/man8/audispd-zos-remote.8*
%{_mandir}/man8/audisp-remote.8*
%{_mandir}/man8/audisp-syslog.8*
%{_mandir}/man8/auditctl.8*
%{_mandir}/man8/auditd.8*
%{_mandir}/man8/augenrules.8*
%{_mandir}/man8/aulast.8*
%{_mandir}/man8/aulastlog.8*
%{_mandir}/man8/aureport.8*
%{_mandir}/man8/ausearch.8*
%{_mandir}/man8/ausyscall.8*
%{_mandir}/man8/autrace.8*
%{_mandir}/man8/auvirt.8*
%files -n lib%{name}
%defattr(-,root,root)
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf
%{_libdir}/libaudit.so.*
%{_libdir}/libauparse.so.*
%{_libexecdir}/audit-functions
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/auparse-defs.h
%{_includedir}/auparse.h
%{_includedir}/libaudit.h
%{_libdir}/libaudit.so
%{_libdir}/libauparse.so
%{_libdir}/libaudit.la
%{_libdir}/libauparse.la
%{_libdir}/pkgconfig/auparse.pc
%{_libdir}/pkgconfig/audit.pc
%ifnarch arm
%dir %{_prefix}/lib/golang/src/pkg/redhat.com/audit
%{_prefix}/lib/golang/src/pkg/redhat.com/audit/audit.go
%endif
%{_datadir}/aclocal/audit.m4
%{_mandir}/man3/*.3*
#%doc contrib/skeleton.c contrib/plugin
#%doc ChangeLog README THANKS TODO
%files -n lib%{name}-static
%defattr(-,root,root)
%{_libdir}/libaudit.a
%{_libdir}/libauparse.a
#%files -n python-audit
#%defattr(-,root,root)
#%{python_sitearch}/_audit.*
#%{python_sitearch}/audit.py*
#%{python_sitearch}/auparse.*
%files -n python-audit-py3
%defattr(-,root,root)
%{python3_sitelib}/_audit.*
%{python3_sitelib}/audit.py
%{python3_sitelib}/__pycache__/audit.cpython-*.pyc
%{python3_sitelib}/auparse.*
%changelog
* Tue Aug 30 2022 Automatic Build System <autodist@mambasoft.it> 3.0.9-1mamba
- automatic version update by autodist
* Sat Apr 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.8-1mamba
- update to 3.0.8
* Tue Jan 25 2022 Automatic Build System <autodist@mambasoft.it> 3.0.7-1mamba
- automatic version update by autodist
* Mon Nov 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.6-2mamba
- audit: added versioned requirement for libaudit
* Sun Oct 03 2021 Automatic Build System <autodist@mambasoft.it> 3.0.6-1mamba
- automatic version update by autodist
* Tue Aug 24 2021 Automatic Build System <autodist@mambasoft.it> 3.0.5-1mamba
- automatic version update by autodist
* Sun Feb 14 2021 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
- automatic version update by autodist
* Sat Feb 13 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0-2mamba
- reapply /usr/sbin patch
* Tue Feb 09 2021 Automatic Build System <autodist@mambasoft.it> 3.0-1mamba
- automatic version update by autodist
* Sun Dec 20 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.5-2mamba
- rebuilt with debug package and libprelude 5.2.0
* Mon May 27 2019 Automatic Build System <autodist@mambasoft.it> 2.8.5-1mamba
- automatic version update by autodist
* Sat Jan 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-4mamba
- apply path for /usr/sbin and rundir under /run
* Fri Jan 04 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-3mamba
- other fix for auditd.service /usr/sbin path instead of /sbin
* Sun Dec 30 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-2mamba
- install binaries under /usr/sbin and /usr/bin
* Wed Sep 12 2018 Automatic Build System <autodist@mambasoft.it> 2.8.4-1mamba
- automatic version update by autodist
* Thu Mar 15 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.3-1mamba
- update to 2.8.3
* Tue Dec 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.2-1mamba
- update to 2.8.2
* Sat Nov 18 2017 Automatic Build System <autodist@mambasoft.it> 2.8.1-1mamba
- automatic update by autodist
* Tue May 02 2017 Automatic Build System <autodist@mambasoft.it> 2.7.6-1mamba
- automatic version update by autodist
* Fri Apr 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.5-2mamba
- rebuilt with root installatiion prefix (/bin, /sbin)
* Tue Apr 11 2017 Automatic Build System <autodist@mambasoft.it> 2.7.5-1mamba
- automatic version update by autodist
* Mon Apr 10 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.7.4-1mamba
- update to 2.7.4
* Fri Oct 07 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7-4mamba
- libaudit-static: require libaudit-devel instead of audit-devel
* Thu Sep 22 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7-3mamba
- specfile was not renamed (webbuild rename function does this correctly)
* Wed Sep 21 2016 Davide Madrisan <davide.madrisan@gmail.com> 2.6.7-2mamba
- move audit.go from main to devel package
- rename package from libaudit to audit
* Mon Sep 19 2016 Automatic Build System <autodist@mambasoft.it> 2.6.7-1mamba
- automatic update by autodist
* Mon Aug 22 2016 Automatic Build System <autodist@mambasoft.it> 2.6.6-1mamba
- automatic version update by autodist
* Wed Dec 02 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.4-2mamba
- patch systemd service files for /usr/sbin instead of /sbin
* Sun Nov 15 2015 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
- automatic version update by autodist
* Thu May 07 2015 Automatic Build System <autodist@mambasoft.it> 2.4.2-1mamba
- automatic update by autodist
* Fri Mar 06 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.1-3mamba
- set auditd.service world readable to silence systemd warning
* Sat Feb 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.1-2mamba
- rebuilt with systemd support and --enable-gssapi-krb5=yes
* Mon Nov 03 2014 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
- automatic version update by autodist
* Mon Oct 13 2014 Automatic Build System <autodist@mambasoft.it> 2.4-1mamba
- automatic update by autodist
* Sun Jul 13 2014 Automatic Build System <autodist@mambasoft.it> 2.3.7-1mamba
- automatic update by autodist
* Tue Jun 03 2014 Automatic Build System <autodist@mambasoft.it> 2.3.6-1mamba
- automatic update by autodist
* Sun Feb 23 2014 Automatic Build System <autodist@mambasoft.it> 2.3.3-1mamba
- automatic update by autodist
* Sun Aug 11 2013 Automatic Build System <autodist@mambasoft.it> 2.3.2-1mamba
- automatic update by autodist
* Sun Jun 09 2013 Automatic Build System <autodist@mambasoft.it> 2.3.1-1mamba
- automatic version update by autodist
* Tue May 21 2013 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
- automatic version update by autodist
* Thu Mar 21 2013 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
- automatic version update by autodist
* Sun Dec 30 2012 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
- automatic version update by autodist
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
- automatic version update by autodist
* Wed Nov 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-1mamba
- update to 2.1.3
* Wed Dec 08 2010 gil <puntogil@libero.it> 2.0.5-1mamba
- package created by autospec