2006-01-25 21:56:55 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# bind
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-12-03 17:19:27 +01:00
|
|
|
|
2012-01-26 17:51:20 +01:00
|
|
|
BIND_VERSION = 9.6-ESV-R5-P1
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_SITE = ftp://ftp.isc.org/isc/bind9/$(BIND_VERSION)
|
2011-07-24 14:02:25 +02:00
|
|
|
BIND_MAKE = $(MAKE1)
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_TARGET_SBINS = lwresd named named-checkconf named-checkzone
|
2011-05-03 20:33:42 +02:00
|
|
|
BIND_TARGET_SBINS += named-compilezone rndc rndc-confgen dnssec-dsfromkey
|
|
|
|
BIND_TARGET_SBINS += dnssec-keyfromlabel dnssec-keygen dnssec-signzone
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_TARGET_BINS = dig host nslookup nsupdate
|
2011-05-03 20:33:42 +02:00
|
|
|
BIND_TARGET_LIBS = libbind9.* libdns.* libisc.* libisccc.* libisccfg.* liblwres.*
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_CONF_ENV = BUILD_CC="$(TARGET_CC)" \
|
|
|
|
BUILD_CFLAGS="$(TARGET_CFLAGS)"
|
2011-05-03 20:33:42 +02:00
|
|
|
BIND_CONF_OPT = --sysconfdir=/etc \
|
2006-01-25 21:56:55 +01:00
|
|
|
--localstatedir=/var \
|
2009-03-05 13:11:36 +01:00
|
|
|
--with-randomdev=/dev/urandom \
|
2011-05-03 20:33:42 +02:00
|
|
|
--enable-epoll --with-libtool
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
BIND_CONF_OPT += --with-libxml2=$(STAGING_DIR)/usr
|
|
|
|
BIND_DEPENDENCIES += libxml2
|
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --with-libxml2=no
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
BIND_DEPENDENCIES += openssl
|
2011-05-19 19:23:29 +02:00
|
|
|
BIND_CONF_OPT += --with-openssl=$(STAGING_DIR)/usr
|
2011-05-03 20:33:42 +02:00
|
|
|
else
|
|
|
|
BIND_CONF_OPT += --with-openssl=no
|
|
|
|
endif
|
2006-01-25 21:56:55 +01:00
|
|
|
|
2010-09-01 17:04:32 +02:00
|
|
|
define BIND_TARGET_INSTALL_FIXES
|
2009-03-05 14:33:11 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/isc-config.sh
|
2010-09-01 17:04:32 +02:00
|
|
|
$(INSTALL) -m 0755 -D package/bind/bind.sysvinit $(TARGET_DIR)/etc/init.d/S81named
|
|
|
|
endef
|
|
|
|
|
|
|
|
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_INSTALL_FIXES
|
|
|
|
|
2011-10-15 05:07:31 +02:00
|
|
|
define BIND_TARGET_REMOVE_SERVER
|
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/, $(BIND_TARGET_SBINS))
|
|
|
|
endef
|
|
|
|
|
2010-09-01 17:04:32 +02:00
|
|
|
define BIND_TARGET_REMOVE_TOOLS
|
2009-03-05 13:11:36 +01:00
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_BINS))
|
2010-09-01 17:04:32 +02:00
|
|
|
endef
|
|
|
|
|
2011-10-15 05:07:31 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_BIND_SERVER),y)
|
|
|
|
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_SERVER
|
|
|
|
endif
|
|
|
|
|
2010-09-01 17:04:32 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_BIND_TOOLS),y)
|
|
|
|
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
|
|
|
|
2010-09-01 17:04:32 +02:00
|
|
|
define BIND_UNINSTALL_TARGET_CMDS
|
2011-10-15 05:07:31 +02:00
|
|
|
$(BIND_TARGET_REMOVE_SERVER)
|
|
|
|
$(BIND_TARGET_REMOVE_TOOLS)
|
2009-03-05 13:11:36 +01:00
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/lib/, $(BIND_TARGET_LIBS))
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S81named
|
2010-09-01 17:04:32 +02:00
|
|
|
endef
|
2006-01-25 21:56:55 +01:00
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|