summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-06-04 19:01:11 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-06-04 19:01:11 +0000
commite52a8468567b37022731853fa086fab84f542c54 (patch)
tree83a9f3c20f9bc33628dc5dcc505841cfa2af56d4 /eclass/pam.eclass
parent~mips (diff)
downloadhistorical-e52a8468567b37022731853fa086fab84f542c54.tar.gz
historical-e52a8468567b37022731853fa086fab84f542c54.tar.bz2
historical-e52a8468567b37022731853fa086fab84f542c54.zip
Newer OpenPAM use the same layout as Linux-PAM. OSX uses /usr/lib/pam.
Diffstat (limited to 'eclass/pam.eclass')
-rw-r--r--eclass/pam.eclass11
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