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/heimdal | |
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/heimdal')
-rw-r--r-- | security/heimdal/builtin.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/security/heimdal/builtin.mk b/security/heimdal/builtin.mk index 24256a0973d..e212ea11135 100644 --- a/security/heimdal/builtin.mk +++ b/security/heimdal/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.7 2006/01/26 22:46:15 markd Exp $ +# $NetBSD: builtin.mk,v 1.8 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= heimdal @@ -16,7 +16,7 @@ BUILTIN_FIND_GREP.SH_KRB5_CONFIG= ^[ ]*--version) ### .if !defined(IS_BUILTIN.heimdal) IS_BUILTIN.heimdal= no -. if empty(H_HEIMDAL:M${LOCALBASE}/*) && exists(${H_HEIMDAL}) +. if empty(H_HEIMDAL:M__nonexistent__) && empty(H_HEIMDAL:M${LOCALBASE}/*) IS_BUILTIN.heimdal= yes . endif .endif @@ -28,7 +28,7 @@ MAKEVARS+= IS_BUILTIN.heimdal ### .if !defined(BUILTIN_PKG.heimdal) && \ !empty(IS_BUILTIN.heimdal:M[yY][eE][sS]) -. if exists(${SH_KRB5_CONFIG}) +. if empty(SH_KRB5_CONFIG:M__nonexistent__) BUILTIN_VERSION.heimdal!= ${SH_KRB5_CONFIG} --version | \ ${AWK} '{ print $$2; exit }' . else @@ -104,7 +104,8 @@ CONFIGURE_ENV+= KRB5_CONFIG=${KRB5_CONFIG:Q} MAKE_ENV+= KRB5_CONFIG=${KRB5_CONFIG:Q} . endif -. if !empty(USE_BUILTIN.heimdal:M[yY][eE][sS]) && !exists(${SH_KRB5_CONFIG}) +. if !empty(USE_BUILTIN.heimdal:M[yY][eE][sS]) && \ + !empty(SH_KRB5_CONFIG:M__nonexistent__) BUILDLINK_TARGETS+= fake-krb5-config fake-krb5-config: |