blob: 8c43eb48d480943626e3c72da50824d35192830b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils multilib autotools
DESCRIPTION="NSS module for name lookups using LDAP"
HOMEPAGE="http://ch.tudelft.nl/~arthur/nss-ldapd/"
SRC_URI="http://ch.tudelft.nl/~arthur/nss-ldapd/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="sasl kerberos"
DEPEND="net-nds/openldap
sasl? ( dev-libs/cyrus-sasl )
kerberos? ( virtual/krb5 )"
src_unpack() {
unpack ${A}
cd "${S}"
# Fix configure.ac to make sasl and kerberos support configurable
epatch "${FILESDIR}/${PN}-0.6.4-configure-fixes.patch"
eautoreconf
}
src_compile() {
# nss libraries go in /lib (as opposed to /usr/lib)
econf \
$(use_enable sasl) \
$(use_enable kerberos) \
--libdir=/$(get_libdir)
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
insinto /etc
doins nss-ldapd.conf
insinto /usr/share/nss-ldapd
doins nss-ldapd.conf
newinitd "${FILESDIR}"/nslcd.rc nslcd
dodoc NEWS ChangeLog AUTHORS README || die "error installing documentation"
# Make directory for pid file and socket file
keepdir /var/run/nslcd
}
pkg_postinst() {
echo
elog "In order to use nss-ldapd, nslcd needs to be running. You can start"
elog "it like this:"
elog " # /etc/init.d/nslcd start"
elog
elog "You can add it to the default runlevel like so:"
elog " # rc-update add nslcd default"
echo
}
|