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
15 PKG_MAINTAINER
:= Noah Meyerhans
<frodo@morgul.net
>
16 PKG_LICENSE
:= BSD-3-Clause
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 ftp
://ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
) \
21 http
://www.mirrorservice.org
/sites
/ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
)
22 PKG_MD5SUM
:=3408af8c6d27d6cb8a05287f2ee32ad0
25 PKG_REMOVE_FILES
:=aclocal.m4 libtool.m4
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/bind
/Default
36 URL
:=https
://www.isc.org
/software
/bind
37 SUBMENU
:=IP Addresses and Names
40 define Package
/bind-libs
44 TITLE
:=bind shared libraries
45 URL
:=https
://www.isc.org
/software
/bind
48 define Package
/bind-server
49 $(call Package
/bind
/Default
)
53 define Package
/bind-client
54 $(call Package
/bind
/Default
)
55 TITLE
+= dynamic DNS client
58 define Package
/bind-tools
59 $(call Package
/bind
/Default
)
60 TITLE
+= administration tools
(all)
63 define Package
/bind-rndc
64 $(call Package
/bind
/Default
)
65 TITLE
+= administration tools
(rndc and rndc-confgen only
)
68 define Package
/bind-check
69 $(call Package
/bind
/Default
)
70 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
73 define Package
/bind-dnssec
74 $(call Package
/bind
/Default
)
75 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
78 define Package
/bind-host
79 $(call Package
/bind
/Default
)
80 TITLE
+= simple DNS client
83 define Package
/bind-dig
84 $(call Package
/bind
/Default
)
85 TITLE
+= DNS excavation tool
88 export BUILD_CC
="$(TARGET_CC)"
93 --with-randomdev
="/dev/urandom" \
95 --disable-linux-caps \
96 --with-openssl
="$(STAGING_DIR)/usr" \
106 BUILD_CC
="$(TARGET_CC)" \
109 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
110 BUILD_CC
="$(HOSTCC)" \
115 $(call Build
/Compile
/Default
)
118 define Package
/bind-libs
/install
119 $(INSTALL_DIR
) $(1)/usr
/lib
120 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
123 define Package
/bind-server
/install
124 $(INSTALL_DIR
) $(1)/usr
/sbin
125 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
126 $(INSTALL_DIR
) $(1)/etc
/bind
129 .
/files
/bind
/db
.127 \
130 .
/files
/bind
/db
.255 \
131 .
/files
/bind
/db.local \
132 .
/files
/bind
/db.root \
134 $(CP
) .
/files
/bind
/named.conf.example
$(1)/etc
/bind
/named.conf
135 $(INSTALL_DIR
) $(1)/etc
/init.d
136 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
137 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
140 define Package
/bind-server
/conffiles
149 define Package
/bind-client
/install
150 $(INSTALL_DIR
) $(1)/usr
/bin
151 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
154 define Package
/bind-tools
/install
155 $(INSTALL_DIR
) $(1)/usr
/bin
156 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
157 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
158 $(INSTALL_DIR
) $(1)/usr
/sbin
159 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
160 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
161 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
162 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
163 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
164 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
167 define Package
/bind-rndc
/install
168 $(INSTALL_DIR
) $(1)/usr
/sbin
169 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
170 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
173 define Package
/bind-check
/install
174 $(INSTALL_DIR
) $(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
/
179 define Package
/bind-dnssec
/install
180 $(INSTALL_DIR
) $(1)/usr
/sbin
181 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
182 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
185 define Package
/bind-host
/install
186 $(INSTALL_DIR
) $(1)/usr
/bin
187 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
190 define Package
/bind-dig
/install
191 $(INSTALL_DIR
) $(1)/usr
/bin
192 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
195 $(eval
$(call BuildPackage
,bind-libs
))
196 $(eval
$(call BuildPackage
,bind-server
))
197 $(eval
$(call BuildPackage
,bind-client
))
198 $(eval
$(call BuildPackage
,bind-tools
))
199 $(eval
$(call BuildPackage
,bind-rndc
))
200 $(eval
$(call BuildPackage
,bind-check
))
201 $(eval
$(call BuildPackage
,bind-dnssec
))
202 $(eval
$(call BuildPackage
,bind-host
))
203 $(eval
$(call BuildPackage
,bind-dig
))