summaryrefslogtreecommitdiff
path: root/net/bind9
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-07-19 04:08:13 +0000
committermarkd <markd@pkgsrc.org>2004-07-19 04:08:13 +0000
commit1e747cba77338d9b4ab4f4a7a9ff06b727bd3fa2 (patch)
tree3bc2ce26b9f451191cc34634b6813bfaef876fe6 /net/bind9
parent42a7a3e72d07047db1ab7104b84d4e62ecbc8cd9 (diff)
downloadpkgsrc-1e747cba77338d9b4ab4f4a7a9ff06b727bd3fa2.tar.gz
Do package version handling properly.
Diffstat (limited to 'net/bind9')
-rw-r--r--net/bind9/builtin.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk
index 706953b66f3..6c0128f34c5 100644
--- a/net/bind9/builtin.mk
+++ b/net/bind9/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.4 2004/07/19 04:07:16 markd Exp $
+# $NetBSD: builtin.mk,v 1.5 2004/07/19 04:08:13 markd Exp $
.if !defined(IS_BUILTIN.bind)
IS_BUILTIN.bind= no
@@ -7,10 +7,24 @@ _BIND_VERSION!=${ECHO} 'vers ' && /usr/sbin/named -v | ${SED} -n 's/^BIND //p'
. endif
. if defined(_BIND_VERSION) && !empty(_BIND_VERSION:Nvers)
IS_BUILTIN.bind= yes
-BUILTIN_PKG.bind= bind-${_BIND_VERSION}
+BUILTIN_PKG.bind= bind-${_BIND_VERSION:Nvers}
BUILDLINK_VARS+= BUILTIN_PKG.bind
. endif
.endif # IS_BUILTIN.bind
BUILDLINK_VARS+= IS_BUILTIN.bind
+.if !defined(USE_BUILTIN.bind)
USE_BUILTIN.bind?= ${IS_BUILTIN.bind}
+. if defined(BUILTIN_PKG.bind)
+. for _depend_ in ${BUILDLINK_DEPENDS.bind}
+. if !empty(USE_BUILTIN.bind:M[yY][eE][sS])
+USE_BUILTIN.bind!= \
+ if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.bind}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+. endif
+. endfor
+. endif
+.endif # USE_BUILTIN.bind