2002-03-08 00:40:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.42 2002/03/07 23:40:56 jlam Exp $
|
1999-01-07 17:49:08 +01:00
|
|
|
|
2002-02-13 13:21:24 +01:00
|
|
|
DISTNAME= openldap-2.0.23
|
2001-10-18 17:20:01 +02:00
|
|
|
SVR4_PKGNAME= oldap
|
1999-01-07 17:49:08 +01:00
|
|
|
CATEGORIES= databases
|
1999-03-28 20:17:21 +02:00
|
|
|
MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
|
1999-01-07 17:49:08 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.OpenLDAP.org/
|
2001-02-16 15:17:22 +01:00
|
|
|
COMMENT= Lightweight directory access protocol server and client package
|
1999-01-07 17:49:08 +01:00
|
|
|
|
2001-09-14 04:39:07 +02:00
|
|
|
CONFLICTS+= ldapsdk-[0-9]*
|
1999-05-18 23:27:01 +02:00
|
|
|
|
2001-09-14 04:39:07 +02:00
|
|
|
USE_BUILDLINK_ONLY= YES
|
2002-03-08 00:40:56 +01:00
|
|
|
REPLACE_BUILDLINK_SED+= -e "s|-L${WRKSRC}/libraries||g"
|
|
|
|
|
2001-09-14 04:39:07 +02:00
|
|
|
USE_LIBTOOL= YES
|
2000-08-14 18:35:31 +02:00
|
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/build/ltconfig
|
1999-05-04 02:08:43 +02:00
|
|
|
|
2001-09-14 04:39:07 +02:00
|
|
|
# unfortunately, --enable-phonetic cannot be disabled by runtime configuration
|
|
|
|
GNU_CONFIGURE= YES
|
2001-12-31 09:36:09 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-dnssrv
|
2001-09-14 04:39:07 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-cldap
|
|
|
|
CONFIGURE_ARGS+= --enable-passwd
|
|
|
|
CONFIGURE_ARGS+= --enable-shell
|
2001-12-31 09:36:09 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-wrappers
|
2001-10-26 15:41:27 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tls=openssl
|
2001-12-31 09:36:09 +01:00
|
|
|
CONFIGURE_ARGS+= --without-readline
|
2001-09-14 04:39:07 +02:00
|
|
|
|
2002-01-31 06:06:54 +01:00
|
|
|
# Apparently, only _native_ pthreads are good enough, since compiling
|
|
|
|
# OpenLDAP with a userland thread package like GNU pth results in a
|
|
|
|
# slapd that isn't capable of passing the regression tests.
|
|
|
|
#
|
|
|
|
USE_PTHREAD= native
|
2000-05-05 14:08:37 +02:00
|
|
|
|
2002-01-06 20:33:34 +01:00
|
|
|
PKG_SYSCONFSUBDIR= openldap
|
2002-01-06 12:21:19 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
|
2001-12-31 09:36:09 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=/var/openldap
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2000-05-05 14:08:37 +02:00
|
|
|
|
2002-01-31 06:06:54 +01:00
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "none")
|
|
|
|
CONFIGURE_ARGS+= --with-threads
|
|
|
|
PLIST_SRC= ${.CURDIR}/PLIST.slurpd ${.CURDIR}/PLIST
|
|
|
|
.endif
|
|
|
|
|
2000-05-05 14:08:37 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2001-09-14 04:39:07 +02:00
|
|
|
.include "../../databases/db/buildlink.mk"
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/db2
|
2001-06-12 22:33:00 +02:00
|
|
|
LIBS= -ldb2 -lpthread -lrt
|
2000-05-05 14:08:37 +02:00
|
|
|
.endif
|
1999-05-04 02:08:43 +02:00
|
|
|
|
2002-02-01 19:32:34 +01:00
|
|
|
.if defined(USE_SASL) && (${USE_SASL} == "YES")
|
|
|
|
.include "../../security/cyrus-sasl/buildlink.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-cyrus-sasl
|
|
|
|
CONFIGURE_ARGS+= --enable-spasswd
|
|
|
|
.endif
|
|
|
|
|
2001-03-04 04:26:50 +01:00
|
|
|
.if defined(KERBEROS)
|
2001-12-31 09:36:09 +01:00
|
|
|
USE_KERBEROS= YES
|
|
|
|
CONFIGURE_ARGS+= --with-kerberos
|
1999-05-04 02:08:43 +02:00
|
|
|
.else
|
2001-12-31 09:36:09 +01:00
|
|
|
CONFIGURE_ARGS+= --without-kerberos
|
1999-05-04 02:08:43 +02:00
|
|
|
.endif
|
1999-01-07 17:49:08 +01:00
|
|
|
|
2001-12-31 09:36:09 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/openldap
|
|
|
|
MAKE_DIRS= ${PKG_SYSCONFDIR} ${PKG_SYSCONFDIR}/schema
|
|
|
|
OWN_DIRS= /var/openldap
|
|
|
|
OWN_DIRS_PERMS= /var/openldap/openldap-ldbm ${ROOT_USER} ${ROOT_GROUP} 0700
|
|
|
|
OWN_DIRS_PERMS+=/var/openldap/openldap-slurp ${ROOT_USER} ${ROOT_GROUP} 0700
|
|
|
|
|
|
|
|
CNFS= ldap.conf ldapfilter.conf ldaptemplates.conf \
|
|
|
|
ldapsearchprefs.conf
|
|
|
|
CNFS_PERMS= slapd.conf
|
|
|
|
SUPPS= schema/corba.schema schema/core.schema \
|
|
|
|
schema/cosine.schema schema/inetorgperson.schema \
|
|
|
|
schema/java.schema schema/krb5-kdc.schema \
|
2002-01-14 23:21:03 +01:00
|
|
|
schema/misc.schema schema/nis.schema \
|
|
|
|
schema/openldap.schema
|
2001-12-31 09:36:09 +01:00
|
|
|
|
|
|
|
CONF_FILES= # empty
|
|
|
|
CONF_FILES_PERMS= # empty
|
|
|
|
SUPPORT_FILES= # empty
|
|
|
|
.for FILE in ${CNFS}
|
|
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${CNFS_PERMS}
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \
|
|
|
|
${ROOT_USER} ${ROOT_GROUP} 0600
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${SUPPS}
|
|
|
|
SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
|
|
.endfor
|
2002-01-30 08:34:00 +01:00
|
|
|
RCD_SCRIPTS= slapd
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@for script in ${RCD_SCRIPTS}; do \
|
|
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/$${script}.sh \
|
|
|
|
> ${WRKDIR}/$${script}; \
|
|
|
|
done
|
2001-12-31 09:36:09 +01:00
|
|
|
|
|
|
|
post-install:
|
2002-01-30 08:34:00 +01:00
|
|
|
for script in ${RCD_SCRIPTS}; do \
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/$${script} \
|
|
|
|
${PREFIX}/etc/rc.d/$${script}; \
|
|
|
|
done
|
2001-12-31 09:36:09 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/schema
|
|
|
|
for file in ${CNFS} ${CNFS_PERMS} ${SUPPS}; do \
|
|
|
|
if [ ! -e ${PKG_SYSCONFDIR}/$${file}.default ]; then \
|
|
|
|
${CP} -p ${PKG_SYSCONFDIR}/$${file} \
|
|
|
|
${PKG_SYSCONFDIR}/$${file}.default; \
|
|
|
|
fi; \
|
|
|
|
${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file}.default \
|
|
|
|
${EGDIR}/$${file}; \
|
|
|
|
${RM} -f ${PKG_SYSCONFDIR}/$${file}.default; \
|
|
|
|
done
|
|
|
|
|
2001-10-26 15:41:27 +02:00
|
|
|
.include "../../security/openssl/buildlink.mk"
|
2001-12-31 09:36:09 +01:00
|
|
|
.include "../../security/tcp_wrappers/buildlink.mk"
|
|
|
|
.include "../../mk/pthread.buildlink.mk"
|
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
1999-01-07 17:49:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|