3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=9ff3204eea27184ea0722f37e43fc95d
10 PKG_SOURCE_URL
:=ftp
://ftp.isc.org
/isc
/bind9
/9.3.1/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,BIND_SERVER
,bind-server
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,BIND_CLIENT
,bind-client
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(eval
$(call PKG_template
,BIND_TOOLS
,bind-tools
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(eval
$(call PKG_template
,BIND_RNDC
,bind-rndc
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(eval
$(call PKG_template
,BIND_CHECK
,bind-check
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(eval
$(call PKG_template
,BIND_DNSSEC
,bind-dnssec
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(eval
$(call PKG_template
,BIND_HOST
,bind-host
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(eval
$(call PKG_template
,BIND_DIG
,bind-dig
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
30 $(PKG_BUILD_DIR
)/.configured
:
31 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
32 $(TARGET_CONFIGURE_OPTS
) \
33 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
34 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
35 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
37 --target
=$(GNU_TARGET_NAME
) \
38 --host
=$(GNU_TARGET_NAME
) \
39 --build
=$(GNU_HOST_NAME
) \
45 --datadir=/usr
/share \
46 --includedir=/usr
/include \
47 --infodir=/usr
/share
/info \
49 --libexecdir
=/usr
/lib \
50 --localstatedir
=/var \
51 --mandir=/usr
/share
/man \
54 $(DISABLE_LARGEFILE
) \
59 --with-randomdev
=/dev
/urandom \
61 --with-openssl
=$(STAGING_DIR
)/usr
/ \
63 touch
$(PKG_BUILD_DIR
)/.configured
65 $(PKG_BUILD_DIR
)/.built
:
66 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
70 rm -rf
$(PKG_INSTALL_DIR
)
71 mkdir
-p
$(PKG_INSTALL_DIR
)
72 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
73 DESTDIR
="$(PKG_INSTALL_DIR)" \
78 install -d
-m0755
$(IDIR_BIND_SERVER
)/usr
/sbin
79 install -d
-m0755
$(IDIR_BIND_SERVER
)/etc
/init.d
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(IDIR_BIND_SERVER
)/usr
/sbin
/
81 $(CP
) files
/bind
$(IDIR_BIND_SERVER
)/etc
82 $(CP
) files
/named.init
$(IDIR_BIND_SERVER
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)named
83 find
$(IDIR_BIND_SERVER
)/etc
/bind
-name
".svn" | xargs
rm -rf
84 $(RSTRIP
) $(IDIR_BIND_SERVER
)
85 $(IPKG_BUILD
) $(IDIR_BIND_SERVER
) $(PACKAGE_DIR
)
88 install -d
-m0755
$(IDIR_BIND_CLIENT
)/usr
/bin
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(IDIR_BIND_CLIENT
)/usr
/bin
/
90 $(RSTRIP
) $(IDIR_BIND_CLIENT
)
91 $(IPKG_BUILD
) $(IDIR_BIND_CLIENT
) $(PACKAGE_DIR
)
94 install -d
-m0755
$(IDIR_BIND_TOOLS
)/usr
/bin
95 install -d
-m0755
$(IDIR_BIND_TOOLS
)/usr
/sbin
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(IDIR_BIND_TOOLS
)/usr
/bin
/
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(IDIR_BIND_TOOLS
)/usr
/bin
/
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(IDIR_BIND_TOOLS
)/usr
/sbin
/
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(IDIR_BIND_TOOLS
)/usr
/sbin
/
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(IDIR_BIND_TOOLS
)/usr
/sbin
/
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(IDIR_BIND_TOOLS
)/usr
/sbin
/
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(IDIR_BIND_TOOLS
)/usr
/sbin
/
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(IDIR_BIND_TOOLS
)/usr
/sbin
/
104 $(RSTRIP
) $(IDIR_BIND_TOOLS
)
105 $(IPKG_BUILD
) $(IDIR_BIND_TOOLS
) $(PACKAGE_DIR
)
108 install -d
-m0755
$(IDIR_BIND_RNDC
)/usr
/sbin
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc
$(IDIR_BIND_RNDC
)/usr
/sbin
/
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rndc-confgen
$(IDIR_BIND_RNDC
)/usr
/sbin
/
111 $(RSTRIP
) $(IDIR_BIND_RNDC
)
112 $(IPKG_BUILD
) $(IDIR_BIND_RNDC
) $(PACKAGE_DIR
)
115 install -d
-m0755
$(IDIR_BIND_CHECK
)/usr
/sbin
116 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkconf
$(IDIR_BIND_CHECK
)/usr
/sbin
/
117 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/named-checkzone
$(IDIR_BIND_CHECK
)/usr
/sbin
/
118 $(RSTRIP
) $(IDIR_BIND_CHECK
)
119 $(IPKG_BUILD
) $(IDIR_BIND_CHECK
) $(PACKAGE_DIR
)
122 install -d
-m0755
$(IDIR_BIND_DNSSEC
)/usr
/sbin
123 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-keygen
$(IDIR_BIND_DNSSEC
)/usr
/sbin
/
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnssec-signzone
$(IDIR_BIND_DNSSEC
)/usr
/sbin
/
125 $(RSTRIP
) $(IDIR_BIND_DNSSEC
)
126 $(IPKG_BUILD
) $(IDIR_BIND_DNSSEC
) $(PACKAGE_DIR
)
129 install -d
-m0755
$(IDIR_BIND_HOST
)/usr
/bin
130 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/host
$(IDIR_BIND_HOST
)/usr
/bin
/
131 $(RSTRIP
) $(IDIR_BIND_HOST
)
132 $(IPKG_BUILD
) $(IDIR_BIND_HOST
) $(PACKAGE_DIR
)
135 install -d
-m0755
$(IDIR_BIND_DIG
)/usr
/bin
136 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/dig
$(IDIR_BIND_DIG
)/usr
/bin
/
137 $(RSTRIP
) $(IDIR_BIND_DIG
)
138 $(IPKG_BUILD
) $(IDIR_BIND_DIG
) $(PACKAGE_DIR
)