[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / openldap

File: [cvs.NetBSD.org] / pkgsrc / databases / openldap / Makefile.common (download)

Revision 1.20, Sat Mar 7 22:26:23 2009 UTC (15 years ago) by manu
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.19: +2 -2 lines

Update to OpenLDAP 2.4.15

From OpenLDAP 2.4 Change Log

OpenLDAP 2.4.15 Release (2009/02/24)
        Fixed libldap alias dereferencing in C API again (ITS#5916)
        Fixed libldap GnuTLS compilation (ITS#5955)
        Fixed slapd bconfig conversion again (ITS#5346)
        Fixed slapd behavior with superior objectClasses again (ITS#5517)
        Fixed slapd RFC4512 behavior with same attr in RDN (ITS#5968)
        Fixed slapd corrupt contextCSN (ITS#5947)
        Fixed slapd syncrepl order to match on add/delete (ITS#5954)
        Fixed slapd adding rdn with other values (ITS#5965)
        Fixed slapd-bdb/hdb behavior with unallocatable shm (ITS#5956)
        Fixed slapd-ldap/meta with entries with invalid attrs (ITS#5959)
        Fixed slapd-relay control initialization (ITS#5724)
        Fixed slapo-pcache caching invalid entries (ITS#5927)
        Fixed slapo-syncprov csn updates (ITS#5969)
        Fixed slapo-rwm objectClass preservation (ITS#5760)
        Fixed slapo-rwm rwm_bva_rewrite handling (ITS#5960)
        Build Environment
                Fixed tester library linking for windows (ITS#5740)
OpenLDAP 2.4.14 Release (2009/02/14)
        Added libldap option to disable SASL host canonicalization (ITS#5812)
        Added libldap TLS_PROTOCOL_MIN (ITS#5655)
        Added libldap GnuTLS support for TLS_CIPHER_SUITE (ITS#5887)
        Added libldap GnuTLS setting random file (ITS#5462)
        Added libldap alias dereferencing in C API (ITS#5916)
        Fixed libldap chasing multiple referrals (ITS#5853)
        Fixed libldap deref handling (ITS#5768)
        Fixed libldap NULL pointer deref (ITS#5934)
        Fixed libldap peer cert memory leak (ITS#5849)
        Fixed libldap interaction with GnuTLS CN IP-based matches (ITS#5789)
        Fixed libldap intermediate response behavior (ITS#5896)
        Fixed libldap IPv6 address handling (ITS#5937)
        Fixed libldap_r deref building (ITS#5768)
        Fixed libldap_r slapd lockup when paused during shutdown (ITS#5841)
        Added slapd syncrepl default retry setting (ITS#5825)
        Added slapd val.regex expansion (ITS#5804)
        Added slapd TLS_PROTOCOL_MIN (ITS#5655)
        Added slapd slapi_pw_find (ITS#2615,ITS#4359)
        Added slapd compatibility with MSAD ranged values (ITS#5927)
        Fixed slapd bconfig to return error codes (ITS#5867)
        Fixed slapd bconfig encoding incorrectly (ITS#5897)
        Fixed slapd bconfig dangling pointers (ITS#5924)
        Fixed slapd behavior with superior objectClasses (ITS#5517)
        Fixed slapd connection assert (ITS#5835)
        Fixed slapd epoll handling (ITS#5886)
        Fixed slapd frontend/backend options handling (ITS#5857)
        Fixed slapd glue with MMR (ITS#5925)
        Fixed slapd logging on Windows (ITS#5392)
        Fixed slapd listener comparison (ITS#5613)
        Fixed slapd manageDSAit with glue entries (ITS#5921)
        Fixed slapd relax behavior with structuralObjectClass (ITS#5792)
        Fixed slapd syncrepl rename handling (ITS#5809)
        Fixed slapd syncrepl MMR when adding new server (ITS#5850)
        Fixed slapd syncrepl MMR with deleted entries (ITS#5843)
        Fixed slapd syncrepl replication with glued DB (ITS#5866)
        Fixed slapd syncrepl replication with moddn (ITS#5901)
        Fixed slapd syncrepl replication with referrals (ITS#5881)
        Fixed slapd syncrepl replication with config tree (ITS#5935)
        Fixed slapd wake_sds close on Windows (ITS#5855)
        Fixed slapd-bdb/hdb dncachesize handling (ITS#5860)
        Fixed slapd-bdb/hdb RFC4528 control support (ITS#5861)
        Fixed slapd-bdb/hdb trickle task usage (ITS#5864)
        Fixed slapd-hdb idlcache with empty suffix (ITS#5859)
        Fixed slapd-ldap idassert-bind validity checking (ITS#5863)
        Fixed slapd-ldap/meta RFC4525 increment support (ITS#5912)
        Fixed slapd-ldap/meta search dereferencing (ITS#5916)
        Fixed slapd-ldap/meta with intermediate response (ITS#5931)
        Fixed slapd-ldif numerous bugs (ITS#5408)
        Fixed slapd-ldif rename on same DN (ITS#5319)
        Fixed slapd-ldif deadlock (ITS#5329)
        Fixed slapd-meta double response sending (ITS#5854)
        Fixed slapd-meta alias deref for retry (ITS#5889)
        Fixed slapd-relay recursion detection (ITS#5943)
        Fixed slapd-sock descriptor leak (ITS#5939)
        Fixed slapo-accesslog on glued dbs (ITS#5907)
        Fixed slapo-dynlist handling of flags (ITS#5898)
        Fixed slapo-memberof multiple instantiation (ITS#5903)
        Fixed slapo-pcache filter sorting (ITS#5756)
        Fixed slapo-ppolicy to not be global (ITS#5858)
        Fixed slapo-rwm double free (ITS#5923)
        Fixed slapo-rwm with back-config (ITS#5906)
        Fixed slapo-rwm olcRwmRewrite modification (ITS#5940)
        Added slapo-rwm newRDN rewriting (ITS#5834)
        Added slapadd progress meter (ITS#5922)
        Updated contrib/addpartial module (ITS#5764)
        Added contrib/cloak module (ITS#5872)
        Added contrib/smbk5pwd gcrypt support (ITS#5410)
        Added contrib/passwd sha2 support (ITS#5660)
        Build Environment
                Fixed test006 appending to log file (ITS#5910)
                Fixed test036,test039 behavior on error (ITS#5893)
                Fixed test048 sed pathname substitution (ITS#5910)
                Fixed test049,test050 to work on windows (ITS#5842)
                Updated test017,test018,test019 to cover more cases (ITS#5883)
                Removed patch for BerkeleyDB 4.7.25 (Official patch available)
                Fixed MSVC 9.0 build issues (ITS#5888)
                Fixed gss detection on Solaris (ITS#5846)
                Fixed uuid_create/uuid_unparse_lower detection (ITS#5905)
                Fixed liblutil tavl_delete to macroize constants (ITS#5909)
        Documentation
                admin24 added limits chapter (ITS#5818)
                admin24 access-control clarify global ACLS (ITS#5851,ITS#5852)
                admin24 search on nested naming contexts (ITS#5788)
                admin24 consistent loglevel documentation (ITS#5904)
                slapd-bdb/hdb expansion on dncachesize behavior (ITS#5721)
                slapo-constraint(5) example fix (ITS#5895)
                slap*(8) man pages should mention slapd-config (ITS#5828)
                slapacl(8c) fix wording (ITS#5918)
                slapd(8) document sid (ITS#5873)
                slapd.access(5) clarify global ACLS (ITS#5851,ITS#5852)
                slapadd/cat/index(8) note -n 0 for slapd-config (ITS#5891)
                Added SEE ALSO slapd-config(5) to relevant man pages (ITS#5914)

# $NetBSD: Makefile.common,v 1.20 2009/03/07 22:26:23 manu Exp $

# please stick to the "stable" releases as much as possible!
DISTNAME=		openldap-2.4.15
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