2024-01-05 20:40:14 +01:00
|
|
|
Name: audit
|
2024-01-05 20:40:15 +01:00
|
|
|
Version: 2.7.5
|
2024-01-05 20:40:15 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 20:40:14 +01:00
|
|
|
Summary: User space tools for kernel auditing
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://people.redhat.com/sgrubb/audit
|
|
|
|
Source: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: libaudit-2.6.6-usrsbin.patch
|
|
|
|
License: GPL, LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libcap-ng-devel
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgmp-devel
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: libgpg-error-devel
|
|
|
|
BuildRequires: libkrb5-devel
|
|
|
|
BuildRequires: libltdl-devel
|
|
|
|
BuildRequires: libnettle-devel
|
|
|
|
BuildRequires: libopenldap-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libp11-kit-devel
|
|
|
|
BuildRequires: libprelude-devel
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
BuildRequires: libsasl2-devel
|
|
|
|
BuildRequires: libtasn1-devel
|
|
|
|
BuildRequires: libwrap-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
BuildRequires: trousers-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gcc-go
|
|
|
|
BuildRequires: libgo-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: swig
|
|
|
|
%systemd_requires
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%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}
|
2024-01-05 20:40:14 +01:00
|
|
|
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-05 20:40:14 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-05 20:40:14 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package plugins
|
|
|
|
Group: System/Tools
|
|
|
|
Summary: Plugins for the audit event dispatcher
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 20:40:14 +01:00
|
|
|
Requires: libaudit = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 20:40:14 +01:00
|
|
|
#Requires: openldap
|
|
|
|
|
|
|
|
%description plugins
|
|
|
|
The audispd-plugins package provides plugins for the real-time interface to the audit system, audispd. These plugins can do things like relay events to remote machines or analyze events for suspicious behavior.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 20:40:15 +01:00
|
|
|
#%patch0 -p1
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#autoreconf -v --install
|
|
|
|
%configure \
|
|
|
|
--with-prelude \
|
|
|
|
--with-libwrap \
|
|
|
|
--enable-gssapi-krb5=yes \
|
|
|
|
--with-libcap-ng=yes \
|
|
|
|
--with-python=yes \
|
2024-01-05 20:40:15 +01:00
|
|
|
--enable-systemd=yes \
|
|
|
|
--bindir=/bin \
|
|
|
|
--sbindir=/sbin
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
%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}/audisp
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audispd.conf
|
|
|
|
%attr(750,root,root) %dir %{_sysconfdir}/audisp/plugins.d
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/af_unix.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/syslog.conf
|
|
|
|
%attr(750,root,root) %dir %{_sysconfdir}/audit
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/audit-stop.rules
|
|
|
|
#%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/rules.d/audit.rules
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
|
|
|
|
%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
|
2024-01-05 20:40:15 +01:00
|
|
|
%attr(750,root,root) /sbin/audispd
|
|
|
|
%attr(750,root,root) /sbin/auditctl
|
|
|
|
%attr(750,root,root) /sbin/auditd
|
|
|
|
%attr(750,root,root) /sbin/augenrules
|
|
|
|
%attr(750,root,root) /sbin/aureport
|
|
|
|
%attr(750,root,root) /sbin/ausearch
|
|
|
|
%attr(750,root,root) /sbin/autrace
|
|
|
|
%attr(755,root,root) /bin/aulast
|
|
|
|
%attr(755,root,root) /bin/aulastlog
|
|
|
|
%attr(755,root,root) /bin/ausyscall
|
|
|
|
%attr(750,root,root) /bin/auvirt
|
2024-01-05 20:40:14 +01:00
|
|
|
%dir %{_prefix}/lib/golang/src/pkg/redhat.com/audit
|
|
|
|
%{_mandir}/man5/audispd.conf.5*
|
|
|
|
%{_mandir}/man5/auditd.conf.5*
|
|
|
|
%{_mandir}/man5/ausearch-expression.5*
|
|
|
|
%{_mandir}/man7/*.7*
|
|
|
|
%{_mandir}/man8/audispd.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.*
|
|
|
|
%{_mandir}/man5/libaudit.conf.5*
|
2024-01-05 20:40:15 +01:00
|
|
|
#%doc AUTHORS COPYING
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
%{_prefix}/lib/golang/src/pkg/redhat.com/audit/audit.go
|
|
|
|
%{_datadir}/aclocal/audit.m4
|
|
|
|
%{_mandir}/man3/*.3.gz
|
2024-01-05 20:40:15 +01:00
|
|
|
#%doc contrib/skeleton.c contrib/plugin
|
|
|
|
#%doc ChangeLog README THANKS TODO
|
2024-01-05 20:40:14 +01:00
|
|
|
|
|
|
|
%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_sitearch}/_audit.*
|
|
|
|
%{python3_sitearch}/audit.py
|
2024-01-05 20:40:15 +01:00
|
|
|
%{python3_sitearch}/__pycache__/audit.cpython-33.pyc
|
|
|
|
%{python3_sitearch}/__pycache__/audit.cpython-33.pyo
|
2024-01-05 20:40:14 +01:00
|
|
|
%{python3_sitearch}/auparse.*
|
|
|
|
|
|
|
|
%files plugins
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/audispd-zos-remote.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/zos-remote.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audisp-prelude.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-prelude.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audisp-remote.conf
|
|
|
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-remote.conf
|
2024-01-05 20:40:15 +01:00
|
|
|
%attr(750,root,root) /sbin/audispd-zos-remote
|
|
|
|
%attr(750,root,root) /sbin/audisp-prelude
|
|
|
|
%attr(750,root,root) /sbin/audisp-remote
|
2024-01-05 20:40:14 +01:00
|
|
|
%{_mandir}/man5/zos-remote.conf.5*
|
|
|
|
%{_mandir}/man8/audispd-zos-remote.8*
|
|
|
|
%{_mandir}/man5/audisp-prelude.conf.5*
|
|
|
|
%{_mandir}/man8/audisp-prelude.8*
|
|
|
|
%{_mandir}/man5/audisp-remote.conf.5*
|
|
|
|
%{_mandir}/man8/audisp-remote.8*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:40:15 +01:00
|
|
|
* Fri Apr 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.5-2mamba
|
|
|
|
- rebuilt with root installatiion prefix (/bin, /sbin)
|
|
|
|
|
2024-01-05 20:40:15 +01:00
|
|
|
* Tue Apr 11 2017 Automatic Build System <autodist@mambasoft.it> 2.7.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:40:15 +01:00
|
|
|
* Mon Apr 10 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.7.4-1mamba
|
|
|
|
- update to 2.7.4
|
|
|
|
|
2024-01-05 20:40:14 +01:00
|
|
|
* Fri Oct 07 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7-4mamba
|
|
|
|
- libaudit-static: require libaudit-devel instead of audit-devel
|
|
|
|
|
2024-01-05 20:40:14 +01:00
|
|
|
* 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
|