summaryrefslogtreecommitdiff
path: root/security
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
commit7ea57169b70316a5d22a9b09c3fd9c28a95a125e (patch)
tree2c1ba59d675cda30396491750acacf7e296dbd9d /security
parent3ba7f2fc2701c40d0e6a15fa1dbbba6a2a3b1968 (diff)
downloadpkgsrc-7ea57169b70316a5d22a9b09c3fd9c28a95a125e.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')
-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