2003-01-19 10:26:33 +01:00
|
|
|
# $NetBSD: Makefile,v 1.50 2003/01/19 09:26:33 skrll Exp $
|
1999-01-07 17:49:08 +01:00
|
|
|
|
2002-09-23 12:06:58 +02:00
|
|
|
DISTNAME= openldap-2.0.27
|
2003-01-19 10:26:33 +01:00
|
|
|
PKGREVISION= 1
|
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
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
USE_BUILDLINK2= YES
|
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-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
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
2002-08-25 20:38:05 +02:00
|
|
|
.include "../../databases/db/buildlink2.mk"
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.db}/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")
|
2002-08-25 20:38:05 +02:00
|
|
|
.include "../../security/cyrus-sasl/buildlink2.mk"
|
2002-02-01 19:32:34 +01:00
|
|
|
CONFIGURE_ARGS+= --with-cyrus-sasl
|
|
|
|
CONFIGURE_ARGS+= --enable-spasswd
|
|
|
|
.endif
|
|
|
|
|
2001-03-04 04:26:50 +01:00
|
|
|
.if defined(KERBEROS)
|
2002-06-15 23:19:59 +02:00
|
|
|
PKG_USE_KERBEROS= YES
|
2001-12-31 09:36:09 +01:00
|
|
|
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
|
|
|
|
|
2001-12-31 09:36:09 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/schema
|
|
|
|
for file in ${CNFS} ${CNFS_PERMS} ${SUPPS}; do \
|
2002-10-17 12:02:53 +02:00
|
|
|
if [ ! -r ${PKG_SYSCONFDIR}/$${file}.default ]; then \
|
2001-12-31 09:36:09 +01:00
|
|
|
${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
|
|
|
|
|
2002-08-01 07:48:00 +02:00
|
|
|
test:
|
|
|
|
-@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} test
|
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
.include "../../security/openssl/buildlink2.mk"
|
|
|
|
.include "../../security/tcp_wrappers/buildlink2.mk"
|
|
|
|
.include "../../mk/pthread.buildlink2.mk"
|
2002-08-01 07:48:00 +02:00
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "none")
|
|
|
|
CONFIGURE_ARGS+= --with-threads
|
|
|
|
PLIST_SRC= ${.CURDIR}/PLIST.slurpd ${.CURDIR}/PLIST
|
|
|
|
.endif
|
|
|
|
|
2001-12-31 09:36:09 +01:00
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
1999-01-07 17:49:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|