/[gentoo-x86]/eclass/pam.eclass
Gentoo

Diff of /eclass/pam.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 2004 Gentoo Foundation 1# Copyright 2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author Diego Pettenò <flameeyes@gentoo.org> 3# Author Diego Pettenò <flameeyes@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.3 2005/05/20 15:54:34 flameeyes Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.4 2005/06/04 19:01:11 flameeyes Exp $
5# 5#
6# This eclass contains functions to install pamd configuration files and 6# This eclass contains functions to install pamd configuration files and
7# pam modules. 7# pam modules.
8 8
9inherit multilib 9inherit multilib
69 69
70# getpam_mod_dir 70# getpam_mod_dir
71# 71#
72# Returns the pam modules' directory for current implementation 72# Returns the pam modules' directory for current implementation
73getpam_mod_dir() { 73getpam_mod_dir() {
74 if has_version sys-libs/pam; then 74 if has_version sys-libs/pam || has_version sys-libs/openpam; then
75 PAM_MOD_DIR=/$(get_libdir)/security 75 PAM_MOD_DIR=/$(get_libdir)/security
76 elif has_version sys-libs/openpam; then 76 elif use ppc-macos; then
77 # OSX looks there for pam modules
77 PAM_MOD_DIR=/usr/$(get_libdir) 78 PAM_MOD_DIR=/usr/lib/pam
78 else 79 else
79 # Unable to find PAM implementation... defaulting 80 # Unable to find PAM implementation... defaulting
80 PAM_MOD_DIR=/$(get_libdir)/security 81 PAM_MOD_DIR=/$(get_libdir)/security
81 fi 82 fi
82 83
125 126
126 dodir /etc/pam.d 127 dodir /etc/pam.d
127 pamdfile=${D}/etc/pam.d/$1 128 pamdfile=${D}/etc/pam.d/$1
128 echo -e "# File autogenerated by pamd_mimic_system in pam eclass\n\n" >> \ 129 echo -e "# File autogenerated by pamd_mimic_system in pam eclass\n\n" >> \
129 $pamdfile 130 $pamdfile
130 131
131 authlevels="auth account password session" 132 authlevels="auth account password session"
132 133
133 shift 134 shift
134 135
135 while [[ -n $1 ]]; do 136 while [[ -n $1 ]]; do

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20