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

Diff of /eclass/pam.eclass

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

Revision 1.2 Revision 1.3
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.2 2005/05/20 12:38:56 flameeyes Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.3 2005/05/20 15:54:34 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
18 18
19 if hasq pam ${IUSE} && ! use pam; then 19 if hasq pam ${IUSE} && ! use pam; then
20 return 0; 20 return 0;
21 fi 21 fi
22 22
23 insinto /etc/pam.d 23 INSDESTTREE=/etc/pam.d \
24 doins "$@" || die "failed to install $@" 24 doins "$@" || die "failed to install $@"
25} 25}
26 26
27# newpamd <old name> <new name> 27# newpamd <old name> <new name>
28# 28#
32 32
33 if hasq pam ${IUSE} && ! use pam; then 33 if hasq pam ${IUSE} && ! use pam; then
34 return 0; 34 return 0;
35 fi 35 fi
36 36
37 insinto /etc/pam.d 37 INSDESTTREE=/etc/pam.d \
38 newins "$1" "$2" || die "failed to install $1 as $2" 38 newins "$1" "$2" || die "failed to install $1 as $2"
39} 39}
40 40
41# dopamsecurity <section> <file> [more files] 41# dopamsecurity <section> <file> [more files]
42# 42#
46 46
47 if hasq pam ${IUSE} && ! use pam; then 47 if hasq pam ${IUSE} && ! use pam; then
48 return 0; 48 return 0;
49 fi 49 fi
50 50
51 insinto /etc/security/$1 51 INSDESTTREE=/etc/security/$1 \
52 shift 52 shift
53 doins "$@" || die "failed to install $@" 53 doins "$@" || die "failed to install $@"
54} 54}
55 55
56# newpamsecurity <section> <old name> <new name> 56# newpamsecurity <section> <old name> <new name>
61 61
62 if hasq pam ${IUSE} && ! use pam; then 62 if hasq pam ${IUSE} && ! use pam; then
63 return 0; 63 return 0;
64 fi 64 fi
65 65
66 insinto /etc/security/$1 66 INSDESTTREE=/etc/security/$1 \
67 newins "$2" "$3" || die "failed to install $2 as $3" 67 newins "$2" "$3" || die "failed to install $2 as $3"
68} 68}
69 69
70# getpam_mod_dir 70# getpam_mod_dir
71# 71#

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

  ViewVC Help
Powered by ViewVC 1.1.20