diff options
author | Javier Villavicencio <the_paya@gentoo.org> | 2009-01-22 21:06:27 +0000 |
---|---|---|
committer | Javier Villavicencio <the_paya@gentoo.org> | 2009-01-22 21:06:27 +0000 |
commit | 229a1f9d4e026cbe2d47737178139bf14ae7adfb (patch) | |
tree | 36f692e9af2ad5dc3511b3101ce11ce9adcbfbe5 /sys-freebsd/freebsd-pam-modules | |
parent | Fix bug 256040, we need to run eautoreconf when we sed a .am (diff) | |
download | historical-229a1f9d4e026cbe2d47737178139bf14ae7adfb.tar.gz historical-229a1f9d4e026cbe2d47737178139bf14ae7adfb.tar.bz2 historical-229a1f9d4e026cbe2d47737178139bf14ae7adfb.zip |
Import of the 7.1 ebuilds from gentoo-bsd overlay.
Package-Manager: portage-2.2_rc23/cvs/FreeBSD i386
Diffstat (limited to 'sys-freebsd/freebsd-pam-modules')
-rw-r--r-- | sys-freebsd/freebsd-pam-modules/ChangeLog | 8 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pam-modules/files/README.pamd | 63 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.1.ebuild | 48 |
3 files changed, 118 insertions, 1 deletions
diff --git a/sys-freebsd/freebsd-pam-modules/ChangeLog b/sys-freebsd/freebsd-pam-modules/ChangeLog index c27290ce7cc3..36bcf3942ecb 100644 --- a/sys-freebsd/freebsd-pam-modules/ChangeLog +++ b/sys-freebsd/freebsd-pam-modules/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-freebsd/freebsd-pam-modules # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.22 2009/01/08 21:21:41 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.23 2009/01/22 21:03:18 the_paya Exp $ + +*freebsd-pam-modules-7.1 (22 Jan 2009) + + 22 Jan 2009; Javier Villavicencio <the_paya@gentoo.org> + +files/README.pamd, +freebsd-pam-modules-7.1.ebuild: + Import 7.1 ebuilds from gentoo-bsd overlay. 08 Jan 2009; Alexis Ballier <aballier@gentoo.org> -freebsd-pam-modules-6.2.ebuild: diff --git a/sys-freebsd/freebsd-pam-modules/files/README.pamd b/sys-freebsd/freebsd-pam-modules/files/README.pamd new file mode 100644 index 000000000000..64e716c41ca4 --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/README.pamd @@ -0,0 +1,63 @@ +/etc/pam.d + +This directory contains configuration files for the Pluggable +Authentication Modules (PAM) library. + +Each file details the module chain for a single service, and must be +named after that service. If no configuration file is found for a +particular service, the /etc/pam.d/other is used instead. If that +file does not exist, /etc/pam.conf is searched for entries matching +the specified service or, failing that, the "other" service. + +See the pam(8) manual page for an explanation of the workings of the +PAM library and descriptions of the various files and modules. Below +is a summary of the format for the pam.conf and /etc/pam.d/* files. + +Configuration lines take the following form: + +module-type control-flag module-path arguments + +Comments are introduced with a hash mark ('#'). Blank lines and lines +consisting entirely of comments are ignored. + +The meanings of the different fields are as follows: + + module-type: + auth: prompt for a password to authenticate that the user is + who they say they are, and set any credentials. + account: non-authentication based authorization, based on time, + resources, etc. + session: housekeeping before and/or after login. + password: update authentication tokens. + + control-flag: How libpam handles success or failure of the module. + required: success is required; on failure all remaining + modules are run, but the request will be denied. + requisite: success is required, and on failure no remaining + modules are run. + sufficient: success is sufficient, and if no previous required + module failed, no remaining modules are run. + binding: success is sufficient; on failure all remaining + modules are run, but the request will be denied. + optional: ignored unless the other modules return PAM_IGNORE. + + arguments: Module-specific options, plus some generic ones: + debug: syslog debug info. + no_warn: return no warning messages to the application. + Remove this to feed back to the user the + reason(s) they are being rejected. + use_first_pass: try authentication using password from the + preceding auth module. + try_first_pass: first try authentication using password from + the preceding auth module, and if that fails + prompt for a new password. + use_mapped_pass: convert cleartext password to a crypto key. + expose_account: allow printing more info about the user when + prompting. + +Note that having a "sufficient" module as the last entry for a +particular service and module type may result in surprising behaviour. +To get the intended semantics, add a "required" entry listing the +pam_deny module at the end of the chain. + +$Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/files/README.pamd,v 1.1 2009/01/22 21:03:18 the_paya Exp $ diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.1.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.1.ebuild new file mode 100644 index 000000000000..5de90bdbe74c --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.1.ebuild,v 1.1 2009/01/22 21:03:18 the_paya Exp $ + +inherit bsdmk freebsd multilib pam + +DESCRIPTION="FreeBSD's PAM authentication modules" +SLOT="0" +KEYWORDS="~x86-fbsd ~sparc-fbsd" + +IUSE="kerberos nis" + +SRC_URI="mirror://gentoo/${LIB}.tar.bz2" + +RDEPEND=">=sys-auth/openpam-20050201-r1 + kerberos? ( dev-libs/openssl + virtual/krb5 )" +DEPEND="${RDEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}* + =sys-freebsd/freebsd-sources-${RV}*" + +S=${WORKDIR}/lib/libpam/modules + +pkg_setup() { + # Avoid installing pam_ssh as that has its own ebuild. + mymakeopts="${mymakeopts} NO_OPENSSH= " + use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " +} + +src_unpack() { + unpack ${A} + + cd "${WORKDIR}"/lib + + for module in pam_deny pam_passwdqc pam_permit; do + sed -i -e "s:${module}::" "${S}"/modules.inc + done + + # Avoid using static versions; use gentoo /lib/security dir + epatch "${FILESDIR}"/${PN}-6.0-gentoo.patch +} + +src_install() { + mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed" + + dodoc "${FILESDIR}/README.pamd" +} |