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
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,BIND
,bind
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 --target
=$(GNU_HOST_NAME
) \
25 --host
=$(GNU_HOST_NAME
) \
26 --build
=$(GNU_HOST_NAME
) \
32 --datadir=/usr
/share \
33 --includedir=/usr
/include \
35 --libexecdir
=/usr
/lib \
36 --localstatedir
=/var \
37 --mandir=/usr
/share
/man \
42 $(DISABLE_LARGEFILE
) \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/isc
47 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns
48 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/isc
clean
49 cp
$(PKG_BUILD_DIR
)/lib
/dns
/gen
$(PKG_BUILD_DIR
)
50 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns
clean
51 cp
$(PKG_BUILD_DIR
)/gen
$(PKG_BUILD_DIR
)/lib
/dns
/gen
52 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
53 $(TARGET_CONFIGURE_OPTS
) \
54 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
55 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
56 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
58 --target
=$(GNU_TARGET_NAME
) \
59 --host
=$(GNU_TARGET_NAME
) \
60 --build
=$(GNU_HOST_NAME
) \
66 --datadir=/usr
/share \
67 --includedir=/usr
/include \
68 --infodir=/usr
/share
/info \
70 --libexecdir
=/usr
/lib \
71 --localstatedir
=/var \
72 --mandir=/usr
/share
/man \
75 $(DISABLE_LARGEFILE
) \
80 --with-randomdev
=/dev
/random \
82 --with-openssl
=$(STAGING_DIR
)/usr
/ \
84 touch
$(PKG_BUILD_DIR
)/.configured
86 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
87 $(MAKE
) -C
$(PKG_BUILD_DIR
)
88 mkdir
-p
$(PKG_INSTALL_DIR
)
89 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
90 DESTDIR
="$(PKG_INSTALL_DIR)" \
92 touch
$(PKG_BUILD_DIR
)/.built
95 install -d
-m0755
$(IDIR_BIND
)/usr
/sbin
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(IDIR_BIND
)/usr
/sbin
/
97 $(RSTRIP
) $(IDIR_BIND
)
98 $(IPKG_BUILD
) $(IDIR_BIND
) $(PACKAGE_DIR
)