diff options
author | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
commit | 4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /security/pflkm | |
parent | b884195160fd50c9a83ede73dc5ebcb668e9ea8b (diff) | |
download | pkgsrc-4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5.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/pflkm')
-rw-r--r-- | security/pflkm/builtin.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/pflkm/builtin.mk b/security/pflkm/builtin.mk index a162d1402a2..a9695aeab83 100644 --- a/security/pflkm/builtin.mk +++ b/security/pflkm/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.8 2006/03/30 16:58:16 jlam Exp $ +# $NetBSD: builtin.mk,v 1.9 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= pflkm @@ -14,7 +14,7 @@ BUILTIN_FIND_FILES.EXE_PFCTL+= /sbin/pfctl # .if !defined(PF_VERSION) PF_VERSION= 3.7 # package default -. if exists(${H_PFLKM}) +. if empty(H_PFLKM:M__nonexistent__) # OpenBSD 3.8: pf_socket_lookup added _BLTN_PF_3_8!= ${GREP} -c pf_socket_lookup ${H_PFLKM} || ${TRUE} # OpenBSD 3.7: pf_threshold added @@ -41,7 +41,7 @@ MAKEVARS+= PF_VERSION ### .if !defined(IS_BUILTIN.pflkm) IS_BUILTIN.pflkm= no -. if empty(H_PFLKM:M${LOCALBASE}/*) && exists(${H_PFLKM}) +. if empty(H_PFLKM:M__nonexistent__) && empty(H_PFLKM:M${LOCALBASE}/*) IS_BUILTIN.pflkm= yes . endif .endif |