diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-05-09 07:38:36 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-05-09 07:38:36 +0000 |
commit | 21bd3afe6a604713270e366895615ac5cb659bc8 (patch) | |
tree | 6a76bbfe21459c17240060c7a80f681b55f0cde0 /sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.1.ebuild | |
parent | Update to 6.1-RELEASE. (diff) | |
download | gentoo-2-21bd3afe6a604713270e366895615ac5cb659bc8.tar.gz gentoo-2-21bd3afe6a604713270e366895615ac5cb659bc8.tar.bz2 gentoo-2-21bd3afe6a604713270e366895615ac5cb659bc8.zip |
Update to 6.1-RELEASE.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.1.ebuild')
-rw-r--r-- | sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.1.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.1.ebuild new file mode 100644 index 000000000000..21da961c45ca --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2006 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-6.1.ebuild,v 1.1 2006/05/09 07:38:36 flameeyes Exp $ + +inherit bsdmk freebsd multilib pam + +DESCRIPTION="FreeBSD's PAM authentication modules" +SLOT="0" +KEYWORDS="~x86-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}/5.4/README.pamd" + dopamd "${FILESDIR}/5.4/pam.d/"* +} |