2008-04-13 00:42:57 +02:00
|
|
|
# $NetBSD: options.mk,v 1.11 2008/04/12 22:43:09 jlam Exp $
|
2004-07-30 23:05:41 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.cyrus-saslauthd
|
2005-05-31 13:24:32 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= pam kerberos ldap gssapi
|
2006-04-19 19:50:52 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### PAM (Pluggable Authentication Mechanism)
|
|
|
|
###
|
2005-05-31 13:24:32 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
2005-01-14 06:15:39 +01:00
|
|
|
. include "../../mk/pam.buildlink3.mk"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pam=${PAMBASE:Q}
|
2006-04-19 19:50:52 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pam
|
2004-07-30 23:05:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Authentication against information stored in an LDAP directory
|
|
|
|
###
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= ldap
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
2006-05-31 20:22:23 +02:00
|
|
|
. include "../../databases/openldap-client/buildlink3.mk"
|
2006-04-13 23:35:24 +02:00
|
|
|
. include "../../security/cyrus-sasl/buildlink3.mk"
|
2004-07-30 23:05:41 +02:00
|
|
|
BUILDLINK_INCDIRS.cyrus-sasl= include/sasl
|
2006-05-31 20:22:23 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.ldap= yes
|
2004-07-30 23:05:41 +02:00
|
|
|
.else
|
2006-04-19 19:50:52 +02:00
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
2004-07-30 23:05:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### 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"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gssapi=${KRB5BASE:Q}
|
2004-07-30 23:05:41 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gss_impl=${GSSIMPL.${KRB5_TYPE}}
|
|
|
|
GSSIMPL.heimdal= heimdal
|
|
|
|
GSSIMPL.mit-krb5= mit
|
|
|
|
.endif
|