diff options
author | tron <tron@pkgsrc.org> | 2005-08-03 09:43:58 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2005-08-03 09:43:58 +0000 |
commit | 9304173a9fb4543b4d1e8e7e9904269aec9245a4 (patch) | |
tree | 913a1183c362238894cacbbbbe7b9c9fe1b9073c /mail/imap-uw | |
parent | fe34f5a72db956aef97e59de35751838b9ddff35 (diff) | |
download | pkgsrc-9304173a9fb4543b4d1e8e7e9904269aec9245a4.tar.gz |
Use package options framework to (de)active Kerberos support.
Diffstat (limited to 'mail/imap-uw')
-rw-r--r-- | mail/imap-uw/Makefile | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile index 46ea2cda8aa..61b5bc79c6a 100644 --- a/mail/imap-uw/Makefile +++ b/mail/imap-uw/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.96 2005/08/01 20:34:31 tron Exp $ +# $NetBSD: Makefile,v 1.97 2005/08/03 09:43:58 tron Exp $ # # ATTENTION: # The Kerberos support in this software is known to be problematic. If you @@ -39,24 +39,19 @@ BUILD_TARGET= sg6 BUILD_TARGET= sgi . endif .else -# USE_KERBEROS=no is explicitly set on NetBSD 1.x due to interoperability -# issues with later versions of OpenSSL (e.g. 0.9.7) BUILD_TARGET= neb -. if !empty(MACHINE_PLATFORM:MNetBSD-1.*) -USE_KERBEROS= no -. endif -. if defined(USE_KERBEROS) && ${USE_KERBEROS} != "no" -PKG_USE_KERBEROS= # defined -BUILD_TARGET+= EXTRAAUTHENTICATORS="gss" -. if !empty(MACHINE_PLATFORM:MNetBSD-1.5*) -# NetBSD-1.5 didn't have "des_new_random_key" in libcrypto -MAKE_ENV+= GSS_EXTRA_LDFLAGS="-ldes" -. endif + +# Kerberos is explicitly not enabled on NetBSD 1.x due to interoperability +# issues with later versions of OpenSSL (e.g. 0.9.7) +. if empty(MACHINE_PLATFORM:MNetBSD-1.*) +PKG_SUPPORTED_OPTIONS+= kerberos + +PKG_OPTIONS_LEGACY_VARS+= USE_KERBEROS:kerberos . endif .endif PKG_OPTIONS_VAR= PKG_OPTIONS.imap-uw -PKG_SUPPORTED_OPTIONS= inet6 +PKG_SUPPORTED_OPTIONS+= inet6 .include "../../mk/bsd.options.mk" @@ -66,6 +61,12 @@ MAKE_ENV+= IP=4 MAKE_ENV+= IP=6 .endif +.if !empty(PKG_OPTIONS:Mkerberos) +PKG_USE_KERBEROS= # defined + +BUILD_TARGET+= EXTRAAUTHENTICATORS="gss" +.endif + BUILD_DEFS+= IMAP_UW_CCLIENT_MBOX_FMT IMAP_UW_NO_CLEARTEXT IMAP_UW_USE_WHOSON CCLIENT_INCS= c-client.h env.h env_unix.h flocksim.h flstring.h \ fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h misc.h \ |