updated to new upstream release (v0.4.0),
[openwrt.git] / openwrt / 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: $(PKG_BUILD_DIR)/.prepared
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 ./configure \
26 --target=$(GNU_HOST_NAME) \
27 --host=$(GNU_HOST_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --libdir=/usr/lib \
37 --libexecdir=/usr/lib \
38 --localstatedir=/var \
39 --mandir=/usr/share/man \
40 --sbindir=/usr/sbin \
41 --sysconfdir=/etc/bind \
42 --without-openssl \
43 --without-ipv6 \
44 $(DISABLE_LARGEFILE) \
45 $(DISABLE_NLS) \
46 );
47
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" \
59 ./configure \
60 --target=$(GNU_TARGET_NAME) \
61 --host=$(GNU_TARGET_NAME) \
62 --build=$(GNU_HOST_NAME) \
63 --program-prefix="" \
64 --program-suffix="" \
65 --prefix=/usr \
66 --exec-prefix=/usr \
67 --bindir=/usr/bin \
68 --datadir=/usr/share \
69 --includedir=/usr/include \
70 --infodir=/usr/share/info \
71 --libdir=/usr/lib \
72 --libexecdir=/usr/lib \
73 --localstatedir=/var \
74 --mandir=/usr/share/man \
75 --sbindir=/usr/sbin \
76 --sysconfdir=/etc \
77 $(DISABLE_LARGEFILE) \
78 $(DISABLE_NLS) \
79 --enable-shared \
80 --enable-static \
81 --enable-ipv6 \
82 --with-randomdev=/dev/random \
83 --disable-threads \
84 --with-openssl=$(STAGING_DIR)/usr/ \
85 );
86 touch $(PKG_BUILD_DIR)/.configured
87
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)" \
93 install
94 touch $(PKG_BUILD_DIR)/.built
95
96 $(IPKG_BIND_SERVER):
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)
104
105 $(IPKG_BIND_CLIENT):
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)
This page took 0.05655 seconds and 5 git commands to generate.