aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd23
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2004-08-30 23:25:10 +0800
committerume <ume@FreeBSD.org>2004-08-30 23:25:10 +0800
commit42ddceb69438aae4cd766c64bc611030586e9fd2 (patch)
treed6d839157f53153b8a409e135c2d5b57dcbbbf0f /mail/cyrus-imapd23
parente5f374e774d246102b03c17cccf4ad3d8e9701fc (diff)
downloadfreebsd-ports-gnome-42ddceb69438aae4cd766c64bc611030586e9fd2.tar.gz
freebsd-ports-gnome-42ddceb69438aae4cd766c64bc611030586e9fd2.tar.zst
freebsd-ports-gnome-42ddceb69438aae4cd766c64bc611030586e9fd2.zip
add AUTH_KRB5 option to use Kerberos5 authorization module.
Requested by: Volodymyr Kostyrko <arcade@ints.net>
Diffstat (limited to 'mail/cyrus-imapd23')
-rw-r--r--mail/cyrus-imapd23/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile
index d20a1da87f8c..28b359062ac9 100644
--- a/mail/cyrus-imapd23/Makefile
+++ b/mail/cyrus-imapd23/Makefile
@@ -38,28 +38,29 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-openssl=${OPENSSLBASE} \
--with-perl=${PERL5}
+OPTIONS= AUTH_KRB5 "Use Kerberos5 authorization module" off
.if defined(WITH_BDB_VER)
USE_BDB_VER= ${WITH_BDB_VER}
.else
USE_BDB_VER= 3
.endif
.if ${USE_BDB_VER} == 3
-OPTIONS= BDB_3 "Use BerkeleyDB v3" on \
+OPTIONS+= BDB_3 "Use BerkeleyDB v3" on \
BDB_4 "Use BerkeleyDB v4" off \
BDB_41 "Use BerkeleyDB v4.1" off \
BDB_42 "Use BerkeleyDB v4.2" off
.elif ${USE_BDB_VER} == 4
-OPTIONS= BDB_3 "Use BerkeleyDB v3" off \
+OPTIONS+= BDB_3 "Use BerkeleyDB v3" off \
BDB_4 "Use BerkeleyDB v4" on \
BDB_41 "Use BerkeleyDB v4.1" off \
BDB_42 "Use BerkeleyDB v4.2" off
.elif ${USE_BDB_VER} == 41
-OPTIONS= BDB_3 "Use BerkeleyDB v3" off \
+OPTIONS+= BDB_3 "Use BerkeleyDB v3" off \
BDB_4 "Use BerkeleyDB v4" off \
BDB_41 "Use BerkeleyDB v4.1" on \
BDB_42 "Use BerkeleyDB v4.2" off
.elif ${USE_BDB_VER} == 42
-OPTIONS= BDB_3 "Use BerkeleyDB v3" off \
+OPTIONS+= BDB_3 "Use BerkeleyDB v3" off \
BDB_4 "Use BerkeleyDB v4" off \
BDB_41 "Use BerkeleyDB v4.1" off \
BDB_42 "Use BerkeleyDB v4.2" on
@@ -182,10 +183,16 @@ CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
CONFIGURE_ARGS+=--with-snmp=no
.endif
+.if defined(WITH_AUTH_KRB5) && defined(WITH_LDAP_PTLOADER)
+BROKEN= "AUTH_KRB5 and LDAP_PTLOADER are exclusive. Run 'make config' again!"
+.endif
.if defined(WITH_LDAP_PTLOADER)
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--with-auth=pts --with-pts=ldap --with-ldap=${LOCALBASE}
PLIST_SUB+= LDAP_PTLOADER=""
+.elif defined(WITH_AUTH_KRB5)
+CONFIGURE_ARGS+=--with-auth=krb5
+PLIST_SUB+= LDAP_PTLOADER="@comment "
.else
CONFIGURE_ARGS+=--with-auth=unix
PLIST_SUB+= LDAP_PTLOADER="@comment "