Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions srcpkgs/audit/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -14,14 +14,24 @@ maintainer="Cameron Nemo <cam@nohom.org>"
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
Expand Down