summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-07-18 12:59:02 +0000
committermarkd <markd@pkgsrc.org>2004-07-18 12:59:02 +0000
commit77f5cb29f42f772de0b3884d7d5fdfc13f91ab6a (patch)
tree0ffad8e648a6ed8a4a3639158623ea633d0d8208 /net
parent7be0480587a4b5cbdb2cd1dc80df6800cf91c9d2 (diff)
downloadpkgsrc-77f5cb29f42f772de0b3884d7d5fdfc13f91ab6a.tar.gz
Redo original bind version test in way that doesnt result in a make
warning about null output from shell. We don't want to get a version number for bind versions older that 9 as that complicates the later tests.
Diffstat (limited to 'net')
-rw-r--r--net/bind9/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk
index 2dbe2420307..84ab69ac9f6 100644
--- a/net/bind9/builtin.mk
+++ b/net/bind9/builtin.mk
@@ -1,11 +1,11 @@
-# $NetBSD: builtin.mk,v 1.2 2004/07/18 11:22:13 tron Exp $
+# $NetBSD: builtin.mk,v 1.3 2004/07/18 12:59:02 markd Exp $
.if !defined(IS_BUILTIN.bind)
IS_BUILTIN.bind= no
. if exists(/usr/sbin/named)
-_BIND_VERSION!=/usr/sbin/named -v | ${HEAD} -1 | ${CUT} -d ' ' -f 2
+_BIND_VERSION!=${ECHO} 'vers ' && /usr/sbin/named -v | ${SED} -n 's/^BIND //p'
. endif
-. if defined(_BIND_VERSION) && !empty(_BIND_VERSION)
+. if defined(_BIND_VERSION) && !empty(_BIND_VERSION:Nvers)
IS_BUILTIN.bind= yes
BUILTIN_PKG.bind= bind-${_BIND_VERSION}
BUILDLINK_VARS+= BUILTIN_PKG.bind