pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/PAM Redo previous to say what we really want:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bd141303ad1
branches:  trunk
changeset: 479168:0bd141303ad1
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Aug 06 15:37:20 2004 +0000

description:
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:

 security/PAM/builtin.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 196c583b1513 -r 0bd141303ad1 security/PAM/builtin.mk
--- a/security/PAM/builtin.mk   Fri Aug 06 15:27:21 2004 +0000
+++ b/security/PAM/builtin.mk   Fri Aug 06 15:37:20 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index