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 | 5821c0669819ba2f9f227b1d2e4caae4e6e92a56 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /security/pflkm | |
parent | 4ebb7715f4e802673023e1e6a936e6c0d9ada427 (diff) | |
download | pkgsrc-5821c0669819ba2f9f227b1d2e4caae4e6e92a56.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 |