pkgsrc/databases/openldap/Makefile.common
adam 2e8d291f8a Changes 2.4.32:
Added slappasswd loadable module support
	Fixed tools to not clobber SASL_NOCANON
	Fixed libldap function declarations
	Fixed libldap double free
	Fixed libldap debug level setting
	Fixed libldap MozNSS PEM/certdb handling
	Fixed libldap MozNSS cipher suite selection
	Fixed libldap MozNSS error handling
	Fixed libldap MozNSS cipher suite being ignored
	Fixed libldap MozNSS infinite loop
	Fixed libldap MozNSS context token for certdb
	Fixed libldap MozNSS store certificate object
	Fixed libldap MozNSS fix init and cleanup
	Fixed libldap MozNSS slot and pin usage
	Fixed libldap MozNSS to avoid infinite loop
	Fixed libldap MozNSS untrusted issuer error
	Fixed libldap gettime() regression
	Fixed libldap sasl handling
	Fixed libldap to correctly free socket with TLS
	Fixed libmdb leaf node handling
	Fixed libmdb mutexes on Apple/Windows
	Fixed slapd config index renumbering
	Fixed slapd duplicate error response
	Fixed slapd parsing of PermissiveModify control
	Fixed slapd-bdb/hdb cache hang under high load
	Fixed slapd-bdb/hdb alias checking
	Fixed slapd-bdb/hdb olcDbConfig changes work immediately
	Fixed slapd-ldap to encode user DN during password change
	Fixed slapd-ldap assertion when proxying to MS AD
	Fixed slapd-ldap monitoring
	Fixed slapd-mdb with tool mode
	Fixed slapd-mdb with approx indexing
	Fixed slapd-mdb dn2id delete
	Fixed slapd-mdb memory leak in online indexer
	Fixed slapd-mdb db corruption when hitting maxsize
	Fixed slapd-mdb aborts with online indexing
	Fixed slapd-perl panic
	Fixed slapo-accesslog memory leaks with sync replication
	Fixed slapo-syncprov memory leaks with sync replication
	Fixed contrib/smbk5pwd to not compile with MozNSS
	Fixed contrib/sha2 portability
	Fixed contrib/sha2 thread safety
	Added contrib/sha2 {SSHA256}, {SSHA384}, {SSHA512} support
	Build Environment
		Fixed test057 timing issues
		Fixed compilation with MS Visual Studio
	Contrib
		Added slapi_[get|free]_client_ip()
	Documentation
		slapo-sssvlv Added note about criticality
		admin24 Fix peername.regex typo
		Fixed slapd-config file include example
		slapd-ldap(5) Reference RFC4526
		slapd-meta(5) Reference RFC4526
2012-08-06 13:33:38 +00:00

119 lines
3.8 KiB
Text

# $NetBSD: Makefile.common,v 1.32 2012/08/06 13:33:38 adam Exp $
#
# used by databases/openldap-client/Makefile
# used by databases/openldap-cloak/Makefile
# used by databases/openldap-nops/Makefile
# used by databases/openldap-server/Makefile
# used by databases/openldap-smbk5pwd/Makefile
.include "../../databases/openldap/Makefile.version"
DISTNAME= openldap-${OPENLDAP_VERSION}
CATEGORIES= databases
MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
http://www.openldap.org/software/download/OpenLDAP/openldap-release/ \
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/ \
ftp://ftp.ntua.gr/mirror/OpenLDAP/openldap-release/ \
ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/openldap-release/ \
ftp://ftp.u-aizu.ac.jp/pub/net/openldap/openldap-release/ \
ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/ \
ftp://ftp.linux.pt/pub/mirrors/OpenLDAP/openldap-release/ \
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/
EXTRACT_SUFX= .tgz
MAINTAINER= ghen@NetBSD.org
HOMEPAGE= http://www.openldap.org/
LICENSE= modified-bsd
CONFLICTS+= ldapsdk-[0-9]*
DISTINFO_FILE= ${.CURDIR}/../../databases/openldap/distinfo
PATCHDIR= ${.CURDIR}/../../databases/openldap/patches
FILESDIR= ${.CURDIR}/../../databases/openldap/files
USE_LIBTOOL= yes
USE_TOOLS+= soelim
GNU_CONFIGURE= yes
MAKE_ENV+= LIBMODE=${LIBMODE}
.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
CPPFLAGS.Linux+= -D_GNU_SOURCE
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${OPENLDAP_VARDIR}
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} ${OPENLDAP_ETCDIR}/${file}
.endfor
.for file in ${CNFS_PERMS}
CONF_FILES_PERMS+= ${EGDIR}/${file} ${OPENLDAP_ETCDIR}/${file} ${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}
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
# 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