2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2006-01-25 21:56:55 +01:00
|
|
|
#
|
|
|
|
# bind
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-12-03 17:19:27 +01:00
|
|
|
|
2014-06-24 21:44:25 +02:00
|
|
|
BIND_VERSION = 9.9.5-P1
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_SITE = ftp://ftp.isc.org/isc/bind9/$(BIND_VERSION)
|
2013-07-24 12:34:31 +02:00
|
|
|
BIND_INSTALL_STAGING = YES
|
2014-06-10 12:18:25 +02:00
|
|
|
BIND_CONFIG_SCRIPTS = bind9-config isc-config.sh
|
2013-01-22 04:35:47 +01:00
|
|
|
BIND_LICENSE = ISC
|
|
|
|
BIND_LICENSE_FILES = COPYRIGHT
|
2014-06-10 12:18:25 +02:00
|
|
|
BIND_TARGET_SERVER_SBIN = arpaname ddns-confgen dnssec-checkds dnssec-coverage
|
|
|
|
BIND_TARGET_SERVER_SBIN += dnssec-importkey dnssec-keygen dnssec-revoke
|
|
|
|
BIND_TARGET_SERVER_SBIN += dnssec-settime dnssec-verify genrandom
|
|
|
|
BIND_TARGET_SERVER_SBIN += isc-hmac-fixup named-journalprint nsec3hash
|
|
|
|
BIND_TARGET_SERVER_SBIN += lwresd named named-checkconf named-checkzone
|
|
|
|
BIND_TARGET_SERVER_SBIN += named-compilezone rndc rndc-confgen dnssec-dsfromkey
|
|
|
|
BIND_TARGET_SERVER_SBIN += dnssec-keyfromlabel dnssec-signzone
|
|
|
|
BIND_TARGET_TOOLS_BIN = dig host nslookup nsupdate
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_CONF_ENV = BUILD_CC="$(TARGET_CC)" \
|
|
|
|
BUILD_CFLAGS="$(TARGET_CFLAGS)"
|
2014-06-10 12:18:25 +02:00
|
|
|
BIND_CONF_OPT = --localstatedir=/var \
|
2009-03-05 13:11:36 +01:00
|
|
|
--with-randomdev=/dev/urandom \
|
2014-06-10 12:18:25 +02:00
|
|
|
--enable-epoll --with-libtool \
|
|
|
|
--with-gssapi=no --enable-rrl
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
BIND_CONF_OPT += --enable-linux-caps
|
|
|
|
BIND_DEPENDENCIES += libcap
|
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --disable-linux-caps
|
|
|
|
endif
|
2011-05-03 20:33:42 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
2014-06-10 12:18:25 +02:00
|
|
|
BIND_CONF_OPT += --with-libxml2=$(STAGING_DIR)/usr --enable-newstats
|
2011-05-03 20:33:42 +02:00
|
|
|
BIND_DEPENDENCIES += libxml2
|
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --with-libxml2=no
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
BIND_DEPENDENCIES += openssl
|
2014-07-30 22:10:26 +02:00
|
|
|
BIND_CONF_ENV += ac_cv_func_EVP_sha256=yes \
|
|
|
|
ac_cv_func_EVP_sha384=yes ac_cv_func_EVP_sha512=yes
|
2014-06-10 12:18:25 +02:00
|
|
|
BIND_CONF_OPT += --with-openssl=$(STAGING_DIR)/usr LIBS="-lz" \
|
|
|
|
--with-ecdsa=yes
|
|
|
|
# GOST cipher support requires openssl extra engines
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL_ENGINES),y)
|
|
|
|
BIND_CONF_OPT += --with-gost=yes
|
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --with-gost=no
|
|
|
|
endif
|
2011-05-03 20:33:42 +02:00
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --with-openssl=no
|
|
|
|
endif
|
2006-01-25 21:56:55 +01:00
|
|
|
|
2014-06-10 12:18:25 +02:00
|
|
|
# Used by dnssec-checkds and dnssec-coverage
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),)
|
|
|
|
BIND_CONF_OPT += --with-python=no
|
|
|
|
endif
|
2010-09-01 17:04:32 +02:00
|
|
|
|
2014-06-10 12:18:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
BIND_DEPENDENCIES += readline
|
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --with-readline=no
|
|
|
|
endif
|
2010-09-01 17:04:32 +02:00
|
|
|
|
2011-10-15 05:07:31 +02:00
|
|
|
define BIND_TARGET_REMOVE_SERVER
|
2014-06-10 12:18:25 +02:00
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/, $(BIND_TARGET_SERVER_SBIN))
|
2011-10-15 05:07:31 +02:00
|
|
|
endef
|
|
|
|
|
2010-09-01 17:04:32 +02:00
|
|
|
define BIND_TARGET_REMOVE_TOOLS
|
2014-06-10 12:18:25 +02:00
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_TOOLS_BIN))
|
2010-09-01 17:04:32 +02:00
|
|
|
endef
|
|
|
|
|
2014-06-10 12:18:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BIND_SERVER),y)
|
|
|
|
define BIND_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/bind/S81named \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S81named
|
|
|
|
endef
|
|
|
|
else
|
2011-10-15 05:07:31 +02:00
|
|
|
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_SERVER
|
|
|
|
endif
|
|
|
|
|
2014-06-10 12:18:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BIND_TOOLS),)
|
2010-09-01 17:04:32 +02:00
|
|
|
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_TOOLS
|
2009-03-05 13:11:36 +01:00
|
|
|
endif
|
2006-01-25 21:56:55 +01:00
|
|
|
|
2014-06-10 12:18:25 +02:00
|
|
|
define BIND_USERS
|
|
|
|
named -1 named -1 * /etc/bind - - BIND daemon
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|