]> granicus.if.org Git - sudo/commitdiff
Add Requires line for audit-libs >= 1.4 for RHEL5+
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 14 Jan 2011 20:03:57 +0000 (15:03 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 14 Jan 2011 20:03:57 +0000 (15:03 -0500)
mkpkg
sudo.pp

diff --git a/mkpkg b/mkpkg
index 59d11a6d29a7696fd20e7c021ce7ea3e4ebd0de1..935cacb6f1fdbeaaf2e92ebe94552d2c09ffe7ce 100755 (executable)
--- 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 b12a6edf0a1bc46ea893a3fe05697301244ae651..29b5a9f59df484458367aa7a9a432ac743ba62a1 100644 (file)
--- 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"