diff options
Diffstat (limited to 'mail/cyrus-imapd23/Makefile')
-rw-r--r-- | mail/cyrus-imapd23/Makefile | 15 |
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 " |