2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=ftp
://ftp.isc.org
/isc
/bind9
/9.3.1/
19 PKG_MD5SUM
:=9ff3204eea27184ea0722f37e43fc95d
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 PKG_BUILDDEP
:=libopenssl
26 include $(INCLUDE_DIR
)/package.mk
31 SUBMENU
:=ISC
's DNS suite implementation
33 TITLE:=ISC's DNS suite implementation
34 DESCRIPTION
:=ISC
's DNS suite implementation
35 URL:=http://www.isc.org/sw/bind/
38 define Package/bind-server
41 TITLE:=ISC's DNS server implementation
42 DESCRIPTION
:=ISC
's DNS server implementation
45 define Package/bind-client
48 TITLE:=A dynamic DNS client
49 DESCRIPTION:=A dynamic DNS client
52 define Package/bind-tools
55 TITLE:=Bind administration tools
56 DESCRIPTION:=A DNS client
59 define Package/bind-rndc
62 TITLE:=bind administration tools (rndc and rndc-confgen only)
63 DESCRIPTION:=bind administration tools (rndc and rndc-confgen only)
66 define Package/bind-check
69 TITLE:=bind administration tools (named-checkconf and named-checkzone only)
70 DESCRIPTION:=bind administration tools (named-checkconf and named-checkzone only)
73 define Package/bind-dnssec
76 TITLE:=Bind administration tools (dnssec-keygen and dnssec-signzone only)
77 DESCRIPTION:=Bind administration tools (dnssec-keygen and dnssec-signzone only)
80 define Package/bind-host
83 TITLE:=A simple DNS client
84 DESCRIPTION:=A simple DNS client
87 define Package/bind-dig
91 DESCRIPTION:=A DNS client
94 define Package/Build/Configure
95 $(call Build/Configure/Default,--enable-shared \
98 --with-randomdev=/dev/urandom \
100 --with-openssl=$(STAGING_DIR)/usr/
105 rm -rf $(PKG_INSTALL_DIR)
106 mkdir -p $(PKG_INSTALL_DIR)
107 $(MAKE) -C $(PKG_BUILD_DIR)/lib/dns \
111 $(MAKE) -C $(PKG_BUILD_DIR) \
112 DESTDIR="$(PKG_INSTALL_DIR)" \
113 STAGING_DIR=$(STAGING_DIR) \
117 define Package/bind-server/install
118 install -d -m0755 $(1)/usr/sbin
119 install -d -m0755 $(1)/etc/init.d
120 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named $(1)/usr/sbin/
121 $(CP) files/bind $(1)/etc
122 $(CP) files/named.init $(1)/etc/init.d/S$(PKG_INIT_LEVEL)named
123 find $(1)/etc/bind -name ".svn" | xargs rm -rf
126 define Package/bind-client/install
127 install -d -m0755 $(1)/usr/bin
128 $(CP) $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(1)/usr/bin/
131 define Package/bind-tools/install
132 install -d -m0755 $(1)/usr/bin
133 install -d -m0755 $(1)/usr/sbin
134 $(CP) $(PKG_INSTALL_DIR)/usr/bin/dig $(1)/usr/bin/
135 $(CP) $(PKG_INSTALL_DIR)/usr/bin/host $(1)/usr/bin/
136 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(1)/usr/sbin/
137 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(1)/usr/sbin/
138 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(1)/usr/sbin/
139 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(1)/usr/sbin/
140 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(1)/usr/sbin/
141 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(1)/usr/sbin/
144 define Package/bind-rndc/install
145 install -d -m0755 $(1)/usr/sbin
146 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(1)/usr/sbin/
147 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(1)/usr/sbin/
150 define Package/bind-check/install
151 install -d -m0755 $(1)/usr/sbin
152 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(1)/usr/sbin/
153 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(1)/usr/sbin/
156 define Package/bind-dnssec/install
157 install -d -m0755 $(1)/usr/sbin
158 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(1)/usr/sbin/
159 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(1)/usr/sbin/
162 define Package/bind-host/install
163 install -d -m0755 $(1)/usr/bin
164 $(CP) $(PKG_INSTALL_DIR)/usr/bin/host $(1)/usr/bin/
167 define Package/bind-dig/install
168 install -d -m0755 $(1)/usr/bin
169 $(CP) $(PKG_INSTALL_DIR)/usr/bin/dig $(1)/usr/bin/
172 $(eval $(call BuildPackage,bind-server))
173 $(eval $(call BuildPackage,bind-client))
174 $(eval $(call BuildPackage,bind-tools))
175 $(eval $(call BuildPackage,bind-rndc))
176 $(eval $(call BuildPackage,bind-check))
177 $(eval $(call BuildPackage,bind-dnssec))
178 $(eval $(call BuildPackage,bind-host))
179 $(eval $(call BuildPackage,bind-dig))