summaryrefslogtreecommitdiff
path: root/net/bind9
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
commitea3886e8182068a8074cb6afadf327d5193fb1c8 (patch)
tree0ffad8e648a6ed8a4a3639158623ea633d0d8208 /net/bind9
parentf186298486fc0597b1c85d84ab19afb75b5bfb59 (diff)
downloadpkgsrc-ea3886e8182068a8074cb6afadf327d5193fb1c8.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/bind9')
-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