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

Diff of /eclass/pam.eclass

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

Revision 1.9 Revision 1.10
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.9 2005/09/09 10:31:35 flameeyes Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.10 2005/11/03 21:27:02 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
17 if hasq pam ${IUSE} && ! use pam; then 17 if hasq pam ${IUSE} && ! use pam; then
18 return 0; 18 return 0;
19 fi 19 fi
20 20
21 INSDESTTREE=/etc/pam.d \ 21 INSDESTTREE=/etc/pam.d \
22 INSOPTIONS="-m 0644" \
22 doins "$@" || die "failed to install $@" 23 doins "$@" || die "failed to install $@"
23 cleanpamd "$@" 24 cleanpamd "$@"
24} 25}
25 26
26# newpamd <old name> <new name> 27# newpamd <old name> <new name>
32 if hasq pam ${IUSE} && ! use pam; then 33 if hasq pam ${IUSE} && ! use pam; then
33 return 0; 34 return 0;
34 fi 35 fi
35 36
36 INSDESTTREE=/etc/pam.d \ 37 INSDESTTREE=/etc/pam.d \
38 INSOPTIONS="-m 0644" \
37 newins "$1" "$2" || die "failed to install $1 as $2" 39 newins "$1" "$2" || die "failed to install $1 as $2"
38 cleanpamd $2 40 cleanpamd $2
39} 41}
40 42
41# dopamsecurity <section> <file> [more files] 43# dopamsecurity <section> <file> [more files]
47 if hasq pam ${IUSE} && ! use pam; then 49 if hasq pam ${IUSE} && ! use pam; then
48 return 0; 50 return 0;
49 fi 51 fi
50 52
51 INSDESTTREE=/etc/security/$1 \ 53 INSDESTTREE=/etc/security/$1 \
54 INSOPTIONS="-m 0644" \
52 doins "${@:2}" || die "failed to install ${@:2}" 55 doins "${@:2}" || die "failed to install ${@:2}"
53} 56}
54 57
55# newpamsecurity <section> <old name> <new name> 58# newpamsecurity <section> <old name> <new name>
56# 59#
61 if hasq pam ${IUSE} && ! use pam; then 64 if hasq pam ${IUSE} && ! use pam; then
62 return 0; 65 return 0;
63 fi 66 fi
64 67
65 INSDESTTREE=/etc/security/$1 \ 68 INSDESTTREE=/etc/security/$1 \
69 INSOPTIONS="-m 0644" \
66 newins "$2" "$3" || die "failed to install $2 as $3" 70 newins "$2" "$3" || die "failed to install $2 as $3"
67} 71}
68 72
69# getpam_mod_dir 73# getpam_mod_dir
70# 74#

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20