utilize USE_OPENLDAP

This commit is contained in:
Oliver Lehmann 2003-11-21 22:47:14 +00:00
parent 91c9a487dc
commit 13c5a064e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94679
5 changed files with 10 additions and 32 deletions

View file

@ -32,10 +32,7 @@ USE_GMAKE= yes
# WITH_VPOPMAIL: Build in vpopmail support
# WITH_MYSQL: Build in mysql support
# WITH_POSTGRESQL: Build in postgresql support
# WITH_LDAP: Build in ldap support with openldap 2.1
# WITH_LDAP21: Build in ldap support with openldap 2.1
# WITH_LDAP20: Build in ldap support with openldap 2.0
# WITH_LDAP1: Build in ldap support with openldap 1.x
# WITH_LDAP: Build in ldap support with openldap
# WITH_FAM: Build in fam support for IDLE command
# WITH_TRASHQUOTA: Include deleted mails in the quota
#
@ -84,26 +81,7 @@ CONFIGURE_ARGS+=--with-trashquota
.endif
.if defined(WITH_LDAP)
WITH_LDAP21= yes
.endif
.if !defined(WITH_LDAP1) && !defined(WITH_LDAP20) && !defined(WITH_LDAP21)
CONFIGURE_ARGS+=--without-authldap
PLIST_SUB+= LDAPFLAG="@comment "
.else
CONFIGURE_ARGS+=--with-authldap
PLIST_SUB+= LDAPFLAG=""
.if defined(WITH_LDAP21)
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap21-client \
lber.2:${PORTSDIR}/net/openldap21-client
.elseif defined(WITH_LDAP20)
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap20-client \
lber.2:${PORTSDIR}/net/openldap20-client
.else
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap12 \
lber.1:${PORTSDIR}/net/openldap12
.endif
USE_OPENLDAP= yes
.endif
.if !defined(WITH_MYSQL)

View file

@ -68,10 +68,10 @@ LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
CONFIGURE_ARGS+=--disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap

View file

@ -68,10 +68,10 @@ LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
CONFIGURE_ARGS+=--disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap

View file

@ -68,10 +68,10 @@ LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
CONFIGURE_ARGS+=--disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap

View file

@ -68,10 +68,10 @@ LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
CONFIGURE_ARGS+=--disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap