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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Dec 5 21:12:51 2008 UTC (11 years, 2 months ago) by cardoe
Branch: MAIN
Changes since 1.1: +20 -4 lines
merge in improvements from Sunrise Overlay by Heath Caldwell <hncaldwell@gentoo.org>
(Portage version: 2.1.6_rc2/cvs/Linux 2.6.27-gentoo-r2 x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20