]> granicus.if.org Git - sudo/commitdiff
Fix building on RHEL 3
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 Aug 2011 19:25:56 +0000 (15:25 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 Aug 2011 19:25:56 +0000 (15:25 -0400)
--HG--
branch : 1.7

mkpkg

diff --git a/mkpkg b/mkpkg
index 3563ca301c73fc309ae9827a05ef12c2b14bf037..ca3b6b8bddc046916551246214cdd05e45e22d23 100755 (executable)
--- a/mkpkg
+++ b/mkpkg
@@ -121,6 +121,10 @@ fi
 case "$osversion" in
     centos*|rhel*)
        prefix=/usr
+       if [ $osrelease -ge 40 ]; then
+           # RHEL 4 and up support SELinux
+           configure_opts="${configure_opts}${configure_opts+$tab}--with-selinux"
+       fi
        if [ $osrelease -ge 50 ]; then
            # RHEL 5 and up build pies, have audit support and use a
            # separate PAM config file for "sudo -i".
@@ -140,7 +144,6 @@ case "$osversion" in
                --with-ignore-dot
                --with-tty-tickets
                --with-ldap
-               --with-selinux
                --with-passprompt=[sudo] password for %p: 
                $configure_opts"
        ;;