]> granicus.if.org Git - sudo/commitdiff
Make sudoersdir relative to PKG_INSTALL_ROOT for Solaris.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Mar 2012 21:38:03 +0000 (17:38 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Mar 2012 21:38:03 +0000 (17:38 -0400)
sudo.pp

diff --git a/sudo.pp b/sudo.pp
index f846a8be5c96d44fbe5f92dff0960b6f7fa50729..3d0e060e2f21c7c2220428a0aa61492e24972904 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -234,7 +234,11 @@ still allow people to get their work done."
 
 %post [!rpm,deb]
        # Don't overwrite an existing sudoers file
+%if [solaris]
+       sudoersdir=${PKG_INSTALL_ROOT}%{sudoersdir}
+%else
        sudoersdir=%{sudoersdir}
+%endif
        if test ! -r $sudoersdir/sudoers; then
                cp $sudoersdir/sudoers.dist $sudoersdir/sudoers
                chmod %{sudoers_mode} $sudoersdir/sudoers