Permalink
Newer
Older
100644 49 lines (43 sloc) 1.46 KB
1
# $NetBSD: solaris-pam.builtin.mk,v 1.4 2006/04/06 06:23:06 reed Exp $
5
BUILTIN_FIND_FILES_VAR:= H_SOLARIS_PAM
6
BUILTIN_FIND_FILES.H_SOLARIS_PAM= /usr/include/security/pam_appl.h
7
BUILTIN_FIND_GREP.H_SOLARIS_PAM= Copyright.*Sun Microsystems
8
9
.include "../../mk/buildlink3/bsd.builtin.mk"
10
11
###
12
### Determine if there is a built-in implementation of the package and
13
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
14
###
15
.if !defined(IS_BUILTIN.solaris-pam)
16
IS_BUILTIN.solaris-pam= no
17
. if empty(H_SOLARIS_PAM:M${LOCALBASE}/*) && exists(${H_SOLARIS_PAM})
18
IS_BUILTIN.solaris-pam= yes
19
. endif
20
.endif
21
MAKEVARS+= IS_BUILTIN.solaris-pam
23
###
24
### Determine whether we should use the built-in implementation if it
25
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
26
###
27
.if !defined(USE_BUILTIN.solaris-pam)
28
. if ${PREFER.solaris-pam} == "pkgsrc"
29
USE_BUILTIN.solaris-pam= no
30
. else
31
USE_BUILTIN.solaris-pam= ${IS_BUILTIN.solaris-pam}
32
. if defined(BUILTIN_PKG.solaris-pam) && \
33
!empty(IS_BUILTIN.solaris-pam:M[yY][eE][sS])
34
USE_BUILTIN.solaris-pam= yes
35
. for _dep_ in ${BUILDLINK_API_DEPENDS.solaris-pam}
36
. if !empty(USE_BUILTIN.solaris-pam:M[yY][eE][sS])
37
USE_BUILTIN.solaris-pam!= \
38
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.solaris-pam:Q}; then \
39
${ECHO} yes; \
40
else \
41
${ECHO} no; \
42
fi
43
. endif
44
. endfor
45
. endif
46
. endif # PREFER.solaris-pam
47
.endif
48
MAKEVARS+= USE_BUILTIN.solaris-pam