blob: be8f7cd351e9406b755dfa074d6208a8f0a21e47 (
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
69
70
71
72
73
74
|
# $NetBSD: buildlink2.mk,v 1.8 2004/03/29 05:05:45 jlam Exp $
.if !defined(PAM_BUILDLINK2_MK)
PAM_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
BUILDLINK_PKGBASE.pam?= PAM
BUILDLINK_DEPENDS.pam?= PAM>=0.75
BUILDLINK_PKGSRCDIR.pam?= ../../security/PAM
.if exists(/usr/include/security/pam_appl.h)
_BUILTIN_PAM= YES
.else
_BUILTIN_PAM= NO
.endif
.if ${_BUILTIN_PAM} == "YES"
_NEED_PAM= NO
.else
_NEED_PAM= YES
.endif
.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
${_BUILTIN_PAM} == "YES"
_NEED_PAM= NO
.endif
.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
_NEED_PAM= YES
.endif
.if !empty(PREFER_NATIVE:Mpam) && \
${_BUILTIN_PAM} == "YES"
_NEED_PAM= NO
.endif
.if !empty(PREFER_PKGSRC:Mpam)
_NEED_PAM= YES
.endif
.if ${_NEED_PAM} == "YES"
BUILDLINK_PACKAGES+= pam
EVAL_PREFIX+= BUILDLINK_PREFIX.pam=PAM
BUILDLINK_PREFIX.pam_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.pam= include/security/*
BUILDLINK_FILES.pam+= lib/libpam.*
BUILDLINK_FILES.pam+= lib/libpamc.*
BUILDLINK_FILES.pam+= lib/libpam_misc.*
BUILDLINK_TARGETS+= pam-buildlink
pam-buildlink: _BUILDLINK_USE
.else
# The PAM libraries are usually in /lib on Linux systems while the headers
# are in /usr/include.
#
BUILDLINK_PREFIX.pam= /usr
BUILDLINK_PREFIX.pam-inc= /usr
BUILDLINK_FILES.pam-inc= include/security/*
BUILDLINK_PREFIX.pam-lib= /
BUILDLINK_FILES.pam-lib+= lib/libpam.*
BUILDLINK_FILES.pam-lib+= lib/libpamc.*
BUILDLINK_FILES.pam-lib+= lib/libpam_misc.*
BUILDLINK_TARGETS+= pam-inc-buildlink
BUILDLINK_TARGETS+= pam-lib-buildlink
pam-inc-buildlink: _BUILDLINK_USE
pam-lib-buildlink: _BUILDLINK_USE
.endif # _NEED_PAM
.endif # PAM_BUILDLINK2_MK
|