From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JRcNY-0004ci-Eh for garchives@archives.gentoo.org; Wed, 20 Feb 2008 00:00:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F417DE065A; Wed, 20 Feb 2008 00:00:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CD69DE064C for ; Wed, 20 Feb 2008 00:00:03 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 5B9AC65FB6 for ; Wed, 20 Feb 2008 00:00:03 +0000 (UTC) Received: from flameeyes by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JRcNW-00075j-9u for gentoo-commits@lists.gentoo.org; Wed, 20 Feb 2008 00:00:02 +0000 From: "Diego Petteno (flameeyes)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, flameeyes@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: pam.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: pam.eclass X-VCS-Directories: eclass X-VCS-Committer: flameeyes X-VCS-Committer-Name: Diego Petteno Content-Type: text/plain; charset=utf8 Message-Id: Sender: Diego Petteno Date: Wed, 20 Feb 2008 00:00:02 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6c572a62-6a2d-433d-8949-91a9eed0c317 X-Archives-Hash: fc435768f3e3e206c708c20346fdae1b flameeyes 08/02/20 00:00:02 Modified: pam.eclass Log: Replace pamd_mimic_system with a pamd_mimic function that takes as an argument the stack that it should mime. pamd_mimic_system is now a wrapper, which I should deprecated once I'm done with pambase. Revision Changes Path 1.15 eclass/pam.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/pam.eclass?= rev=3D1.15&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/pam.eclass?= rev=3D1.15&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/pam.eclass?= r1=3D1.14&r2=3D1.15 Index: pam.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- pam.eclass 4 Nov 2007 15:00:27 -0000 1.14 +++ pam.eclass 20 Feb 2008 00:00:01 -0000 1.15 @@ -1,7 +1,7 @@ # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or l= ater # Author Diego Petten=C3=B2 -# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.14 2007/11/04 1= 5:00:27 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.15 2008/02/20 0= 0:00:01 flameeyes Exp $ # # This eclass contains functions to install pamd configuration files and # pam modules. @@ -130,25 +130,35 @@ # for the given levels in the /etc/pam.d directory. pamd_mimic_system() { [[ $# -lt 2 ]] && die "pamd_mimic_system requires at least two argments= " + pamd_mimic system-auth "$@" +} + +# pamd_mimic [auth levels] +# +# This function creates a pamd file which mimics the given stack +# for the given levels in the /etc/pam.d directory. +pamd_mimic() { + [[ $# -lt 3 ]] && die "pamd_mimic requires at least three argments" =20 if hasq pam ${IUSE} && ! use pam; then return 0; fi =20 dodir /etc/pam.d - pamdfile=3D${D}/etc/pam.d/$1 - echo -e "# File autogenerated by pamd_mimic_system in pam eclass\n\n" >= > \ + pamdfile=3D${D}/etc/pam.d/$2 + echo -e "# File autogenerated by pamd_mimic in pam eclass\n\n" >> \ $pamdfile =20 + originalstack=3D$1 authlevels=3D"auth account password session" =20 if has_version '