2 # Copyright (C) 2006-2012 OpenWrt.org
3 # 2014-2017 Noah Meyerhans <frodo@morgul.net>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 USERID
:=bind
=57:bind
=57
16 PKG_MAINTAINER
:=Noah Meyerhans
<frodo@morgul.net
>
17 PKG_LICENSE
:= BSD-3-Clause
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
21 http
://www.mirrorservice.org
/sites
/ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
) \
22 http
://ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
)
23 PKG_HASH
:=7f46ad8620f7c3b0ac375d7a5211b15677708fda84ce25d7aeb7222fe2e3c77a
26 PKG_REMOVE_FILES
:=aclocal.m4 libtool.m4
31 PKG_CONFIG_DEPENDS
:= \
32 CONFIG_BIND_ENABLE_FILTER_AAAA
34 include $(INCLUDE_DIR
)/package.mk
36 define Package
/bind
/Default
39 DEPENDS
:=+bind-libs
+@OPENSSL_WITH_EC
41 URL
:=https
://www.isc.org
/software
/bind
42 SUBMENU
:=IP Addresses and Names
45 define Package
/bind-libs
48 DEPENDS
:=+libopenssl
+zlib
49 TITLE
:=bind shared libraries
50 URL
:=https
://www.isc.org
/software
/bind
53 define Package
/bind-server
54 $(call Package
/bind
/Default
)
56 DEPENDS
+= +@OPENSSL_WITH_DEPRECATED
59 define Package
/bind-server
/config
60 source
"$(SOURCE)/Config.in"
63 define Package
/bind-client
64 $(call Package
/bind
/Default
)
65 TITLE
+= dynamic DNS client
68 define Package
/bind-tools
69 $(call Package
/bind
/Default
)
70 TITLE
+= administration tools
(all)
73 define Package
/bind-rndc
74 $(call Package
/bind
/Default
)
75 TITLE
+= administration tools
(rndc and rndc-confgen only
)
78 define Package
/bind-check
79 $(call Package
/bind
/Default
)
80 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
83 define Package
/bind-dnssec
84 $(call Package
/bind
/Default
)
85 TITLE
+= administration tools
(dnssec-keygen
, dnssec-settime and dnssec-signzone only
)
88 define Package
/bind-host
89 $(call Package
/bind
/Default
)
90 TITLE
+= simple DNS client
93 define Package
/bind-dig
94 $(call Package
/bind
/Default
)
95 TITLE
+= DNS excavation tool
98 export BUILD_CC
="$(TARGET_CC)"
103 --with-randomdev
="/dev/urandom" \
105 --disable-linux-caps \
106 --with-openssl
="$(STAGING_DIR)/usr" \
113 --with-ecdsa
=$(if
$(CONFIG_OPENSSL_WITH_EC
),yes
,no
) \
115 --sysconfdir
=/etc
/bind
117 ifdef CONFIG_BIND_ENABLE_FILTER_AAAA
123 BUILD_CC
="$(TARGET_CC)" \
126 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
127 BUILD_CC
="$(HOSTCC)" \
132 $(call Build
/Compile
/Default
)
135 define Package
/bind-libs
/install
136 $(INSTALL_DIR
) $(1)/usr
/lib
137 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
140 define Package
/bind-server
/install
141 $(INSTALL_DIR
) $(1)/usr
/sbin
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
143 $(INSTALL_DIR
) $(1)/etc
/bind
146 .
/files
/bind
/db
.127 \
147 .
/files
/bind
/db
.255 \
148 .
/files
/bind
/db.local \
149 .
/files
/bind
/db.root \
151 $(CP
) .
/files
/bind
/named.conf.example
$(1)/etc
/bind
/named.conf
152 $(INSTALL_DIR
) $(1)/etc
/init.d
153 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
154 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
157 define Package
/bind-server
/conffiles
166 define Package
/bind-client
/install
167 $(INSTALL_DIR
) $(1)/usr
/bin
168 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
171 define Package
/bind-tools
/install
172 $(INSTALL_DIR
) $(1)/usr
/bin
173 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
174 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
175 $(INSTALL_DIR
) $(1)/usr
/sbin
176 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
177 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-settime
$(1)/usr
/sbin
/
178 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
179 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
180 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
181 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
182 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
185 define Package
/bind-rndc
/install
186 $(INSTALL_DIR
) $(1)/usr
/sbin
187 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
188 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
191 define Package
/bind-check
/install
192 $(INSTALL_DIR
) $(1)/usr
/sbin
193 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
194 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
197 define Package
/bind-dnssec
/install
198 $(INSTALL_DIR
) $(1)/usr
/sbin
199 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
200 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-settime
$(1)/usr
/sbin
/
201 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
204 define Package
/bind-host
/install
205 $(INSTALL_DIR
) $(1)/usr
/bin
206 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
209 define Package
/bind-dig
/install
210 $(INSTALL_DIR
) $(1)/usr
/bin
211 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
214 $(eval
$(call BuildPackage
,bind-libs
))
215 $(eval
$(call BuildPackage
,bind-server
))
216 $(eval
$(call BuildPackage
,bind-client
))
217 $(eval
$(call BuildPackage
,bind-tools
))
218 $(eval
$(call BuildPackage
,bind-rndc
))
219 $(eval
$(call BuildPackage
,bind-check
))
220 $(eval
$(call BuildPackage
,bind-dnssec
))
221 $(eval
$(call BuildPackage
,bind-host
))
222 $(eval
$(call BuildPackage
,bind-dig
))