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 /net/bind9 | |
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 'net/bind9')
-rw-r--r-- | net/bind9/builtin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk index b0108fe5482..a7597d7bb72 100644 --- a/net/bind9/builtin.mk +++ b/net/bind9/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.9 2005/06/26 04:05:41 jlam Exp $ +# $NetBSD: builtin.mk,v 1.10 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= bind @@ -13,7 +13,8 @@ BUILTIN_FIND_LIBS:= bind ### system. ### .if !defined(BUILTIN_VERSION.bind) && \ - empty(EXE_NAMED:M${LOCALBASE}/*) && exists(${EXE_NAMED}) + empty(EXE_NAMED:M__nonexistent__) && \ + empty(EXE_NAMED:M${LOCALBASE}/*) BUILTIN_VERSION.bind!= \ ${EXE_NAMED} -v 2>/dev/null | ${HEAD} -1 | \ ${AWK} 'BEGIN { v = "4.9.11"; } \ |