summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl2/Makefile.options
blob: a33fbc55c1f4da9ec25b4146c3a7192069979004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile.options,v 1.1 2004/07/30 21:05:41 jlam Exp $

# Global and legacy options
.if defined(KERBEROS) || defined(SASL_USE_GSSAPI)
.  if !defined(PKG_OPTIONS.cyrus-sasl)
.    if defined(KERBEROS) 
PKG_OPTIONS.cyrus-sasl+=	kerberos
.    endif
.    if defined(SASL_USE_GSSAPI) && !empty(SASL_USE_GSSAPI:M[yY][eE][sS])
PKG_OPTIONS.cyrus-sasl+=	gssapi
.    endif
.  endif
.endif

PKG_OPTIONS_VAR=	PKG_OPTIONS.cyrus-sasl
PKG_SUPPORTED_OPTIONS=	gssapi kerberos
.include "../../mk/bsd.options.mk"

###
### Kerberos authentication is via GSSAPI.
###
.if !empty(PKG_OPTIONS:Mkerberos)
.  if empty(PKG_OPTIONS:Mgssapi)
PKG_OPTIONS+=	gssapi
.  endif
.endif

###
### Authentication via GSSAPI (which supports primarily Kerberos 5)
###
.if !empty(PKG_OPTIONS:Mgssapi)
.  include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+=	--enable-gssapi=${KRB5BASE}
CONFIGURE_ARGS+=	--with-gss_impl=${GSSIMPL.${KRB5_TYPE}}
GSSIMPL.heimdal=	heimdal
GSSIMPL.mit-krb5=	mit
PLIST_SUBST+=		GSSAPI=
.else
PLIST_SUBST+=		GSSAPI="@comment "
.endif