pkgsrc/databases/openldap/Makefile.common
ghen 4caf652dd2 Update OpenLDAP packages to 2.4.16, the new stable release.
patch-db (for openldap-cloak module) has been included upstream.

OpenLDAP 2.4.16 Release (2009/04/05)
	Fixed libldap GnuTLS with x509v1 CA certs (ITS#5992)
	Fixed libldap GnuTLS with CA chains (ITS#5991)
	Fixed libldap GnuTLS TLSVerifyCilent try (ITS#5981)
	Fixed libldap segfault in checking cert/DN (ITS#5976)
	Fixed libldap peer cert double free (ITS#5849)
	Fixed libldap referral chasing (ITS#5980)
	Fixed slapd backglue with empty DBs (ITS#5986)
	Fixed slapd ctxcsn race condition (ITS#6001)
	Fixed slapd debug message (ITS#6027)
	Fixed slapd redundant module loading (ITS#6030)
	Fixed slapd schema_init freed value (ITS#6036)
	Fixed slapd syncrepl newCookie sync messages (ITS#5972)
	Fixed slapd syncrepl hang during shutdown (ITS#6011)
	Fixed slapd syncrepl too many MMR messages (ITS#6020)
	Fixed slapd syncrepl skipped entries with MMR (ITS#5988)
	Fixed slapd-bdb/hdb cachesize handling (ITS#5860)
	Fixed slapd-bdb/hdb with slapcat with empty dn (ITS#6006)
	Fixed slapd-bdb/hdb with NULL transactions (ITS#6012)
	Fixed slapd-ldap incorrect referral handling (ITS#6003,ITS#5916)
	Fixed slapd-ldap/meta with broken AD results (ITS#5977)
	Fixed slapd-ldap/meta with invalid attrs again (ITS#5959)
	Fixed slapo-accesslog interaction with ppolicy (ITS#5979)
	Fixed slapo-dynlist conversion to cn=config (ITS#6002)
	Fixed slapo-syncprov newCookie sync messages (ITS#5972)
	Fixed slapd-syncprov too many MMR messages (ITS#6020)
	Fixed slapo-syncprov replica lockout (ITS#5985)
	Fixed slapo-syncprov modtarget tracking (ITS#5999)
	Fixed slapo-syncprov multiple CSN propagation (ITS#5973)
	Fixed slapo-syncprov race condition (ITS#6045)
	Fixed slapo-syncprov sending cookies without CSN (ITS#6024)
	Fixed slapo-syncprov skipped entries with MMR (ITS#5988)
	Fixed tools passphrase free (ITS#6014)
	Build Environment
		Cleaned up alloc/free functions for Windows (ITS#6005)
		Fixed running of autosave files in testsuite (ITS#6026)
	Documentation
		admin24 clarified MMR URI requirements (ITS#5942,ITS#5987)
		Added ldapexop(1) manual page (ITS#5982)
		slapd-ldap/meta(5) added missing TLS options (ITS#5989)
2009-04-27 07:15:43 +00:00

116 lines
4 KiB
Makefile

# $NetBSD: Makefile.common,v 1.21 2009/04/27 07:15:43 ghen Exp $
# please stick to the "stable" releases as much as possible!
DISTNAME= openldap-2.4.16
CATEGORIES= databases
MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
MASTER_SITES+= http://www.openldap.org/software/download/OpenLDAP/openldap-release/
MASTER_SITES+= http://www.PlanetMirror.com/pub/openldap/openldap-release/
MASTER_SITES+= ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://ftp.ucr.ac.cr/pub/Unix/openldap/openldap-release/
MASTER_SITES+= ftp://ftp.ntua.gr/mirror/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://it.openldap.org/pub/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://ftp.u-aizu.ac.jp/pub/net/openldap/openldap-release/
MASTER_SITES+= ftp://ftp.holywar.net/pub/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/
MASTER_SITES+= ftp://ftp.linux.pt/pub/mirrors/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/
MASTER_SITES+= ftp://ftp.plig.org/pub/OpenLDAP/openldap-release/
EXTRACT_SUFX= .tgz
MAINTAINER= ghen@NetBSD.org
HOMEPAGE= http://www.openldap.org/
CONFLICTS+= ldapsdk-[0-9]*
DISTINFO_FILE= ${.CURDIR}/../../databases/openldap/distinfo
PATCHDIR= ${.CURDIR}/../../databases/openldap/patches
FILESDIR= ${.CURDIR}/../../databases/openldap/files
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
MAKE_ENV+= LIBMODE=${LIBMODE:Q}
.include "../../mk/bsd.prefs.mk"
OPENLDAP_ETCDIR?= ${PKG_SYSCONFDIR}/openldap
OPENLDAP_MODULEDIR= ${PREFIX}/lib/openldap
OPENLDAP_VARDIR?= ${VARBASE}/openldap
SLAPD_USER?= slapd
LDAP_GROUP?= ldap
PKG_GROUPS_VARS+= LDAP_GROUP
PKG_USERS_VARS+= SLAPD_USER
# the internal avl_* prototypes conflict with those in <sys/avl.h> which
# is included by another system header file on Solaris, so subst them.
.if ${OPSYS} == "SunOS"
SUBST_CLASSES+= conflict
SUBST_STAGE.conflict= post-patch
SUBST_FILES.conflict= ${WRKSRC}/*/*.h
SUBST_FILES.conflict+= ${WRKSRC}/*/*/*.c ${WRKSRC}/*/*/*/*.c
SUBST_SED.conflict+= -e 's,avl_free,openldap_avl_free,g'
SUBST_SED.conflict+= -e 's,avl_insert,openldap_avl_insert,g'
SUBST_SED.conflict+= -e 's,avl_delete,openldap_avl_delete,g'
SUBST_SED.conflict+= -e 's,avl_find,openldap_avl_find,g'
SUBST_SED.conflict+= -e 's,avl_find2,openldap_avl_find2,g'
SUBST_MESSAGE.conflict= Fixing conflicting function prototypes.
.endif
CPPFLAGS.Darwin+= -DBIND_8_COMPAT
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --localstatedir=${OPENLDAP_VARDIR:Q}
CONFIGURE_ARGS+= --enable-dynamic
CONFIGURE_ARGS+= --with-tls=openssl
EGDIR= ${PREFIX}/share/examples/openldap
CONF_FILES= # empty
CONF_FILES_PERMS= # empty
.for FILE in ${CNFS}
CONF_FILES+= ${EGDIR}/${FILE:Q} ${OPENLDAP_ETCDIR}/${FILE:Q}
.endfor
.for FILE in ${CNFS_PERMS}
CONF_FILES_PERMS+= ${EGDIR}/${FILE:Q} ${OPENLDAP_ETCDIR}/${FILE:Q} ${OPENLDAP_FILEPERMS}
.endfor
DB_CONFIG?= # empty
PTHREAD_OPTS+= require
.include "../../security/openssl/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.if ${PTHREAD_TYPE} == "native"
CONFIGURE_ARGS+= --with-threads
.elif ${PTHREAD_TYPE} == "pth"
CONFIGURE_ARGS+= --with-threads=pth
#
# Don't use a larger FD_SETSIZE than GNU Pth can handle (value taken from
# pth.h header).
#
PTH_FDSETSIZE_cmd= \
if ${TEST} -f ${BUILDLINK_PREFIX.pth:Q}/include/pth.h; then \
${AWK} '/if FD_SETSIZE >/ { print $$4 }' \
${BUILDLINK_PREFIX.pth}/include/pth.h; \
else \
${ECHO} 0; \
fi
CPPFLAGS+= -DOPENLDAP_FD_SETSIZE=${PTH_FDSETSIZE_cmd:sh:Q}
.endif
MAKE_FLAGS+= moduledir=${OPENLDAP_MODULEDIR:Q}
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
# Set the correct file modes for the example config files.
post-install:
.for file in ${CNFS} ${CNFS_PERMS} ${DB_CONFIG}
${CHMOD} ${SHAREMODE} ${DESTDIR}${EGDIR}/${file:Q}
${RM} -f ${DESTDIR}${EGDIR}/${file:Q}.default
.endfor