2004-07-18 14:59:02 +02:00
|
|
|
# $NetBSD: builtin.mk,v 1.3 2004/07/18 12:59:02 markd Exp $
|
2004-07-18 00:28:43 +02:00
|
|
|
|
|
|
|
.if !defined(IS_BUILTIN.bind)
|
|
|
|
IS_BUILTIN.bind= no
|
|
|
|
. if exists(/usr/sbin/named)
|
2004-07-18 14:59:02 +02:00
|
|
|
_BIND_VERSION!=${ECHO} 'vers ' && /usr/sbin/named -v | ${SED} -n 's/^BIND //p'
|
2004-07-18 00:28:43 +02:00
|
|
|
. endif
|
2004-07-18 14:59:02 +02:00
|
|
|
. if defined(_BIND_VERSION) && !empty(_BIND_VERSION:Nvers)
|
2004-07-18 00:28:43 +02:00
|
|
|
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}
|