/[gentoo-x86]/sys-auth/nss-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild
Gentoo

Contents of /sys-auth/nss-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Jul 24 06:58:43 2012 UTC (7 years, 7 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
recovering from cvs mistakes

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 prometheanfire 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 prometheanfire 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild,v 1.1 2012/07/24 06:34:33 prometheanfire Exp $
4 prometheanfire 1.1
5     inherit multilib
6    
7     DESCRIPTION="NSS module for name lookups using LDAP"
8     HOMEPAGE="http://ch.tudelft.nl/~arthur/nss-ldapd/"
9     SRC_URI="http://ch.tudelft.nl/~arthur/nss-ldapd/nss-ldapd-${PV}.tar.gz"
10    
11     LICENSE="LGPL-2.1"
12     SLOT="0"
13     KEYWORDS="~amd64"
14     IUSE="debug kerberos sasl"
15    
16     DEPEND="net-nds/openldap
17     sasl? ( dev-libs/cyrus-sasl )
18     kerberos? ( virtual/krb5 )
19     !sys-auth/nss_ldap"
20     RDEPEND="${DEPEND}"
21    
22     src_compile() {
23     # nss libraries always go in /lib on Gentoo
24     econf --enable-warnings --with-ldap-lib=openldap $(use_enable debug) \
25     --libdir=/$(get_libdir) \
26     || die "econf failed"
27     emake || die "emake failed"
28     }
29    
30     src_install() {
31     emake DESTDIR="${D}" install || die "make install failed"
32    
33     dodoc NEWS ChangeLog AUTHORS README
34    
35     # for socket and pid file
36     keepdir /var/run/nslcd
37    
38     # init script
39     newinitd "${FILESDIR}"/nslcd.rc nslcd
40    
41     # make an example copy
42     insinto /usr/share/nss-ldapd
43     doins nss-ldapd.conf
44    
45     fperms o-r /etc/nss-ldapd.conf
46     }
47    
48     pkg_postinst() {
49     elog
50     elog "For this to work you must configure /etc/nss-ldapd.conf"
51     elog "This configuration is similar to pam_ldap's /etc/ldap.conf"
52     elog
53     elog "In order to use nss-ldapd, nslcd needs to be running. You can"
54     elog "start it like this:"
55     elog " # /etc/init.d/nslcd start"
56     elog
57     elog "You can add it to the default runlevel like so:"
58     elog " # rc-update add nslcd default"
59     }

  ViewVC Help
Powered by ViewVC 1.1.20