2006-07-31 12:43:09 +00:00
|
|
|
#
|
2009-04-21 11:38:28 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-07-31 12:43:09 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bind
|
2009-07-26 20:20:54 +00:00
|
|
|
PKG_VERSION:=9.6.0-P1
|
|
|
|
PKG_RELEASE:=1
|
2006-07-31 12:43:09 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-12-08 14:54:55 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
ftp://ftp.isc.org/isc/bind9/$(PKG_VERSION) \
|
|
|
|
http://www.mirrorservice.org/sites/ftp.isc.org/isc/bind9/$(PKG_VERSION)
|
2009-07-26 20:20:54 +00:00
|
|
|
PKG_MD5SUM:=886b7eae55cfdc8cd8d2ca74a2f99c6e
|
2006-07-31 12:43:09 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/bind/Default
|
2006-07-31 12:43:09 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-12-20 17:59:33 +00:00
|
|
|
DEPENDS:=+bind-libs +libopenssl
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=bind
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=https://www.isc.org/software/bind
|
2007-12-28 14:31:18 +00:00
|
|
|
SUBMENU:=DNS
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-08 09:00:24 +00:00
|
|
|
define Package/bind-libs
|
2007-10-08 16:45:37 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=bind shared libraries
|
|
|
|
URL:=http://www.isc.org/sw/bind/
|
2007-12-28 14:31:18 +00:00
|
|
|
SUBMENU:=DNS
|
2007-10-08 09:00:24 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-31 12:43:09 +00:00
|
|
|
define Package/bind-server
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= DNS server
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-client
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= dynamic DNS client
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-tools
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= administration tools (all)
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-rndc
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= administration tools (rndc and rndc-confgen only)
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-check
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= administration tools (named-checkconf and named-checkzone only)
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-dnssec
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= administration tools (dnssec-keygen and dnssec-signzone only)
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-host
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= simple DNS client
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-dig
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bind/Default)
|
|
|
|
TITLE+= DNS excavation tool
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 18:14:33 +00:00
|
|
|
export BUILD_CC="$(TARGET_CC)"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2006-10-16 20:22:31 +00:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2006-10-30 13:51:50 +00:00
|
|
|
--with-randomdev="/dev/urandom" \
|
2006-10-16 20:22:31 +00:00
|
|
|
--disable-threads \
|
2006-10-30 13:51:50 +00:00
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
2006-10-16 20:22:31 +00:00
|
|
|
--with-libtool \
|
2008-07-13 12:37:59 +00:00
|
|
|
--with-libxml2=no \
|
2007-09-09 18:14:33 +00:00
|
|
|
, \
|
|
|
|
BUILD_CC="$(TARGET_CC)" \
|
2006-07-31 12:43:09 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/lib/dns \
|
2007-09-09 18:14:33 +00:00
|
|
|
BUILD_CC="$(HOSTCC)" \
|
2006-07-31 12:43:09 +00:00
|
|
|
CC="$(HOSTCC)" \
|
|
|
|
CFLAGS="-O2" \
|
2007-04-01 13:36:03 +00:00
|
|
|
LIBS="" \
|
2006-07-31 12:43:09 +00:00
|
|
|
gen
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2007-09-09 18:14:33 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-07-31 12:43:09 +00:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
2007-10-08 09:00:24 +00:00
|
|
|
define Package/bind-libs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
2006-07-31 12:43:09 +00:00
|
|
|
define Package/bind-server/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2007-12-10 17:50:31 +00:00
|
|
|
$(CP) ./files/bind $(1)/etc/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2008-04-05 09:31:20 +00:00
|
|
|
$(INSTALL_BIN) ./files/named.init $(1)/etc/init.d/named
|
2006-10-30 13:51:50 +00:00
|
|
|
find $(1)/etc/bind/ -name ".svn" | xargs rm -rf
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-client/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(1)/usr/bin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-tools/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dig $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/host $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(1)/usr/sbin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-rndc/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(1)/usr/sbin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-check/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(1)/usr/sbin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-dnssec/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(1)/usr/sbin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-host/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/host $(1)/usr/bin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bind-dig/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dig $(1)/usr/bin/
|
2006-07-31 12:43:09 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-08 09:00:24 +00:00
|
|
|
$(eval $(call BuildPackage,bind-libs))
|
2006-07-31 12:43:09 +00:00
|
|
|
$(eval $(call BuildPackage,bind-server))
|
|
|
|
$(eval $(call BuildPackage,bind-client))
|
|
|
|
$(eval $(call BuildPackage,bind-tools))
|
|
|
|
$(eval $(call BuildPackage,bind-rndc))
|
|
|
|
$(eval $(call BuildPackage,bind-check))
|
|
|
|
$(eval $(call BuildPackage,bind-dnssec))
|
|
|
|
$(eval $(call BuildPackage,bind-host))
|
|
|
|
$(eval $(call BuildPackage,bind-dig))
|