diff options
-rw-r--r-- | eclass/pam.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/pam.eclass b/eclass/pam.eclass index 9a437684066d..59b5e21a7be5 100644 --- a/eclass/pam.eclass +++ b/eclass/pam.eclass @@ -1,7 +1,7 @@ # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # Author Diego Pettenò <flameeyes@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.3 2005/05/20 15:54:34 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.4 2005/06/04 19:01:11 flameeyes Exp $ # # This eclass contains functions to install pamd configuration files and # pam modules. @@ -71,10 +71,11 @@ newpamsecurity() { # # Returns the pam modules' directory for current implementation getpam_mod_dir() { - if has_version sys-libs/pam; then + if has_version sys-libs/pam || has_version sys-libs/openpam; then PAM_MOD_DIR=/$(get_libdir)/security - elif has_version sys-libs/openpam; then - PAM_MOD_DIR=/usr/$(get_libdir) + elif use ppc-macos; then + # OSX looks there for pam modules + PAM_MOD_DIR=/usr/lib/pam else # Unable to find PAM implementation... defaulting PAM_MOD_DIR=/$(get_libdir)/security @@ -127,7 +128,7 @@ pamd_mimic_system() { pamdfile=${D}/etc/pam.d/$1 echo -e "# File autogenerated by pamd_mimic_system in pam eclass\n\n" >> \ $pamdfile - + authlevels="auth account password session" shift |