2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 ftp
://ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
) \
17 http
://www.mirrorservice.org
/sites
/ftp.isc.org
/isc
/bind9
/$(PKG_VERSION
)
18 PKG_MD5SUM
:=afa41f8203d50bedad65071f9b6f96d7
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/bind
/Default
27 DEPENDS
:=+bind-libs
+libopenssl
29 URL
:=https
://www.isc.org
/software
/bind
30 SUBMENU
:=IP Addresses and Names
33 define Package
/bind-libs
36 TITLE
:=bind shared libraries
37 URL
:=https
://www.isc.org
/software
/bind
40 define Package
/bind-server
41 $(call Package
/bind
/Default
)
45 define Package
/bind-client
46 $(call Package
/bind
/Default
)
47 TITLE
+= dynamic DNS client
50 define Package
/bind-tools
51 $(call Package
/bind
/Default
)
52 TITLE
+= administration tools
(all)
55 define Package
/bind-rndc
56 $(call Package
/bind
/Default
)
57 TITLE
+= administration tools
(rndc and rndc-confgen only
)
60 define Package
/bind-check
61 $(call Package
/bind
/Default
)
62 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
65 define Package
/bind-dnssec
66 $(call Package
/bind
/Default
)
67 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
70 define Package
/bind-host
71 $(call Package
/bind
/Default
)
72 TITLE
+= simple DNS client
75 define Package
/bind-dig
76 $(call Package
/bind
/Default
)
77 TITLE
+= DNS excavation tool
80 export BUILD_CC
="$(TARGET_CC)"
85 --with-randomdev
="/dev/urandom" \
87 --with-openssl
="$(STAGING_DIR)/usr" \
95 BUILD_CC
="$(TARGET_CC)" \
98 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
99 BUILD_CC
="$(HOSTCC)" \
104 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
105 DESTDIR
="$(PKG_INSTALL_DIR)" \
109 define Package
/bind-libs
/install
110 $(INSTALL_DIR
) $(1)/usr
/lib
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
114 define Package
/bind-server
/install
115 $(INSTALL_DIR
) $(1)/usr
/sbin
116 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
117 $(INSTALL_DIR
) $(1)/etc
/bind
120 .
/files
/bind
/db
.127 \
121 .
/files
/bind
/db
.255 \
122 .
/files
/bind
/db.local \
123 .
/files
/bind
/db.root \
125 $(CP
) .
/files
/bind
/named.conf.example
$(1)/etc
/bind
/named.conf
126 $(INSTALL_DIR
) $(1)/etc
/init.d
127 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
128 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
131 define Package
/bind-server
/conffiles
140 define Package
/bind-client
/install
141 $(INSTALL_DIR
) $(1)/usr
/bin
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
145 define Package
/bind-tools
/install
146 $(INSTALL_DIR
) $(1)/usr
/bin
147 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
148 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
149 $(INSTALL_DIR
) $(1)/usr
/sbin
150 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
151 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
152 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
153 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
155 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
158 define Package
/bind-rndc
/install
159 $(INSTALL_DIR
) $(1)/usr
/sbin
160 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
161 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
164 define Package
/bind-check
/install
165 $(INSTALL_DIR
) $(1)/usr
/sbin
166 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
167 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
170 define Package
/bind-dnssec
/install
171 $(INSTALL_DIR
) $(1)/usr
/sbin
172 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
173 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
176 define Package
/bind-host
/install
177 $(INSTALL_DIR
) $(1)/usr
/bin
178 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
181 define Package
/bind-dig
/install
182 $(INSTALL_DIR
) $(1)/usr
/bin
183 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
186 $(eval
$(call BuildPackage
,bind-libs
))
187 $(eval
$(call BuildPackage
,bind-server
))
188 $(eval
$(call BuildPackage
,bind-client
))
189 $(eval
$(call BuildPackage
,bind-tools
))
190 $(eval
$(call BuildPackage
,bind-rndc
))
191 $(eval
$(call BuildPackage
,bind-check
))
192 $(eval
$(call BuildPackage
,bind-dnssec
))
193 $(eval
$(call BuildPackage
,bind-host
))
194 $(eval
$(call BuildPackage
,bind-dig
))