diff options
author | jlam <jlam@pkgsrc.org> | 2004-08-12 10:09:49 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-08-12 10:09:49 +0000 |
commit | b71dff26a8b79eace01b3dd857c96f9d3778f6f2 (patch) | |
tree | 72e47c272d66950c23e189393ef3508c952ee638 /security/PAM | |
parent | dbc0fc3737883f74764056dd495dc58d84a3ca79 (diff) | |
download | pkgsrc-b71dff26a8b79eace01b3dd857c96f9d3778f6f2.tar.gz |
First cut at supporting the built-in PAM on MacOS X. It's not the
same as Linux-PAM, but it's close enough for the purposes of compiling
programs.
Diffstat (limited to 'security/PAM')
-rw-r--r-- | security/PAM/builtin.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/security/PAM/builtin.mk b/security/PAM/builtin.mk index d8edc94d848..9de5ba6ab7a 100644 --- a/security/PAM/builtin.mk +++ b/security/PAM/builtin.mk @@ -1,6 +1,7 @@ -# $NetBSD: builtin.mk,v 1.6 2004/08/06 15:43:09 jlam Exp $ +# $NetBSD: builtin.mk,v 1.7 2004/08/12 10:09:49 jlam Exp $ .include "../../mk/bsd.prefs.mk" +_PAM_PAM_APPL_H= /usr/include/pam/pam_appl.h _SECURITY_PAM_APPL_H= /usr/include/security/pam_appl.h @@ -12,4 +13,22 @@ IS_BUILTIN.pam= yes . endif .endif # IS_BUILTIN.pam +.if !defined(USE_BUILTIN.pam) USE_BUILTIN.pam?= ${IS_BUILTIN.pam} +. if empty(_PAM_PAM_APPL_H:M${LOCALBASE}/*) && exists(${_PAM_PAM_APPL_H}) +# +# Treat MacOS X's PAM implementation as Linux-PAM-compatible. +# +USE_BUILTIN.pam= yes +. endif +.endif + +CHECK_BUILTIN.pam?= no +.if !empty(CHECK_BUILTIN.pam:M[nN][oO]) + +.if !empty(USE_BUILTIN.pam:M[yY][eE][sS]) +BUILDLINK_TRANSFORM.pam+= -e "s|/include/pam/|/include/security/|" +BUILDLINK_FILES.pam+= include/pam/*.h +.endif + +.endif # CHECK_BUILTIN.pam |