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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20