|
@@ -5,8 +5,8 @@
|
|
|
|
|
|
Summary: User space tools for kernel auditing
|
|
|
Name: audit
|
|
|
-Version: 3.0.9
|
|
|
-Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
+Version: 3.1.1
|
|
|
+Release: 2%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
License: GPLv2+
|
|
|
Group: system,admin-tools
|
|
|
Distribution: Vine Linux
|
|
@@ -14,6 +14,8 @@ Vendor: Project Vine
|
|
|
|
|
|
URL: https://people.redhat.com/sgrubb/audit/
|
|
|
Source0: https://github.com/linux-audit/audit-userspace/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
+Patch1: audit-3.0.8-flex-array-workaround.patch
|
|
|
+Patch2: audit-3.0.8-undo-flex-array.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
BuildRequires: gettext intltool libtool swig
|
|
@@ -133,9 +135,13 @@ applications to use the audit framework.
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n audit-userspace-%{version}
|
|
|
+cp /usr/include/linux/audit.h lib/
|
|
|
+%patch1 -p1
|
|
|
|
|
|
autoreconf -vif
|
|
|
+
|
|
|
# Remove the ids code, its not ready
|
|
|
+sed -i 's/ ids / /' audisp/plugins/Makefile.am
|
|
|
sed -i 's/ ids / /' audisp/plugins/Makefile.in
|
|
|
|
|
|
|
|
@@ -188,6 +194,13 @@ mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
|
|
touch -r ./audit.spec $RPM_BUILD_ROOT/etc/libaudit.conf
|
|
|
touch -r ./audit.spec $RPM_BUILD_ROOT/usr/share/man/man5/libaudit.conf.5.gz
|
|
|
|
|
|
+# undo the workaround
|
|
|
+cur=`pwd`
|
|
|
+cd $RPM_BUILD_ROOT
|
|
|
+patch -p0 < %{PATCH2}
|
|
|
+find . -name '*.orig' -delete
|
|
|
+cd $cur
|
|
|
+
|
|
|
%if %{with systemd}
|
|
|
rm -rf %{buildroot}%{_libexecdir}/initscripts
|
|
|
rm -f %{buildroot}%{_libexecdir}/audit-functions
|
|
@@ -355,11 +368,13 @@ fi
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audit/plugins.d/syslog.conf
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audit/audisp-statsd.conf
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audit/plugins.d/au-statsd.conf
|
|
|
+%attr(750,root,root) /sbin/audisp-af_unix
|
|
|
%attr(750,root,root) /sbin/audisp-remote
|
|
|
%attr(750,root,root) /sbin/audisp-syslog
|
|
|
%attr(750,root,root) /sbin/audisp-statsd
|
|
|
%attr(700,root,root) %dir %{_var}/spool/audit
|
|
|
%attr(644,root,root) %{_mandir}/man5/audisp-remote.conf.5.gz
|
|
|
+%attr(644,root,root) %{_mandir}/man8/audisp-af_unix.8.gz
|
|
|
%attr(644,root,root) %{_mandir}/man8/audisp-remote.8.gz
|
|
|
%attr(644,root,root) %{_mandir}/man8/audisp-syslog.8.gz
|
|
|
%attr(644,root,root) %{_mandir}/man8/audisp-statsd.8.gz
|
|
@@ -382,6 +397,16 @@ fi
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed May 03 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.1-2
|
|
|
+- imported Patch2 from rawhide.
|
|
|
+
|
|
|
+* Sat Apr 29 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.1-1
|
|
|
+- new upstream release.
|
|
|
+- imported Patch1 from rawhide.
|
|
|
+
|
|
|
+* Fri Feb 10 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Tue Aug 30 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.9-1
|
|
|
- new upstream release.
|
|
|
|