Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (43 sloc) 1.497 kb
fd434aa Over 1200 files touched but no revisions bumped :)
reed authored
1 # $NetBSD: solaris-pam.builtin.mk,v 1.4 2006/04/06 06:23:06 reed Exp $
43326a4 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
jlam authored
2
3cc0f66 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
jlam authored
3 BUILTIN_PKG:= solaris-pam
43326a4 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
jlam authored
4
3cc0f66 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
jlam authored
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 ###
43326a4 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
jlam authored
15 .if !defined(IS_BUILTIN.solaris-pam)
3cc0f66 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
jlam authored
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
43326a4 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
jlam authored
22
3cc0f66 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
jlam authored
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
fd434aa Over 1200 files touched but no revisions bumped :)
reed authored
35 . for _dep_ in ${BUILDLINK_API_DEPENDS.solaris-pam}
3cc0f66 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
jlam authored
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
Something went wrong with that request. Please try again.