SPK_NAME = bind
SPK_VERS = 9.20.24
SPK_REV = 1

UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS)

OPTIONAL_DEPENDS = cross/bind_9.20 cross/bind_9.18 cross/bind_9.16

MAINTAINER = SynoCommunity
DESCRIPTION = BIND \(Berkeley Internet Name Domain\) is a complete, highly portable implementation of the DNS \(Domain Name System\) protocol.
STARTABLE = no

HOMEPAGE = https://www.isc.org/
LICENSE = MPL 2.0

SPK_COMMANDS = bin/arpaname bin/delv bin/dig bin/mdig

include ../../mk/spksrc.spk.mk

ifeq ($(call version_ge,${TCVERSION},7.0),1)
# DSM 7
ifneq ($(findstring $(ARCH),comcerto2k),$(ARCH))
DEPENDS += cross/bind_9.20
else
DEPENDS += cross/bind_9.18
SPK_VERS = 9.18.50
endif
else
# DSM 6
ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(ARMv7L_ARCHS)),$(ARCH))
DEPENDS += cross/bind_9.16
SPK_VERS = 9.16.50
else ifeq ($(ARCH)-$(TCVERSION),x86-5.2)
DEPENDS += cross/bind_9.16
SPK_VERS = 9.16.50
else
DEPENDS += cross/bind_9.18
SPK_VERS = 9.18.50
endif
endif
