Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (43 sloc) 1.493 kb
1a3f73fe » jlam
2005-06-01 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
1 # $NetBSD: solaris-pam.builtin.mk,v 1.3 2005/06/01 18:03:06 jlam Exp $
fa11e8ae » jlam
2005-01-14 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
2
1a3f73fe » jlam
2005-06-01 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
3 BUILTIN_PKG:= solaris-pam
fa11e8ae » jlam
2005-01-14 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
4
1a3f73fe » jlam
2005-06-01 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
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 ###
fa11e8ae » jlam
2005-01-14 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
15 .if !defined(IS_BUILTIN.solaris-pam)
1a3f73fe » jlam
2005-06-01 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
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
fa11e8ae » jlam
2005-01-14 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
22
1a3f73fe » jlam
2005-06-01 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
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_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
Something went wrong with that request. Please try again.