summaryrefslogtreecommitdiff
path: root/net/bind9/builtin.mk
blob: 84ab69ac9f69ae7f8d4a3f54ecdeb78859d68bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# $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!=${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}
BUILDLINK_VARS+=        BUILTIN_PKG.bind
.  endif
.endif  # IS_BUILTIN.bind
BUILDLINK_VARS+=        IS_BUILTIN.bind

USE_BUILTIN.bind?=      ${IS_BUILTIN.bind}