/[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.4 - (show annotations) (download)
Thu Apr 2 18:50:35 2009 UTC (10 years, 10 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove world read from config file to fix security issue when using bindpw field. bug #264574 CVE-2009-1073
(Portage version: 2.1.6.11/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-ldapd/nss-ldapd-0.6.7.ebuild,v 1.3 2009/01/03 22:37:58 mr_bones_ Exp $
4
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/${P}.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
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 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 }

  ViewVC Help
Powered by ViewVC 1.1.20