summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-06-02 00:27:22 +0000
committerjlam <jlam@pkgsrc.org>2005-06-02 00:27:22 +0000
commit2467f4afb3ac9b8ef71271e8152f02563ad208b8 (patch)
treea0854827aad4bf2cf0c5bc4b1d78e023c92c0446 /net
parentdea41d4bcf7cb9d7e58c6fcd056898675c7cc473 (diff)
downloadpkgsrc-2467f4afb3ac9b8ef71271e8152f02563ad208b8.tar.gz
Check that a variable is defined before using it.
Diffstat (limited to 'net')
-rw-r--r--net/bind9/builtin.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk
index d313b6508c3..0e2987ef934 100644
--- a/net/bind9/builtin.mk
+++ b/net/bind9/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.7 2005/06/01 18:03:07 jlam Exp $
+# $NetBSD: builtin.mk,v 1.8 2005/06/02 00:27:22 jlam Exp $
BUILTIN_PKG:= bind
@@ -32,7 +32,8 @@ MAKEVARS+= IS_BUILTIN.bind
### a package name to represent the built-in package.
###
.if !defined(BUILTIN_PKG.bind) && \
- !empty(IS_BUILTIN.bind:M[yY][eE][sS])
+ !empty(IS_BUILTIN.bind:M[yY][eE][sS]) && \
+ defined(BUILTIN_VERSION.bind)
BUILTIN_PKG.bind= bind-${BUILTIN_VERSION.bind:Nvers}
.endif
MAKEVARS+= BUILTIN_PKG.bind