pkgsrc/databases/openldap-server/Makefile
adam cf923fe52b openldap: updated to 2.4.49
OpenLDAP 2.4.49:
	Added slapd-monitor database entry count for slapd-mdb
	Fixed client tools to not add controls on cancel/abandon
	Fixed client tools SyncInfo message to be LDIF compliant
	Fixed libldap to correctly free sb
	Fixed libldap descriptor leak if ldaps fails
	Fixed libldap remove unnecessary global mutex for GnuTLS
	Fixed slapd syntax evaluation of preferredDeliveryMethod
	Fixed slapd to relax domainScope control check
	Fixed slapd to have cleaner error handling during connection setup
	Fixed slapd data check when processing cancel exop
	Fixed slapd attribute description processing
	Fixed slapd-ldap to set oldctrls correctly
	Fixed slapd-mdb to honor unchecked limit with alias deref
	Fixed slapd-mdb missing final commit with slapindex
	Fixed slapd-mdb drop attr mappings added in an aborted txn
	Fixed slapd-mdb nosync FLAG configuration handling
	Fixed slapd-monitor global operation counter reporting
	Fixed slapo-ppolicy when used with slapauth
	Fixed slapo-ppolicy to add a missed normalised copy of pwdChangedTime
	Fixed slapo-syncprov fix sessionlog init
	Fixed slapo-unique loop termination
	Build Environment
		Fix mkdep to honor TMPDIR if set
		Remove ICU library detection
		Update config.guess and config.sub to support newer architectures
		Disable ITS8521 regression test as it is no longer valid
	Documentation
		admin24 - Fix inconsistent whitespace in replication section
		slapd-config(5)/slapd.conf(5) - Fix missing bold tag for keyword
		slapd-ldap(5) - Document "tls none" option
		slapo-ppolicy(5) - Correctly document pwdGraceAuthnLimit
2020-02-10 15:13:06 +00:00

81 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.56 2020/02/10 15:13:06 adam Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
COMMENT= Lightweight Directory Access Protocol server suite
CONFLICTS+= openldap<2.3.23nb1
DEPENDS+= openldap-client>=2.3.27nb1:../../databases/openldap-client
CFLAGS.FreeBSD+= -DMDB_DSYNC=O_SYNC
CFLAGS.DragonFly+= -DMDB_DSYNC=O_SYNC -DMDB_FDATASYNC=fsync
CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS # sigwait
# slapd options
CONFIGURE_ARGS+= --enable-slapd
CONFIGURE_ARGS+= --enable-crypt
CONFIGURE_ARGS+= --enable-wrappers
# slapd backends
CONFIGURE_ARGS+= --enable-dnssrv
CONFIGURE_ARGS+= --enable-ldap
CONFIGURE_ARGS+= --enable-meta
CONFIGURE_ARGS+= --enable-monitor
CONFIGURE_ARGS+= --enable-null
CONFIGURE_ARGS+= --enable-passwd
CONFIGURE_ARGS+= --enable-shell
# slapd (stackable) overlays
CONFIGURE_ARGS+= --enable-overlays
BUILD_DIRS= include libraries servers
TEST_DIRS= tests
INSTALL_DIRS= servers
BUILD_DEFS+= OPENLDAP_ETCDIR OPENLDAP_VARDIR
PKG_GROUPS= ${LDAP_GROUP}
PKG_USERS= ${SLAPD_USER}:${LDAP_GROUP}
OPENLDAP_FILEPERMS= ${REAL_ROOT_USER} ${LDAP_GROUP} 0640
SLAPD_DIRPERMS= ${SLAPD_USER} ${LDAP_GROUP} 0700
RUN_DIRPERMS= ${REAL_ROOT_USER} ${LDAP_GROUP} 0775
MAKE_DIRS= ${OPENLDAP_ETCDIR}/schema
OWN_DIRS+= ${OPENLDAP_VARDIR}
OWN_DIRS_PERMS= ${OPENLDAP_VARDIR}/openldap-data ${SLAPD_DIRPERMS}
OWN_DIRS_PERMS+= ${OPENLDAP_VARDIR}/run ${RUN_DIRPERMS}
CNFS= ${CNFS_SCHEMAS_cmd:sh}
CNFS_SCHEMAS_cmd= ${SED} -ne "/\.ldif$$/p;/\.schema$$/p" ${PKGDIR}/PLIST | ${SED} -e "s|share/examples/openldap/||"
CNFS_PERMS= slapd.conf
RCD_SCRIPTS= slapd
FILES_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR}
FILES_SUBST+= OPENLDAP_VARDIR=${OPENLDAP_VARDIR}
FILES_SUBST+= SLAPD_USER=${SLAPD_USER}
FILES_SUBST+= LDAP_GROUP=${LDAP_GROUP}
MESSAGE_SUBST+= SLAPD_USER=${SLAPD_USER}
MESSAGE_SUBST+= LDAP_GROUP=${LDAP_GROUP}
MESSAGE_SUBST+= OPENLDAP_VARDIR=${OPENLDAP_VARDIR}
MESSAGE_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR}
MESSAGE_SUBST+= CHOWN=${CHOWN:Q}
MESSAGE_SUBST+= CHMOD=${CHMOD:Q}
.include "options.mk"
.include "../../databases/openldap/Makefile.common"
.if !empty(PKG_OPTIONS:Mbdb)
CONF_FILES_PERMS+= ${EGDIR}/DB_CONFIG ${OPENLDAP_VARDIR}/openldap-data/DB_CONFIG ${OPENLDAP_FILEPERMS}
DB_CONFIG= DB_CONFIG
.endif
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
.include "../../devel/libuuid/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"