From: Todd C. Miller Date: Fri, 14 Jan 2011 20:03:57 +0000 (-0500) Subject: Add Requires line for audit-libs >= 1.4 for RHEL5+ X-Git-Tag: SUDO_1_8_0~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b5a173ff37c1e367d01bded96ac879289b7a88e;p=sudo Add Requires line for audit-libs >= 1.4 for RHEL5+ --- 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"