summaryrefslogtreecommitdiff
path: root/net/bind9
diff options
context:
space:
mode:
authormarkd <markd>2004-07-19 04:08:13 +0000
committermarkd <markd>2004-07-19 04:08:13 +0000
commita07e9116b96e7a32c0dcbe68c0d3221dc540a4eb (patch)
tree3bc2ce26b9f451191cc34634b6813bfaef876fe6 /net/bind9
parent29ddc21912d032f2c072d6c941c67ec275b3ce6b (diff)
downloadpkgsrc-a07e9116b96e7a32c0dcbe68c0d3221dc540a4eb.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