ff833c5c46
Application changes: - PAM, since present, is used by default. - Environment variable handling has changed significantly. - Sudo checks the user's supplemental group vector so nsswitch order is no longer important for group based rules. (See UPGRADE and CHANGING under share/doc/sudo/ for more.) Port changes: - PAM file is no longer clobered on reinstall. - OPIE option has been removed due to PAM being used by default. - Selected documentation is now installed.
16 lines
480 B
Bash
16 lines
480 B
Bash
#!/bin/sh
|
|
if [ $2 != "POST-INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
if [ -e ${PKG_PREFIX}/etc/sudoers ]; then
|
|
echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file."
|
|
else
|
|
cp -p ${PKG_PREFIX}/etc/sudoers.default ${PKG_PREFIX}/etc/sudoers
|
|
chmod 440 ${PKG_PREFIX}/etc/sudoers
|
|
fi
|
|
if [ -e ${PKG_PREFIX}/etc/pam.d/sudo ]; then
|
|
echo "Will not overwrite existing ${PKG_PREFIX}/etc/pam.d/sudo file."
|
|
else
|
|
cp -p ${PKG_PREFIX}/etc/pam.d/sudo.default ${PKG_PREFIX}/etc/pam.d/sudo
|
|
fi
|