blob: 0087c1ab1d912411150fa852814455af72dd457e (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: krb5.buildlink3.mk,v 1.12 2013/08/16 12:11:17 jperkin Exp $
#
# This Makefile fragment is meant to be included by packages that
# require a Kerberos 5 implementation. krb5.buildlink3.mk will:
#
# * set KRB5BASE to the base directory of the Kerberos 5 files;
# * set KRB5_TYPE to the Kerberos 5 implementation used.
#
# User-settable variables:
#
# KRB5_DEFAULT
# The default Kerberos 5 implementation to use.
#
# Possible values: heimdal mit-krb5
#
# Package-settable variables:
#
# KRB5_ACCEPTED
# The list of Kerberos 5 implementations that can be used by the
# package.
#
# Possible values: (see KRB5_DEFAULT)
#
# Keywords: kerberos heimdal krb krb5 mit-krb5
KRB5_BUILDLINK3_MK:= ${KRB5_BUILDLINK3_MK}+
.include "../../mk/bsd.prefs.mk"
.if !empty(KRB5_BUILDLINK3_MK:M+)
KRB5_DEFAULT?= heimdal
KRB5_ACCEPTED?= ${_KRB5_PKGS}
# This is an exhaustive list of all of the Kerberos 5 implementations
# that may be used with krb5.buildlink3.mk, in order of precedence.
#
_KRB5_PKGS?= heimdal mit-krb5
_KRB5_DEFAULT= ${KRB5_DEFAULT}
_KRB5_ACCEPTED= ${KRB5_ACCEPTED}
_KRB5_TYPE?= ${_KRB5_DEFAULT}
. if !empty(_KRB5_ACCEPTED:M${_KRB5_TYPE})
KRB5_TYPE= ${_KRB5_TYPE}
. else
KRB5_TYPE= none
. endif
KRB5BASE= ${BUILDLINK_PREFIX.${KRB5_TYPE}}
BUILD_DEFS+= KRB5_DEFAULT
BUILD_DEFS_EFFECTS+= KRB5BASE KRB5_TYPE
# Packages that use Kerberos are automatically categorized as restricted
# packages.
#
CRYPTO+= uses Kerberos encryption code
.endif # KRB5_BUILDLINK3_MK
.if ${KRB5_TYPE} == "none"
PKG_FAIL_REASON= \
"${_KRB5_TYPE} is not an acceptable Kerberos 5 type for ${PKGNAME}."
.elif ${KRB5_TYPE} == "heimdal"
. include "../../security/heimdal/buildlink3.mk"
.elif ${KRB5_TYPE} == "mit-krb5"
. include "../../security/mit-krb5/buildlink3.mk"
.endif
|