summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjlam <jlam>2004-08-12 10:09:49 +0000
committerjlam <jlam>2004-08-12 10:09:49 +0000
commit92451480e97649767c36d779211e864e1e94fde2 (patch)
tree72e47c272d66950c23e189393ef3508c952ee638 /security
parent1861358c4ff8af444e7e84017a44cb4ef4848a46 (diff)
downloadpkgsrc-92451480e97649767c36d779211e864e1e94fde2.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')
-rw-r--r--security/PAM/builtin.mk21
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