add missing mtd output message
[openwrt.git] / package / bind / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bind
6 PKG_VERSION:=9.3.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=9ff3204eea27184ea0722f37e43fc95d
9
10 PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/bind9/9.3.1/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16 PKG_INIT_LEVEL:=60
17
18 include $(TOPDIR)/package/rules.mk
19
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
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" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --enable-shared \
50 --enable-static \
51 --enable-ipv6 \
52 --with-randomdev=/dev/urandom \
53 --disable-threads \
54 --with-openssl=$(STAGING_DIR)/usr/ \
55 );
56 touch $(PKG_BUILD_DIR)/.configured
57
58 $(PKG_BUILD_DIR)/.built:
59 $(MAKE) -C $(PKG_BUILD_DIR)/lib/dns \
60 CC="$(HOSTCC)" \
61 CFLAGS="-O2" \
62 gen
63 rm -rf $(PKG_INSTALL_DIR)
64 mkdir -p $(PKG_INSTALL_DIR)
65 $(MAKE) -C $(PKG_BUILD_DIR) \
66 DESTDIR="$(PKG_INSTALL_DIR)" \
67 all install
68 touch $@
69
70 $(IPKG_BIND_SERVER):
71 install -d -m0755 $(IDIR_BIND_SERVER)/usr/sbin
72 install -d -m0755 $(IDIR_BIND_SERVER)/etc/init.d
73 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named $(IDIR_BIND_SERVER)/usr/sbin/
74 $(CP) files/bind $(IDIR_BIND_SERVER)/etc
75 $(CP) 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)
79
80 $(IPKG_BIND_CLIENT):
81 install -d -m0755 $(IDIR_BIND_CLIENT)/usr/bin
82 $(CP) $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(IDIR_BIND_CLIENT)/usr/bin/
83 $(RSTRIP) $(IDIR_BIND_CLIENT)
84 $(IPKG_BUILD) $(IDIR_BIND_CLIENT) $(PACKAGE_DIR)
This page took 0.047024 seconds and 5 git commands to generate.