2 # Copyright (C) 2006-2012 OpenWrt.org
3 # 2014 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 ftp
://ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
) \
22 http
://www.mirrorservice.org
/sites
/ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
)
23 PKG_MD5SUM
:=30b9bf88a78eee783d3fef5257445788
26 PKG_REMOVE_FILES
:=aclocal.m4 libtool.m4
30 PKG_CONFIG_DEPENDS
:= \
31 CONFIG_OPENSSL_WITH_EC \
32 CONFIG_BIND_ENABLE_FILTER_AAAA
34 include $(INCLUDE_DIR
)/package.mk
36 define Package
/bind
/Default
41 URL
:=https
://www.isc.org
/software
/bind
42 SUBMENU
:=IP Addresses and Names
45 define Package
/bind-libs
49 TITLE
:=bind shared libraries
50 URL
:=https
://www.isc.org
/software
/bind
53 define Package
/bind-server
54 $(call Package
/bind
/Default
)
58 define Package
/bind-server
/config
59 source
"$(SOURCE)/Config.in"
62 define Package
/bind-client
63 $(call Package
/bind
/Default
)
64 TITLE
+= dynamic DNS client
67 define Package
/bind-tools
68 $(call Package
/bind
/Default
)
69 TITLE
+= administration tools
(all)
72 define Package
/bind-rndc
73 $(call Package
/bind
/Default
)
74 TITLE
+= administration tools
(rndc and rndc-confgen only
)
77 define Package
/bind-check
78 $(call Package
/bind
/Default
)
79 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
82 define Package
/bind-dnssec
83 $(call Package
/bind
/Default
)
84 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
87 define Package
/bind-host
88 $(call Package
/bind
/Default
)
89 TITLE
+= simple DNS client
92 define Package
/bind-dig
93 $(call Package
/bind
/Default
)
94 TITLE
+= DNS excavation tool
97 export BUILD_CC
="$(TARGET_CC)"
102 --with-randomdev
="/dev/urandom" \
104 --disable-linux-caps \
105 --with-openssl
="$(STAGING_DIR)/usr" \
111 --with-ecdsa
=$(if
$(CONFIG_OPENSSL_WITH_EC
),yes
,no
) \
114 ifdef CONFIG_BIND_ENABLE_FILTER_AAAA
120 BUILD_CC
="$(TARGET_CC)" \
123 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
124 BUILD_CC
="$(HOSTCC)" \
129 $(call Build
/Compile
/Default
)
132 define Package
/bind-libs
/install
133 $(INSTALL_DIR
) $(1)/usr
/lib
134 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
137 define Package
/bind-server
/install
138 $(INSTALL_DIR
) $(1)/usr
/sbin
139 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
140 $(INSTALL_DIR
) $(1)/etc
/bind
143 .
/files
/bind
/db
.127 \
144 .
/files
/bind
/db
.255 \
145 .
/files
/bind
/db.local \
146 .
/files
/bind
/db.root \
148 $(CP
) .
/files
/bind
/named.conf.example
$(1)/etc
/bind
/named.conf
149 $(INSTALL_DIR
) $(1)/etc
/init.d
150 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
151 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
154 define Package
/bind-server
/conffiles
163 define Package
/bind-client
/install
164 $(INSTALL_DIR
) $(1)/usr
/bin
165 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
168 define Package
/bind-tools
/install
169 $(INSTALL_DIR
) $(1)/usr
/bin
170 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
172 $(INSTALL_DIR
) $(1)/usr
/sbin
173 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
174 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
175 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
176 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
177 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
178 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
181 define Package
/bind-rndc
/install
182 $(INSTALL_DIR
) $(1)/usr
/sbin
183 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
184 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
187 define Package
/bind-check
/install
188 $(INSTALL_DIR
) $(1)/usr
/sbin
189 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
190 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
193 define Package
/bind-dnssec
/install
194 $(INSTALL_DIR
) $(1)/usr
/sbin
195 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
196 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
199 define Package
/bind-host
/install
200 $(INSTALL_DIR
) $(1)/usr
/bin
201 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
204 define Package
/bind-dig
/install
205 $(INSTALL_DIR
) $(1)/usr
/bin
206 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
209 $(eval
$(call BuildPackage
,bind-libs
))
210 $(eval
$(call BuildPackage
,bind-server
))
211 $(eval
$(call BuildPackage
,bind-client
))
212 $(eval
$(call BuildPackage
,bind-tools
))
213 $(eval
$(call BuildPackage
,bind-rndc
))
214 $(eval
$(call BuildPackage
,bind-check
))
215 $(eval
$(call BuildPackage
,bind-dnssec
))
216 $(eval
$(call BuildPackage
,bind-host
))
217 $(eval
$(call BuildPackage
,bind-dig
))