Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5104 - Please include SASL option support ot OpenLDAP
Summary: Please include SASL option support ot OpenLDAP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-16 14:08 UTC by Joao Rafael Moraes Nicola
Modified: 2002-07-19 15:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joao Rafael Moraes Nicola 2002-07-16 14:08:06 UTC
I noticed that the OpenLDAP ebuild script does  not include SASL support. I've
added a USE flag "sasl" and modified the script to check for it and include the
proper compilation flags:

net-nds/openldap/openldap-2.0.23.ebuild:


# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/net-nds/openldap/openldap-2.0.23.ebuild,v
1.3 2002/07/11 06:30:49 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="LDAP suite of application and development tools"
SRC_URI="ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/${P}.tgz"
HOMEPAGE="http://www.OpenLDAP.org/"
LICENSE="OPENLDAP"

DEPEND="virtual/glibc
	>=sys-libs/ncurses-5.1
        tcpd?     ( >=sys-apps/tcp-wrappers-7.6 )
        ssl?      ( >=dev-libs/openssl-0.9.6 )
        readline? ( >=sys-libs/readline-4.1 )
        gdbm?     ( >=sys-libs/gdbm-1.8.0 )
        sasl?     ( >=dev-libs/cyrus-sasl-1.5.27)"

RDEPEND="virtual/glibc
        >=sys-libs/ncurses-5.1
        gdbm? ( >=sys-libs/gdbm-1.8.0 )"


src_compile() {
	local myconf

	use tcpd     && myconf="${myconf} --enable-wrappers"
	use ssl      && myconf="${myconf} --with-tls"
	use readline && myconf="${myconf} --with-readline"
	use readline || myconf="${myconf} --without-readline"
	use gdbm     && myconf="${myconf} --enable-ldbm --with-ldbm-api=gdbm"
	use gdbm     || myconf="${myconf} --disable-ldbm"
	use ipv6     && myconf="${myconf} --enable-ipv6"
        use sasl     && myconf="${myconf} --enable-cyrus-sasl" 

	./configure --host=${CHOST} \
		--enable-passwd \
		--enable-shell \
		--enable-shared \
		--enable-static \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var/state \
		--mandir=/usr/share/man \
		--libexecdir=/usr/lib/openldap \
		${myconf} || die "bad configure"

	make depend || die
	make || die
	cd tests ; make || die
}

src_install() {
	make prefix=${D}/usr \
		sysconfdir=${D}/etc/openldap \
		localstatedir=${D}/var/state \
		mandir=${D}/usr/share/man \
		libexecdir=${D}/usr/lib/openldap \
		install || die "install problem"

	#fix ${D} in manpages
	cd ${S}/doc/man
	make DESTDIR=${D} clean all install || die "install doc problem"
	cd ${S}

	dodoc ANNOUNCEMENT CHANGES COPYRIGHT README LICENSE
	docinto rfc ; dodoc doc/rfc/*.txt
	docinto devel ; dodoc doc/devel/*

	exeinto /etc/init.d
	newexe ${FILESDIR}/slapd.rc6 slapd
	newexe ${FILESDIR}/slurpd.rc6 slurpd

	cd ${D}/etc/openldap
	for i in *
	do
		dosed $i
	done
}
Comment 1 Nick Hadaway 2002-07-17 23:18:53 UTC
Updated to OpenLDAP 2.0.25 in portage.  It is currently masked out.  Please test
and report any problems.  sasl support is in the new ebuild.
Comment 2 Edwin van Ouwerkerk Moria 2002-07-19 08:52:59 UTC
It works well for me - previous version crashed a lot. (Something to do with 
the SASL stuff). This one seems solid.
Comment 3 Nick Hadaway 2002-07-19 15:57:27 UTC
Unmasked OpenLDAP-2.0.25 in portage.  Thanks for the report!