[BACK]Return to krb5.buildlink3.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk

Annotation of pkgsrc/mk/krb5.buildlink3.mk, Revision 1.12

1.12    ! jperkin     1: # $NetBSD: krb5.buildlink3.mk,v 1.11 2007/03/07 10:42:30 rillig Exp $
1.2       jlam        2: #
                      3: # This Makefile fragment is meant to be included by packages that
                      4: # require a Kerberos 5 implementation.  krb5.buildlink3.mk will:
                      5: #
                      6: #      * set KRB5BASE to the base directory of the Kerberos 5 files;
                      7: #      * set KRB5_TYPE to the Kerberos 5 implementation used.
                      8: #
1.11      rillig      9: # User-settable variables:
1.2       jlam       10: #
1.11      rillig     11: # KRB5_DEFAULT
                     12: #      The default Kerberos 5 implementation to use.
1.2       jlam       13: #
1.11      rillig     14: #      Possible values: heimdal mit-krb5
                     15: #
                     16: # Package-settable variables:
                     17: #
                     18: # KRB5_ACCEPTED
                     19: #      The list of Kerberos 5 implementations that can be used by the
                     20: #      package.
                     21: #
                     22: #      Possible values: (see KRB5_DEFAULT)
                     23: #
                     24: # Keywords: kerberos heimdal krb krb5 mit-krb5
1.1       jlam       25:
                     26: KRB5_BUILDLINK3_MK:=   ${KRB5_BUILDLINK3_MK}+
                     27:
                     28: .include "../../mk/bsd.prefs.mk"
                     29:
1.6       jlam       30: .if !empty(KRB5_BUILDLINK3_MK:M+)
1.8       jlam       31: KRB5_DEFAULT?= heimdal
1.1       jlam       32: KRB5_ACCEPTED?=        ${_KRB5_PKGS}
                     33:
                     34: # This is an exhaustive list of all of the Kerberos 5 implementations
                     35: # that may be used with krb5.buildlink3.mk, in order of precedence.
                     36: #
1.7       jlam       37: _KRB5_PKGS?=   heimdal mit-krb5
1.1       jlam       38:
                     39: _KRB5_DEFAULT= ${KRB5_DEFAULT}
                     40: _KRB5_ACCEPTED=        ${KRB5_ACCEPTED}
                     41:
1.8       jlam       42: _KRB5_TYPE?=   ${_KRB5_DEFAULT}
                     43:
                     44: .  if !empty(_KRB5_ACCEPTED:M${_KRB5_TYPE})
                     45: KRB5_TYPE=     ${_KRB5_TYPE}
                     46: .  else
                     47: KRB5_TYPE=     none
1.1       jlam       48: .  endif
1.8       jlam       49: KRB5BASE=      ${BUILDLINK_PREFIX.${KRB5_TYPE}}
1.1       jlam       50:
1.10      rillig     51: BUILD_DEFS+=           KRB5_DEFAULT
                     52: BUILD_DEFS_EFFECTS+=   KRB5BASE KRB5_TYPE
1.1       jlam       53:
1.3       jlam       54: # Packages that use Kerberos are automatically categorized as restricted
                     55: # packages.
                     56: #
1.4       jlam       57: CRYPTO+=       uses Kerberos encryption code
1.8       jlam       58:
                     59: .endif # KRB5_BUILDLINK3_MK
                     60:
                     61: .if ${KRB5_TYPE} == "none"
                     62: PKG_FAIL_REASON=       \
                     63:        "${_KRB5_TYPE} is not an acceptable Kerberos 5 type for ${PKGNAME}."
                     64: .elif ${KRB5_TYPE} == "heimdal"
                     65: .  include "../../security/heimdal/buildlink3.mk"
                     66: .elif ${KRB5_TYPE} == "mit-krb5"
                     67: .  include "../../security/mit-krb5/buildlink3.mk"
1.6       jlam       68: .endif

CVSweb <webmaster@jp.NetBSD.org>