From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 85B6C13800E for ; Sun, 5 Aug 2012 15:34:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FCE2E030B; Sun, 5 Aug 2012 15:34:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 20ED9E030B for ; Sun, 5 Aug 2012 15:34:23 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58F4D1B4019 for ; Sun, 5 Aug 2012 15:34:22 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2264) id 0147F2004B; Sun, 5 Aug 2012 15:34:20 +0000 (UTC) From: "Justin Lecher (jlec)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, jlec@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: jlec X-VCS-Committer-Name: Justin Lecher Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20120805153421.0147F2004B@flycatcher.gentoo.org> Date: Sun, 5 Aug 2012 15:34:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: de3fdcce-5992-4e1e-9d65-ea69cb48225b X-Archives-Hash: 86f6389caf6328c927698698b9af389c jlec 12/08/05 15:34:20 Modified: pam.eclass Log: Add magic needed for app-portage/eclass-manpages to pam.eclass, changes approved by author Revision Changes Path 1.23 eclass/pam.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/pam.eclass?rev=1.23&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/pam.eclass?rev=1.23&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/pam.eclass?r1=1.22&r2=1.23 Index: pam.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- pam.eclass 27 Dec 2011 17:55:12 -0000 1.22 +++ pam.eclass 5 Aug 2012 15:34:20 -0000 1.23 @@ -1,18 +1,26 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# Author Diego Pettenò -# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.22 2011/12/27 17:55:12 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.23 2012/08/05 15:34:20 jlec Exp $ # + +# @ECLASS: pam.eclass +# @MAINTAINER: +# pam-bugs@gentoo.org +# @AUTHOR: +# Diego Pettenò +# @BLURB: Handles pam related tasks +# @DESCRIPTION: # This eclass contains functions to install pamd configuration files and # pam modules. if [[ ${___ECLASS_ONCE_PAM} != "recur -_+^+_- spank" ]] ; then ___ECLASS_ONCE_PAM="recur -_+^+_- spank" -inherit multilib flag-o-matic +inherit flag-o-matic multilib -# dopamd [more files] -# +# @FUNCTION: dopamd +# @USAGE: [more files] +# @DESCRIPTION: # Install pam auth config file in /etc/pam.d dopamd() { [[ -z $1 ]] && die "dopamd requires at least one argument" @@ -29,8 +37,9 @@ cleanpamd "$@" } -# newpamd -# +# @FUNCTION: newpamd +# @USAGE: +# @DESCRIPTION: # Install pam file as in /etc/pam.d newpamd() { [[ $# -ne 2 ]] && die "newpamd requires two arguments" @@ -47,8 +56,9 @@ cleanpamd $2 } -# dopamsecurity
[more files] -# +# @FUNCTION: dopamsecurity +# @USAGE:
[more files] +# @DESCRIPTION: # Installs the config files in /etc/security/
/ dopamsecurity() { [[ $# -lt 2 ]] && die "dopamsecurity requires at least two arguments" @@ -64,8 +74,9 @@ ) || die "failed to install ${@:2}" } -# newpamsecurity
-# +# @FUNCTION: newpamsecurity +# @USAGE:
+# @DESCRIPTION: # Installs the config file as in /etc/security/
/ newpamsecurity() { [[ $# -ne 3 ]] && die "newpamsecurity requires three arguments" @@ -81,8 +92,8 @@ ) || die "failed to install $2 as $3" } -# getpam_mod_dir -# +# @FUNCTION: getpam_mod_dir +# @DESCRIPTION: # Returns the pam modules' directory for current implementation getpam_mod_dir() { if has_version sys-libs/pam || has_version sys-libs/openpam; then @@ -95,8 +106,8 @@ echo ${PAM_MOD_DIR} } -# pammod_hide_symbols -# +# @FUNCTION: pammod_hide_symbols +# @DESCRIPTION: # Hide all non-PAM-used symbols from the module; this function creates a # simple ld version script that hides all the symbols that are not # necessary for PAM to load the module, then uses append-flags to make @@ -112,8 +123,9 @@ append-ldflags -Wl,--version-script="${T}"/pam-eclass-pam_symbols.ver } -# dopammod [more files] -# +# @FUNCTION: dopammod +# @USAGE: [more files] +# @DESCRIPTION: # Install pam module file in the pam modules' dir for current implementation dopammod() { [[ -z $1 ]] && die "dopammod requires at least one argument" @@ -126,8 +138,9 @@ doexe "$@" || die "failed to install $@" } -# newpammod -# +# @FUNCTION: newpammod +# @USAGE: +# @DESCRIPTION: # Install pam module file as in the pam # modules' dir for current implementation newpammod() { @@ -141,8 +154,9 @@ newexe "$1" "$2" || die "failed to install $1 as $2" } -# pamd_mimic_system [auth levels] -# +# @FUNCTION: pamd_mimic_system +# @USAGE: [auth levels] +# @DESCRIPTION: # This function creates a pamd file which mimics system-auth file # for the given levels in the /etc/pam.d directory. pamd_mimic_system() { @@ -150,8 +164,9 @@ pamd_mimic system-auth "$@" } -# pamd_mimic [auth levels] -# +# @FUNCTION: pamd_mimic +# @USAGE: [auth levels] +# @DESCRIPTION: # This function creates a pamd file which mimics the given stack # for the given levels in the /etc/pam.d directory. pamd_mimic() { @@ -186,8 +201,9 @@ done } -# cleanpamd -# +# @FUNCTION: cleanpamd +# @USAGE: +# @DESCRIPTION: # Cleans a pam.d file from modules that might not be present on the system # where it's going to be installed cleanpamd() { @@ -200,6 +216,10 @@ done } +# @FUNCTION: pam_epam_expand +# @USAGE: +# @DESCRIPTION: +# Steer clear, deprecated, don't use, bad experiment pam_epam_expand() { sed -n -e 's|#%EPAM-\([[:alpha:]-]\+\):\([-+<>=/.![:alnum:]]\+\)%#.*|\1 \2|p' \ "$@" | sort -u | while read condition parameter; do