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
:=8f407c9a988d7b447a54b4cb54230dcb
21 PKG_REMOVE_FILES
:=aclocal.m4 libtool.m4
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/bind
/Default
32 URL
:=https
://www.isc.org
/software
/bind
33 SUBMENU
:=IP Addresses and Names
36 define Package
/bind-libs
40 TITLE
:=bind shared libraries
41 URL
:=https
://www.isc.org
/software
/bind
44 define Package
/bind-server
45 $(call Package
/bind
/Default
)
49 define Package
/bind-client
50 $(call Package
/bind
/Default
)
51 TITLE
+= dynamic DNS client
54 define Package
/bind-tools
55 $(call Package
/bind
/Default
)
56 TITLE
+= administration tools
(all)
59 define Package
/bind-rndc
60 $(call Package
/bind
/Default
)
61 TITLE
+= administration tools
(rndc and rndc-confgen only
)
64 define Package
/bind-check
65 $(call Package
/bind
/Default
)
66 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
69 define Package
/bind-dnssec
70 $(call Package
/bind
/Default
)
71 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
74 define Package
/bind-host
75 $(call Package
/bind
/Default
)
76 TITLE
+= simple DNS client
79 define Package
/bind-dig
80 $(call Package
/bind
/Default
)
81 TITLE
+= DNS excavation tool
84 export BUILD_CC
="$(TARGET_CC)"
89 --with-randomdev
="/dev/urandom" \
91 --disable-linux-caps \
92 --with-openssl
="$(STAGING_DIR)/usr" \
101 BUILD_CC
="$(TARGET_CC)" \
104 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
105 BUILD_CC
="$(HOSTCC)" \
110 $(call Build
/Compile
/Default
)
113 define Package
/bind-libs
/install
114 $(INSTALL_DIR
) $(1)/usr
/lib
115 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
118 define Package
/bind-server
/install
119 $(INSTALL_DIR
) $(1)/usr
/sbin
120 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
121 $(INSTALL_DIR
) $(1)/etc
/bind
124 .
/files
/bind
/db
.127 \
125 .
/files
/bind
/db
.255 \
126 .
/files
/bind
/db.local \
127 .
/files
/bind
/db.root \
129 $(CP
) .
/files
/bind
/named.conf.example
$(1)/etc
/bind
/named.conf
130 $(INSTALL_DIR
) $(1)/etc
/init.d
131 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
132 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
135 define Package
/bind-server
/conffiles
144 define Package
/bind-client
/install
145 $(INSTALL_DIR
) $(1)/usr
/bin
146 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
149 define Package
/bind-tools
/install
150 $(INSTALL_DIR
) $(1)/usr
/bin
151 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
152 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
153 $(INSTALL_DIR
) $(1)/usr
/sbin
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
155 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
156 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
157 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
158 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
159 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
162 define Package
/bind-rndc
/install
163 $(INSTALL_DIR
) $(1)/usr
/sbin
164 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
165 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
168 define Package
/bind-check
/install
169 $(INSTALL_DIR
) $(1)/usr
/sbin
170 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
174 define Package
/bind-dnssec
/install
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-signzone
$(1)/usr
/sbin
/
180 define Package
/bind-host
/install
181 $(INSTALL_DIR
) $(1)/usr
/bin
182 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
185 define Package
/bind-dig
/install
186 $(INSTALL_DIR
) $(1)/usr
/bin
187 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
190 $(eval
$(call BuildPackage
,bind-libs
))
191 $(eval
$(call BuildPackage
,bind-server
))
192 $(eval
$(call BuildPackage
,bind-client
))
193 $(eval
$(call BuildPackage
,bind-tools
))
194 $(eval
$(call BuildPackage
,bind-rndc
))
195 $(eval
$(call BuildPackage
,bind-check
))
196 $(eval
$(call BuildPackage
,bind-dnssec
))
197 $(eval
$(call BuildPackage
,bind-host
))
198 $(eval
$(call BuildPackage
,bind-dig
))