/[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.1 - (show annotations) (download)
Thu Dec 4 22:17:14 2008 UTC (11 years, 2 months ago) by cardoe
Branch: MAIN
add new nss-ldapd package which is a fork of nss_ldap. It simplifies the code base and provides a small nss library that speaks to a local daemon that does all the LDAP communication. Due to the way NSS works, this will improve interaction with user programs since less code is being loaded into their process space.
(Portage version: 2.1.6_rc2/cvs/Linux 2.6.27-gentoo-r2 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 DESCRIPTION="NSS module for name lookups using LDAP"
6 HOMEPAGE="http://ch.tudelft.nl/~arthur/nss-ldapd/"
7 SRC_URI="http://ch.tudelft.nl/~arthur/nss-ldapd/${P}.tar.gz"
8
9 LICENSE="LGPL-2.1"
10 SLOT="0"
11 KEYWORDS="~amd64"
12 IUSE="debug"
13
14 DEPEND="net-nds/openldap
15 !sys-auth/nss_ldap"
16 RDEPEND="${DEPEND}"
17
18 src_compile() {
19 econf --enable-warnings --with-ldap-lib=openldap $(use_enable debug) \
20 || die "econf failed"
21 emake || die "emake failed"
22 }
23
24 src_install() {
25 emake DESTDIR="${D}" install || die "make install failed"
26
27 # for socket and pid file
28 mkdir "${D}"/var/run/nslcd
29
30 # init script
31 newinitd "${FILESDIR}"/nslcd.rc nslcd
32 }
33
34 pkg_postinst() {
35 elog
36 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"
38 elog
39 elog "After configuring it, you MUST add `nslcd` to be started"
40 elog "i.e. $ rc-update add nslcd default"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20