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
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
52 --with-randomdev
=/dev
/urandom \
54 --with-openssl
=$(STAGING_DIR
)/usr
/ \
56 touch
$(PKG_BUILD_DIR
)/.configured
58 $(PKG_BUILD_DIR
)/.built
:
59 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns \
63 rm -rf
$(PKG_INSTALL_DIR
)
64 mkdir
-p
$(PKG_INSTALL_DIR
)
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 DESTDIR
="$(PKG_INSTALL_DIR)" \
71 install -d
-m0755
$(IDIR_BIND_SERVER
)/usr
/sbin
72 install -d
-m0755
$(IDIR_BIND_SERVER
)/etc
/init.d
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(IDIR_BIND_SERVER
)/usr
/sbin
/
74 cp
-fpR files
/bind
$(IDIR_BIND_SERVER
)/etc
75 cp
-fpR files
/named.init
$(IDIR_BIND_SERVER
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)named
76 find
$(IDIR_BIND_SERVER
)/etc
/bind
-name
".svn" | xargs
rm -rf
77 $(RSTRIP
) $(IDIR_BIND_SERVER
)
78 $(IPKG_BUILD
) $(IDIR_BIND_SERVER
) $(PACKAGE_DIR
)
81 install -d
-m0755
$(IDIR_BIND_CLIENT
)/usr
/bin
82 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(IDIR_BIND_CLIENT
)/usr
/bin
/
83 $(RSTRIP
) $(IDIR_BIND_CLIENT
)
84 $(IPKG_BUILD
) $(IDIR_BIND_CLIENT
) $(PACKAGE_DIR
)