diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
commit | d71a98aa8eb185cc8c26f46f2502a25cb3135389 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /security/openpam | |
parent | 3987a638118f7f4cad35ee461afa830350d86564 (diff) | |
download | pkgsrc-d71a98aa8eb185cc8c26f46f2502a25cb3135389.tar.gz |
Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by
find-files.mk is "__nonexistent__" or not.
Diffstat (limited to 'security/openpam')
-rw-r--r-- | security/openpam/builtin.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/openpam/builtin.mk b/security/openpam/builtin.mk index 7b651c9b483..d014f858f03 100644 --- a/security/openpam/builtin.mk +++ b/security/openpam/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.4 2005/06/09 06:07:29 jlam Exp $ +# $NetBSD: builtin.mk,v 1.5 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= openpam @@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_OPENPAM= /usr/include/security/openpam_version.h ### .if !defined(IS_BUILTIN.openpam) IS_BUILTIN.openpam= no -. if empty(H_OPENPAM:M${LOCALBASE}/*) && exists(${H_OPENPAM}) +. if empty(H_OPENPAM:M__nonexistent__) && empty(H_OPENPAM:M${LOCALBASE}/*) IS_BUILTIN.openpam= yes . endif .endif @@ -25,7 +25,7 @@ MAKEVARS+= IS_BUILTIN.openpam ### .if !defined(BUILTIN_PKG.openpam) && \ !empty(IS_BUILTIN.openpam:M[yY][eE][sS]) && \ - exists(${H_OPENPAM}) + empty(H_OPENPAM:M__nonexistent__) BUILTIN_VERSION.openpam!= \ ${AWK} '/\#define[ ]*_OPENPAM_VERSION[ ]/ {print $$3; }' \ ${H_OPENPAM} |