summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-02-19 12:03:49 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-02-19 12:03:49 +0000
commit4970f3104debb553dd7447c5706e52c6fe07ad4d (patch)
tree0dbad65f5654ba4e6ff50aa2235390748811046d /sys-freebsd
parentPost-depend on sys-auth/pambase, and let that depend on PAM modules. (diff)
downloadgentoo-2-4970f3104debb553dd7447c5706e52c6fe07ad4d.tar.gz
gentoo-2-4970f3104debb553dd7447c5706e52c6fe07ad4d.tar.bz2
gentoo-2-4970f3104debb553dd7447c5706e52c6fe07ad4d.zip
Update to work with the new pambase package, don't provide pamd files anymore.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-freebsd')
-rw-r--r--sys-freebsd/freebsd-pam-modules/ChangeLog10
-rw-r--r--sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.2-r1.ebuild48
2 files changed, 56 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-pam-modules/ChangeLog b/sys-freebsd/freebsd-pam-modules/ChangeLog
index 8292585f0794..bf887d70bb66 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-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.19 2007/01/15 21:37:12 drizzt Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.20 2008/02/19 12:03:49 flameeyes Exp $
+
+*freebsd-pam-modules-6.2-r1 (19 Feb 2008)
+
+ 19 Feb 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +freebsd-pam-modules-6.2-r1.ebuild:
+ Update to work with the new pambase package, don't provide pamd files anymore.
*freebsd-pam-modules-6.2 (15 Jan 2007)
diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.2-r1.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.2-r1.ebuild
new file mode 100644
index 000000000000..10308214d640
--- /dev/null
+++ b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.2-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 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.2-r1.ebuild,v 1.1 2008/02/19 12:03:49 flameeyes Exp $
+
+inherit bsdmk freebsd multilib pam
+
+DESCRIPTION="FreeBSD's PAM authentication modules"
+SLOT="0"
+KEYWORDS=""
+
+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"
+}