summaryrefslogtreecommitdiff
path: root/security/tcp_wrappers
diff options
context:
space:
mode:
authorjlam <jlam>2006-03-30 18:06:17 +0000
committerjlam <jlam>2006-03-30 18:06:17 +0000
commita35f9b4747edb8252e3b814ea5580fd22f62dc6b (patch)
treea4e8c404ab7153a9727f5d7f913a25bdd6b97971 /security/tcp_wrappers
parenta363c62fe6f0f041b9e87d700fa75aa44358a5d9 (diff)
downloadpkgsrc-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.mk6
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