2 # Copyright (C) 2006 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
:=a4f9dd6d205d24ec89fa4e44d8188197
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/bind
/Default
25 DEPENDS
:=+bind-libs
+libopenssl
27 URL
:=http
://www.isc.org
/sw
/bind
/
31 define Package
/bind-libs
34 TITLE
:=bind shared libraries
35 URL
:=http
://www.isc.org
/sw
/bind
/
39 define Package
/bind-server
40 $(call Package
/bind
/Default
)
44 define Package
/bind-client
45 $(call Package
/bind
/Default
)
46 TITLE
+= dynamic DNS client
49 define Package
/bind-tools
50 $(call Package
/bind
/Default
)
51 TITLE
+= administration tools
(all)
54 define Package
/bind-rndc
55 $(call Package
/bind
/Default
)
56 TITLE
+= administration tools
(rndc and rndc-confgen only
)
59 define Package
/bind-check
60 $(call Package
/bind
/Default
)
61 TITLE
+= administration tools
(named-checkconf and named-checkzone only
)
64 define Package
/bind-dnssec
65 $(call Package
/bind
/Default
)
66 TITLE
+= administration tools
(dnssec-keygen and dnssec-signzone only
)
69 define Package
/bind-host
70 $(call Package
/bind
/Default
)
71 TITLE
+= simple DNS client
74 define Package
/bind-dig
75 $(call Package
/bind
/Default
)
76 TITLE
+= DNS excavation tool
79 export BUILD_CC
="$(TARGET_CC)"
85 --with-randomdev
="/dev/urandom" \
87 --with-openssl
="$(STAGING_DIR)/usr" \
91 BUILD_CC
="$(TARGET_CC)" \
94 rm -rf
$(PKG_INSTALL_DIR
)
95 mkdir
-p
$(PKG_INSTALL_DIR
)
96 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
97 BUILD_CC
="$(HOSTCC)" \
102 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
103 DESTDIR
="$(PKG_INSTALL_DIR)" \
104 DESTDIR
="$(PKG_INSTALL_DIR)" \
108 define Package
/bind-libs
/install
109 $(INSTALL_DIR
) $(1)/usr
/lib
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
113 define Package
/bind-server
/install
114 $(INSTALL_DIR
) $(1)/usr
/sbin
115 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(1)/usr
/sbin
/
116 $(INSTALL_DIR
) $(1)/etc
117 $(CP
) .
/files
/bind
$(1)/etc
/
118 $(INSTALL_DIR
) $(1)/etc
/init.d
119 $(INSTALL_BIN
) .
/files
/named.init
$(1)/etc
/init.d
/named
120 find
$(1)/etc
/bind
/ -name
".svn" | xargs
rm -rf
123 define Package
/bind-client
/install
124 $(INSTALL_DIR
) $(1)/usr
/bin
125 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(1)/usr
/bin
/
128 define Package
/bind-tools
/install
129 $(INSTALL_DIR
) $(1)/usr
/bin
130 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
131 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
132 $(INSTALL_DIR
) $(1)/usr
/sbin
133 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
134 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
135 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
136 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
137 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
138 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
141 define Package
/bind-rndc
/install
142 $(INSTALL_DIR
) $(1)/usr
/sbin
143 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(1)/usr
/sbin
/
144 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(1)/usr
/sbin
/
147 define Package
/bind-check
/install
148 $(INSTALL_DIR
) $(1)/usr
/sbin
149 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(1)/usr
/sbin
/
150 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(1)/usr
/sbin
/
153 define Package
/bind-dnssec
/install
154 $(INSTALL_DIR
) $(1)/usr
/sbin
155 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(1)/usr
/sbin
/
156 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(1)/usr
/sbin
/
159 define Package
/bind-host
/install
160 $(INSTALL_DIR
) $(1)/usr
/bin
161 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(1)/usr
/bin
/
164 define Package
/bind-dig
/install
165 $(INSTALL_DIR
) $(1)/usr
/bin
166 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(1)/usr
/bin
/
169 $(eval
$(call BuildPackage
,bind-libs
))
170 $(eval
$(call BuildPackage
,bind-server
))
171 $(eval
$(call BuildPackage
,bind-client
))
172 $(eval
$(call BuildPackage
,bind-tools
))
173 $(eval
$(call BuildPackage
,bind-rndc
))
174 $(eval
$(call BuildPackage
,bind-check
))
175 $(eval
$(call BuildPackage
,bind-dnssec
))
176 $(eval
$(call BuildPackage
,bind-host
))
177 $(eval
$(call BuildPackage
,bind-dig
))