Merge from vendor branch TNF:
[pkgsrc.git] / security / cyrus-saslauthd / options.mk
1 # $NetBSD: options.mk,v 1.10 2006/05/31 18:22:25 ghen Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.cyrus-saslauthd
4 PKG_SUPPORTED_OPTIONS=  pam kerberos ldap gssapi
5
6 .include "../../mk/bsd.options.mk"
7
8 ###
9 ### PAM (Pluggable Authentication Mechanism)
10 ###
11 .if !empty(PKG_OPTIONS:Mpam)
12 .  include "../../mk/pam.buildlink3.mk"
13 CONFIGURE_ARGS+=        --with-pam=${PAMBASE:Q}
14 .else
15 CONFIGURE_ARGS+=        --without-pam
16 .endif
17
18 ###
19 ### Authentication against information stored in an LDAP directory
20 ###
21 PLIST_VARS+=            ldap
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}
27 PLIST.ldap=             yes
28 .else
29 CONFIGURE_ARGS+=        --without-ldap
30 .endif
31
32 ###
33 ### Kerberos authentication is via GSSAPI.
34 ###
35 .if !empty(PKG_OPTIONS:Mkerberos)
36 .  if empty(PKG_OPTIONS:Mgssapi)
37 PKG_OPTIONS+=           gssapi
38 .  endif
39 .endif
40
41 ###
42 ### Authentication via GSSAPI (which supports primarily Kerberos 5)
43 ###
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
49 GSSIMPL.mit-krb5=       mit
50 .endif