1 # $NetBSD: options.mk,v 1.10 2006/05/31 18:22:25 ghen Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.cyrus-saslauthd
4 PKG_SUPPORTED_OPTIONS= pam kerberos ldap gssapi
6 .include "../../mk/bsd.options.mk"
9 ### PAM (Pluggable Authentication Mechanism)
11 .if !empty(PKG_OPTIONS:Mpam)
12 . include "../../mk/pam.buildlink3.mk"
13 CONFIGURE_ARGS+= --with-pam=${PAMBASE:Q}
15 CONFIGURE_ARGS+= --without-pam
19 ### Authentication against information stored in an LDAP directory
22 .if !empty(PKG_OPTIONS:Mldap)
23 . include "../../databases/openldap-client/buildlink3.mk"
24 . include "../../security/cyrus-sasl/buildlink3.mk"
25 BUILDLINK_INCDIRS.cyrus-sasl= include/sasl
26 CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
29 CONFIGURE_ARGS+= --without-ldap
33 ### Kerberos authentication is via GSSAPI.
35 .if !empty(PKG_OPTIONS:Mkerberos)
36 . if empty(PKG_OPTIONS:Mgssapi)
42 ### Authentication via GSSAPI (which supports primarily Kerberos 5)
44 .if !empty(PKG_OPTIONS:Mgssapi)
45 . include "../../mk/krb5.buildlink3.mk"
46 CONFIGURE_ARGS+= --enable-gssapi=${KRB5BASE:Q}
47 CONFIGURE_ARGS+= --with-gss_impl=${GSSIMPL.${KRB5_TYPE}}
48 GSSIMPL.heimdal= heimdal