diff options
author | markd <markd@pkgsrc.org> | 2004-07-17 22:28:43 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2004-07-17 22:28:43 +0000 |
commit | 21de22507e0340ae891be8cd6b4ede176488ed70 (patch) | |
tree | 425fb2263205d6326fb7a6526d107329b5e629f8 /net/bind9 | |
parent | 2db0a0bb600da8e87e7996c4124e1fef2458b7ef (diff) | |
download | pkgsrc-21de22507e0340ae891be8cd6b4ede176488ed70.tar.gz |
Add builtin.mk to allow use of bind9 from the base OS.
Diffstat (limited to 'net/bind9')
-rw-r--r-- | net/bind9/builtin.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk new file mode 100644 index 00000000000..187cee461e1 --- /dev/null +++ b/net/bind9/builtin.mk @@ -0,0 +1,16 @@ +# $NetBSD: builtin.mk,v 1.1 2004/07/17 22:28:43 markd 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' +. endif +. if defined(_BIND_VERSION) && !empty(_BIND_VERSION) +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} |