From 5b5a173ff37c1e367d01bded96ac879289b7a88e Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 14 Jan 2011 15:03:57 -0500 Subject: [PATCH] Add Requires line for audit-libs >= 1.4 for RHEL5+ --- mkpkg | 1 + sudo.pp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/mkpkg b/mkpkg index 59d11a6d2..935cacb6f 100755 --- a/mkpkg +++ b/mkpkg @@ -96,6 +96,7 @@ case "$platform" in # RHEL 5 and up build pies and have audit support export CFLAGS="$F_PIE" LDFLAGS="-pie" configure_opts="${configure_opts}${configure_opts+$tab}--with-linux-audit" + PPVARS="${PPVARS}${PPVARS+$space}linux_audit=1.4.0" fi # Note, must indent with tabs, not spaces due to IFS trickery configure_opts="$configure_opts diff --git a/sudo.pp b/sudo.pp index b12a6edf0..29b5a9f59 100644 --- a/sudo.pp +++ b/sudo.pp @@ -46,6 +46,9 @@ still allow people to get their work done." pp_rpm_url="http://www.sudo.ws/" pp_rpm_group="Applications/System" pp_rpm_packager="Todd.Miller@courtesan.com" + if test -n "$linux_audit"; then + pp_rpm_requires="audit-libs >= $linux_audit" + fi pp_deb_maintainer="$pp_rpm_packager" pp_deb_release="$pp_rpm_release"