diff options
author | tron <tron> | 2005-08-03 09:43:58 +0000 |
---|---|---|
committer | tron <tron> | 2005-08-03 09:43:58 +0000 |
commit | 8ac688e2cc6128ed6c4f10bf4fd67bdf7c3454ae (patch) | |
tree | 913a1183c362238894cacbbbbe7b9c9fe1b9073c /mail | |
parent | d1f34945c177dde2f8dd872490b5d6a6201e5ffa (diff) | |
download | pkgsrc-8ac688e2cc6128ed6c4f10bf4fd67bdf7c3454ae.tar.gz |
Use package options framework to (de)active Kerberos support.
Diffstat (limited to 'mail')
-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 \ |