/[gentoo-x86]/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.2.ebuild
Gentoo

Contents of /sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Jul 6 06:03:53 2011 UTC (2 years, 9 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
bump to 8.2

(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)

1 aballier 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.0.ebuild,v 1.1 2010/03/19 11:51:02 aballier Exp $
4    
5     inherit bsdmk freebsd multilib pam
6    
7     DESCRIPTION="FreeBSD's PAM authentication modules"
8     SLOT="0"
9     KEYWORDS="~x86-fbsd ~sparc-fbsd"
10    
11     IUSE="kerberos nis"
12    
13     SRC_URI="mirror://gentoo/${LIB}.tar.bz2"
14    
15     RDEPEND=">=sys-auth/openpam-20050201-r1
16     kerberos? ( dev-libs/openssl
17     virtual/krb5 )"
18     DEPEND="${RDEPEND}
19     =sys-freebsd/freebsd-mk-defs-${RV}*
20     =sys-freebsd/freebsd-sources-${RV}*"
21    
22     S=${WORKDIR}/lib/libpam/modules
23    
24     pkg_setup() {
25     # Avoid installing pam_ssh as that has its own ebuild.
26     mymakeopts="${mymakeopts} NO_OPENSSH= "
27     use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
28     use nis || mymakeopts="${mymakeopts} NO_NIS= "
29     }
30    
31     src_unpack() {
32     unpack ${A}
33    
34     cd "${WORKDIR}"/lib
35    
36     for module in pam_deny pam_passwdqc pam_permit; do
37     sed -i -e "s:${module}::" "${S}"/modules.inc
38     done
39    
40     # Avoid using static versions; use gentoo /lib/security dir
41     epatch "${FILESDIR}"/${PN}-6.0-gentoo.patch
42     }
43    
44     src_install() {
45     mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed"
46    
47     dodoc "${FILESDIR}/README.pamd"
48     }

  ViewVC Help
Powered by ViewVC 1.1.20