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
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 --target
=$(GNU_HOST_NAME
) \
27 --host
=$(GNU_HOST_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
37 --libexecdir
=/usr
/lib \
38 --localstatedir
=/var \
39 --mandir=/usr
/share
/man \
41 --sysconfdir
=/etc
/bind \
44 $(DISABLE_LARGEFILE
) \
48 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/isc
49 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns
50 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/isc
clean
51 cp
$(PKG_BUILD_DIR
)/lib
/dns
/gen
$(PKG_BUILD_DIR
)
52 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/dns
clean
53 cp
$(PKG_BUILD_DIR
)/gen
$(PKG_BUILD_DIR
)/lib
/dns
/gen
54 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
55 $(TARGET_CONFIGURE_OPTS
) \
56 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
57 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
58 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
60 --target
=$(GNU_TARGET_NAME
) \
61 --host
=$(GNU_TARGET_NAME
) \
62 --build
=$(GNU_HOST_NAME
) \
68 --datadir=/usr
/share \
69 --includedir=/usr
/include \
70 --infodir=/usr
/share
/info \
72 --libexecdir
=/usr
/lib \
73 --localstatedir
=/var \
74 --mandir=/usr
/share
/man \
77 $(DISABLE_LARGEFILE
) \
82 --with-randomdev
=/dev
/random \
84 --with-openssl
=$(STAGING_DIR
)/usr
/ \
86 touch
$(PKG_BUILD_DIR
)/.configured
88 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
89 $(MAKE
) -C
$(PKG_BUILD_DIR
)
90 mkdir
-p
$(PKG_INSTALL_DIR
)
91 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
92 DESTDIR
="$(PKG_INSTALL_DIR)" \
94 touch
$(PKG_BUILD_DIR
)/.built
97 install -d
-m0755
$(IDIR_BIND_SERVER
)/usr
/sbin
98 install -d
-m0755
$(IDIR_BIND_SERVER
)/etc
/init.d
99 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/named
$(IDIR_BIND_SERVER
)/usr
/sbin
/
100 cp
-fpR files
/bind
$(IDIR_BIND_SERVER
)/etc
101 cp
-fpR files
/named.init
$(IDIR_BIND_SERVER
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)named
102 $(RSTRIP
) $(IDIR_BIND_SERVER
)
103 $(IPKG_BUILD
) $(IDIR_BIND_SERVER
) $(PACKAGE_DIR
)
106 install -d
-m0755
$(IDIR_BIND_CLIENT
)/usr
/bin
107 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/nsupdate
$(IDIR_BIND_CLIENT
)/usr
/bin
/
108 $(RSTRIP
) $(IDIR_BIND_CLIENT
)
109 $(IPKG_BUILD
) $(IDIR_BIND_CLIENT
) $(PACKAGE_DIR
)