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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Apr 26 13:46:44 2012 UTC (2 years, 7 months ago) by aballier
Branch: MAIN
Changes since 1.1: +2 -2 lines
keyword ~amd64-fbsd

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

1 aballier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 aballier 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-9.0.ebuild,v 1.1 2012/01/16 16:37:09 aballier Exp $
4 aballier 1.1
5     inherit bsdmk freebsd multilib pam
6    
7     DESCRIPTION="FreeBSD's PAM authentication modules"
8     SLOT="0"
9 aballier 1.2 KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
10 aballier 1.1
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}-9.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