2 # Copyright (C) 2006-2012 OpenWrt.org
3 # 2014-2016 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
12 PKG_VERSION
:=9.10.4-P4
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
:=e110904a1d54f83f01d4be8bcd842927
26 PKG_REMOVE_FILES
:=aclocal.m4 libtool.m4
31 include $(INCLUDE_DIR
)/package.mk
33 define Package
/bind
/Default
38 URL
:=https
://www.isc.org
/software
/bind
39 SUBMENU
:=IP Addresses and Names
42 define Package
/bind-libs
46 TITLE
:=bind shared libraries
47 URL
:=https
://www.isc.org
/software
/bind
50 define Package
/bind-server
51 $(call Package
/bind
/Default
)
55 define Package
/bind-client
56 $(call Package
/bind
/Default
)
57 TITLE
+= dynamic DNS client
60 define Package
/bind-tools
61 $(call Package
/bind
/Default
)
62 TITLE
+= administration tools
(all)
65 define Package
/bind-rndc
66 $(call Package
/bind
/Default
)
67 TITLE
+= administration tools
(rndc and rndc-confgen only
)
70 define Package
/bind-check
71 $(call Package
/bind
/Default
)
72 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
75 define Package
/bind-dnssec
76 $(call Package
/bind
/Default
)
77 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
80 define Package
/bind-host
81 $(call Package
/bind
/Default
)
82 TITLE
+= simple DNS client
85 define Package
/bind-dig
86 $(call Package
/bind
/Default
)
87 TITLE
+= DNS excavation tool
90 export BUILD_CC
="$(TARGET_CC)"
95 --with-randomdev
="/dev/urandom" \
97 --disable-linux-caps \
98 --with-openssl
="$(STAGING_DIR)/usr" \
108 BUILD_CC
="$(TARGET_CC)" \
111 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
112 BUILD_CC
="$(HOSTCC)" \
117 $(call Build
/Compile
/Default
)
120 define Package
/bind-libs
/install
121 $(INSTALL_DIR
) $(1)/usr
/lib
122 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
125 define Package
/bind-server
/install
126 $(INSTALL_DIR
) $(1)/usr
/sbin
127 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
128 $(INSTALL_DIR
) $(1)/etc
/bind
131 .
/files
/bind
/db
.127 \
132 .
/files
/bind
/db
.255 \
133 .
/files
/bind
/db.local \
134 .
/files
/bind
/db.root \
136 $(CP
) .
/files
/bind
/named.conf.example
$(1)/etc
/bind
/named.conf
137 $(INSTALL_DIR
) $(1)/etc
/init.d
138 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
139 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
142 define Package
/bind-server
/conffiles
151 define Package
/bind-client
/install
152 $(INSTALL_DIR
) $(1)/usr
/bin
153 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
156 define Package
/bind-tools
/install
157 $(INSTALL_DIR
) $(1)/usr
/bin
158 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
159 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
160 $(INSTALL_DIR
) $(1)/usr
/sbin
161 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
162 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
163 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
164 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
165 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
166 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
169 define Package
/bind-rndc
/install
170 $(INSTALL_DIR
) $(1)/usr
/sbin
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
172 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
175 define Package
/bind-check
/install
176 $(INSTALL_DIR
) $(1)/usr
/sbin
177 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
178 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
181 define Package
/bind-dnssec
/install
182 $(INSTALL_DIR
) $(1)/usr
/sbin
183 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
184 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
187 define Package
/bind-host
/install
188 $(INSTALL_DIR
) $(1)/usr
/bin
189 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
192 define Package
/bind-dig
/install
193 $(INSTALL_DIR
) $(1)/usr
/bin
194 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
197 $(eval
$(call BuildPackage
,bind-libs
))
198 $(eval
$(call BuildPackage
,bind-server
))
199 $(eval
$(call BuildPackage
,bind-client
))
200 $(eval
$(call BuildPackage
,bind-tools
))
201 $(eval
$(call BuildPackage
,bind-rndc
))
202 $(eval
$(call BuildPackage
,bind-check
))
203 $(eval
$(call BuildPackage
,bind-dnssec
))
204 $(eval
$(call BuildPackage
,bind-host
))
205 $(eval
$(call BuildPackage
,bind-dig
))