summaryrefslogtreecommitdiff
path: root/net/bind9
diff options
context:
space:
mode:
authortron <tron>2004-07-18 11:22:13 +0000
committertron <tron>2004-07-18 11:22:13 +0000
commit5c9a5f924b67490d2d99d360b6076c9f08a2758e (patch)
tree88ede6532bccd3e80480412efc9a0d6632eeadc8 /net/bind9
parent7728ceebd2c389d9289b6f848e035c08070441e0 (diff)
downloadpkgsrc-5c9a5f924b67490d2d99d360b6076c9f08a2758e.tar.gz
Fix BIND version test to work with pre BIND 9 versions in NetBSD.
Diffstat (limited to 'net/bind9')
-rw-r--r--net/bind9/builtin.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk
index 187cee461e1..2dbe2420307 100644
--- a/net/bind9/builtin.mk
+++ b/net/bind9/builtin.mk
@@ -1,9 +1,9 @@
-# $NetBSD: builtin.mk,v 1.1 2004/07/17 22:28:43 markd Exp $
+# $NetBSD: builtin.mk,v 1.2 2004/07/18 11:22:13 tron Exp $
.if !defined(IS_BUILTIN.bind)
IS_BUILTIN.bind= no
. if exists(/usr/sbin/named)
-_BIND_VERSION!=/usr/sbin/named -v | ${SED} -n 's/^BIND //p'
+_BIND_VERSION!=/usr/sbin/named -v | ${HEAD} -1 | ${CUT} -d ' ' -f 2
. endif
. if defined(_BIND_VERSION) && !empty(_BIND_VERSION)
IS_BUILTIN.bind= yes