2 # Copyright (C) 2006-2010 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
:=435bc2e26e470d46ddf2acb24abb6ea6
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/bind
/Default
27 DEPENDS
:=+bind-libs
+libopenssl
29 URL
:=https
://www.isc.org
/software
/bind
33 define Package
/bind-libs
36 TITLE
:=bind shared libraries
37 URL
:=http
://www.isc.org
/sw
/bind
/
41 define Package
/bind-server
42 $(call Package
/bind
/Default
)
46 define Package
/bind-client
47 $(call Package
/bind
/Default
)
48 TITLE
+= dynamic DNS client
51 define Package
/bind-tools
52 $(call Package
/bind
/Default
)
53 TITLE
+= administration tools
(all)
56 define Package
/bind-rndc
57 $(call Package
/bind
/Default
)
58 TITLE
+= administration tools
(rndc and rndc-confgen only
)
61 define Package
/bind-check
62 $(call Package
/bind
/Default
)
63 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
66 define Package
/bind-dnssec
67 $(call Package
/bind
/Default
)
68 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
71 define Package
/bind-host
72 $(call Package
/bind
/Default
)
73 TITLE
+= simple DNS client
76 define Package
/bind-dig
77 $(call Package
/bind
/Default
)
78 TITLE
+= DNS excavation tool
81 export BUILD_CC
="$(TARGET_CC)"
86 --with-randomdev
="/dev/urandom" \
88 --with-openssl
="$(STAGING_DIR)/usr" \
92 BUILD_CC
="$(TARGET_CC)" \
95 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
96 BUILD_CC
="$(HOSTCC)" \
101 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
102 DESTDIR
="$(PKG_INSTALL_DIR)" \
106 define Package
/bind-libs
/install
107 $(INSTALL_DIR
) $(1)/usr
/lib
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
111 define Package
/bind-server
/install
112 $(INSTALL_DIR
) $(1)/usr
/sbin
113 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
114 $(INSTALL_DIR
) $(1)/etc
115 $(CP
) .
/files
/bind
$(1)/etc
/
116 $(INSTALL_DIR
) $(1)/etc
/init.d
117 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
118 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
121 define Package
/bind-client
/install
122 $(INSTALL_DIR
) $(1)/usr
/bin
123 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
126 define Package
/bind-tools
/install
127 $(INSTALL_DIR
) $(1)/usr
/bin
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
129 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
130 $(INSTALL_DIR
) $(1)/usr
/sbin
131 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
132 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
133 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
134 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
135 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
136 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
139 define Package
/bind-rndc
/install
140 $(INSTALL_DIR
) $(1)/usr
/sbin
141 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
145 define Package
/bind-check
/install
146 $(INSTALL_DIR
) $(1)/usr
/sbin
147 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
148 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
151 define Package
/bind-dnssec
/install
152 $(INSTALL_DIR
) $(1)/usr
/sbin
153 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
157 define Package
/bind-host
/install
158 $(INSTALL_DIR
) $(1)/usr
/bin
159 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
162 define Package
/bind-dig
/install
163 $(INSTALL_DIR
) $(1)/usr
/bin
164 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
167 $(eval
$(call BuildPackage
,bind-libs
))
168 $(eval
$(call BuildPackage
,bind-server
))
169 $(eval
$(call BuildPackage
,bind-client
))
170 $(eval
$(call BuildPackage
,bind-tools
))
171 $(eval
$(call BuildPackage
,bind-rndc
))
172 $(eval
$(call BuildPackage
,bind-check
))
173 $(eval
$(call BuildPackage
,bind-dnssec
))
174 $(eval
$(call BuildPackage
,bind-host
))
175 $(eval
$(call BuildPackage
,bind-dig
))