2006-01-25 21:56:55 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# bind
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-12-03 17:19:27 +01:00
|
|
|
|
2010-02-01 17:53:12 +01:00
|
|
|
BIND_VERSION = 9.5.2-P2
|
2009-03-05 13:11:36 +01:00
|
|
|
BIND_SITE = ftp://ftp.isc.org/isc/bind9/$(BIND_VERSION)
|
|
|
|
BIND_LIBTOOL_PATCH = NO
|
|
|
|
BIND_INSTALL_STAGING = NO
|
|
|
|
BIND_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
|
|
|
BIND_TARGET_SBINS = lwresd named named-checkconf named-checkzone
|
|
|
|
BIND_TARGET_SBINS += named-compilezone rndc rndc-confgen
|
|
|
|
BIND_TARGET_SBINS += dnssec-keygen dnssec-signzone
|
|
|
|
BIND_TARGET_BINS = dig host nslookup nsupdate
|
|
|
|
BIND_TARGET_LIBS = libbind9.* libdns.* libisccc.* libisccfg.* libisc.* liblwres.*
|
|
|
|
BIND_CONF_ENV = BUILD_CC="$(TARGET_CC)" \
|
|
|
|
BUILD_CFLAGS="$(TARGET_CFLAGS)"
|
2010-03-22 14:29:00 +01:00
|
|
|
BIND_CONF_OPT = \
|
2006-01-25 21:56:55 +01:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2009-03-05 13:11:36 +01:00
|
|
|
--with-randomdev=/dev/urandom \
|
|
|
|
--with-openssl=no \
|
|
|
|
--with-libxml2=no \
|
2006-04-14 21:25:54 +02:00
|
|
|
--with-pic \
|
2009-03-05 13:11:36 +01:00
|
|
|
--with-libtool \
|
|
|
|
--disable-epoll \
|
|
|
|
--disable-threads
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2009-03-05 13:11:36 +01:00
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/, $(BIND_TARGET_SBINS))
|
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_BINS))
|
|
|
|
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
|
|
|
|
2010-09-01 17:04:32 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,bind))
|