diff --git a/srcpkgs/audit/template b/srcpkgs/audit/template index 3f6c65a84f8..ef477e21ae1 100644 --- a/srcpkgs/audit/template +++ b/srcpkgs/audit/template @@ -1,7 +1,7 @@ # Template file for 'audit' pkgname=audit -version=3.1.4 -revision=3 +version=4.0.3 +revision=1 build_style=gnu-configure configure_args="--libdir=/usr/lib --enable-shared=audit --enable-gssapi-krb5 --with-apparmor --with-libcap-ng --with-python3" @@ -14,14 +14,24 @@ maintainer="Cameron Nemo " license="GPL-2.0-or-later, LGPL-2.0-or-later" homepage="https://people.redhat.com/sgrubb/audit" changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog" -distfiles="${homepage}/${pkgname}-${version}.tar.gz" -checksum=220a78cf35e6a7c57f42fcfc42b759692641c7e8e0e39c9844fbc0aa51783631 +distfiles="https://github.com/linux-audit/audit-userspace/archive/refs/tags/v${version}.tar.gz" +checksum=154b3e77b3d47be95f765376d45bb0d8952c06c361f2806b573ed0d8bd652372 case "$XBPS_TARGET_MACHINE" in *-musl) configure_args+=" --disable-zos-remote" ;; *) ;; esac +post_patch() { + # Test assumes gdm user is present + vsed -e 's/auid=42 (gdm)/auid=42 (unknown(42))/g' -i auparse/test/auparse_test.ref \ + -i auparse/test/auparse_test.ref.py +} + +pre_configure() { + autoreconf -fi +} + post_install() { vinstall rules/10-base-config.rules 644 etc/audit/rules.d vmkdir usr/share/examples/audit/rules.d