# $Id$ PNAME="openldap" PVER="2.4.16" PBUILD="r1" PCATEGORIE="net-nds" STATE="unstable" DESCRIPTION="OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol." HOMEPAGE="http://www.openldap.org/" DEPEND=">= dev-db/db-4.7 >= dev-libs/cyrus-sasl-2.1 >= dev-libs/openssl-0.9.8 >= sys-apps/tcp-wrappers-7" SRCFILE="${PNAME}-${PVER}.tgz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://www.openldap.org/software/download/OpenLDAP/openldap-release/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.openldap.org/software/download/ | grep 'currently avail' | sed 's/.*OpenLDAP-\(.*\)\ is.*/\1/'" src_compile() { cd ${SRCDIR} # fixes a >=glibc-2.8 bug # getpeereid.c: In function 'lutil_getpeereid': # getpeereid.c:65: error: storage size of 'peercred' isn't known export CFLAGS="${CFLAGS} -D_GNU_SOURCE" export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE" mconfigure || die mmake || die }