summaryrefslogtreecommitdiff
path: root/security/PAM
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-06 15:37:20 +0000
committerjlam <jlam@pkgsrc.org>2004-08-06 15:37:20 +0000
commit10ca7ed4cacd2e44bb568dbbcb7d06a6cfd41c0a (patch)
tree2c1ba59d675cda30396491750acacf7e296dbd9d /security/PAM
parent928a2a8cb2afc63adfe515e5cf977f5b90ec4c5b (diff)
downloadpkgsrc-10ca7ed4cacd2e44bb568dbbcb7d06a6cfd41c0a.tar.gz
Redo previous to say what we really want: we don't care if ${LOCALBASE}
is "/usr", what we really want to check is if the pam_appl.h header found is within the ${LOCALBASE} hierarchy, which implies that it's a pkgsrc-controlled file, and hence not built-in.
Diffstat (limited to 'security/PAM')
-rw-r--r--security/PAM/builtin.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/security/PAM/builtin.mk b/security/PAM/builtin.mk
index 91c7ce1f3ce..8e96806732d 100644
--- a/security/PAM/builtin.mk
+++ b/security/PAM/builtin.mk
@@ -1,8 +1,13 @@
-# $NetBSD: builtin.mk,v 1.3 2004/08/06 03:14:22 reed Exp $
+# $NetBSD: builtin.mk,v 1.4 2004/08/06 15:37:20 jlam Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+_SECURITY_PAM_APPL_H= /usr/include/security/pam_appl.h
.if !defined(IS_BUILTIN.pam)
IS_BUILTIN.pam= no
-. if exists(/usr/include/security/pam_appl.h) && (${LOCALBASE} != "/usr")
+. if exists(${_SECURITY_PAM_APPL_H}) && \
+ !empty(_SECURITY_PAM_APPL_H:M${LOCALBASE}/*)
IS_BUILTIN.pam= yes
. endif
.endif # IS_BUILTIN.pam