diff options
author | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
commit | a35f9b4747edb8252e3b814ea5580fd22f62dc6b (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /security/tcp_wrappers | |
parent | a363c62fe6f0f041b9e87d700fa75aa44358a5d9 (diff) | |
download | pkgsrc-a35f9b4747edb8252e3b814ea5580fd22f62dc6b.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/tcp_wrappers')
-rw-r--r-- | security/tcp_wrappers/builtin.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/tcp_wrappers/builtin.mk b/security/tcp_wrappers/builtin.mk index d571b5df8e8..8537f44cf01 100644 --- a/security/tcp_wrappers/builtin.mk +++ b/security/tcp_wrappers/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.6 2005/06/01 18:03:21 jlam Exp $ +# $NetBSD: builtin.mk,v 1.7 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= tcp_wrappers @@ -14,8 +14,8 @@ BUILTIN_FIND_FILES.H_TCP_WRAPPERS= /usr/include/tcpd.h ### .if !defined(IS_BUILTIN.tcp_wrappers) IS_BUILTIN.tcp_wrappers= no -. if empty(H_TCP_WRAPPERS:M${LOCALBASE}/*) && \ - exists(${H_TCP_WRAPPERS}) && \ +. if empty(H_TCP_WRAPPERS:M__nonexistent__) && \ + empty(H_TCP_WRAPPERS:M${LOCALBASE}/*) && \ !empty(BUILTIN_LIB_FOUND.wrap:M[yY][eE][sS]) IS_BUILTIN.tcp_wrappers= yes . endif |