Added logrotate, fixed CP call in httping, added bind splitting, thanks to Sébastien...
[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 $(eval $(call PKG_template,BIND_TOOLS,bind-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23 $(eval $(call PKG_template,BIND_RNDC,bind-rndc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24 $(eval $(call PKG_template,BIND_CHECK,bind-check,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25 $(eval $(call PKG_template,BIND_DNSSEC,bind-dnssec,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26 $(eval $(call PKG_template,BIND_HOST,bind-host,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
27 $(eval $(call PKG_template,BIND_DIG,bind-dig,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
28
29
30 $(PKG_BUILD_DIR)/.configured:
31 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
32 $(TARGET_CONFIGURE_OPTS) \
33 CFLAGS="$(strip $(TARGET_CFLAGS))" \
34 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
35 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
36 ./configure \
37 --target=$(GNU_TARGET_NAME) \
38 --host=$(GNU_TARGET_NAME) \
39 --build=$(GNU_HOST_NAME) \
40 --program-prefix="" \
41 --program-suffix="" \
42 --prefix=/usr \
43 --exec-prefix=/usr \
44 --bindir=/usr/bin \
45 --datadir=/usr/share \
46 --includedir=/usr/include \
47 --infodir=/usr/share/info \
48 --libdir=/usr/lib \
49 --libexecdir=/usr/lib \
50 --localstatedir=/var \
51 --mandir=/usr/share/man \
52 --sbindir=/usr/sbin \
53 --sysconfdir=/etc \
54 $(DISABLE_LARGEFILE) \
55 $(DISABLE_NLS) \
56 --enable-shared \
57 --enable-static \
58 --enable-ipv6 \
59 --with-randomdev=/dev/urandom \
60 --disable-threads \
61 --with-openssl=$(STAGING_DIR)/usr/ \
62 );
63 touch $(PKG_BUILD_DIR)/.configured
64
65 $(PKG_BUILD_DIR)/.built:
66 $(MAKE) -C $(PKG_BUILD_DIR)/lib/dns \
67 CC="$(HOSTCC)" \
68 CFLAGS="-O2" \
69 gen
70 rm -rf $(PKG_INSTALL_DIR)
71 mkdir -p $(PKG_INSTALL_DIR)
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 DESTDIR="$(PKG_INSTALL_DIR)" \
74 all install
75 touch $@
76
77 $(IPKG_BIND_SERVER):
78 install -d -m0755 $(IDIR_BIND_SERVER)/usr/sbin
79 install -d -m0755 $(IDIR_BIND_SERVER)/etc/init.d
80 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named $(IDIR_BIND_SERVER)/usr/sbin/
81 $(CP) files/bind $(IDIR_BIND_SERVER)/etc
82 $(CP) files/named.init $(IDIR_BIND_SERVER)/etc/init.d/S$(PKG_INIT_LEVEL)named
83 find $(IDIR_BIND_SERVER)/etc/bind -name ".svn" | xargs rm -rf
84 $(RSTRIP) $(IDIR_BIND_SERVER)
85 $(IPKG_BUILD) $(IDIR_BIND_SERVER) $(PACKAGE_DIR)
86
87 $(IPKG_BIND_CLIENT):
88 install -d -m0755 $(IDIR_BIND_CLIENT)/usr/bin
89 $(CP) $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(IDIR_BIND_CLIENT)/usr/bin/
90 $(RSTRIP) $(IDIR_BIND_CLIENT)
91 $(IPKG_BUILD) $(IDIR_BIND_CLIENT) $(PACKAGE_DIR)
92
93 $(IPKG_BIND_TOOLS):
94 install -d -m0755 $(IDIR_BIND_TOOLS)/usr/bin
95 install -d -m0755 $(IDIR_BIND_TOOLS)/usr/sbin
96 $(CP) $(PKG_INSTALL_DIR)/usr/bin/dig $(IDIR_BIND_TOOLS)/usr/bin/
97 $(CP) $(PKG_INSTALL_DIR)/usr/bin/host $(IDIR_BIND_TOOLS)/usr/bin/
98 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(IDIR_BIND_TOOLS)/usr/sbin/
99 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(IDIR_BIND_TOOLS)/usr/sbin/
100 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(IDIR_BIND_TOOLS)/usr/sbin/
101 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(IDIR_BIND_TOOLS)/usr/sbin/
102 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(IDIR_BIND_TOOLS)/usr/sbin/
103 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(IDIR_BIND_TOOLS)/usr/sbin/
104 $(RSTRIP) $(IDIR_BIND_TOOLS)
105 $(IPKG_BUILD) $(IDIR_BIND_TOOLS) $(PACKAGE_DIR)
106
107 $(IPKG_BIND_RNDC):
108 install -d -m0755 $(IDIR_BIND_RNDC)/usr/sbin
109 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(IDIR_BIND_RNDC)/usr/sbin/
110 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(IDIR_BIND_RNDC)/usr/sbin/
111 $(RSTRIP) $(IDIR_BIND_RNDC)
112 $(IPKG_BUILD) $(IDIR_BIND_RNDC) $(PACKAGE_DIR)
113
114 $(IPKG_BIND_CHECK):
115 install -d -m0755 $(IDIR_BIND_CHECK)/usr/sbin
116 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(IDIR_BIND_CHECK)/usr/sbin/
117 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(IDIR_BIND_CHECK)/usr/sbin/
118 $(RSTRIP) $(IDIR_BIND_CHECK)
119 $(IPKG_BUILD) $(IDIR_BIND_CHECK) $(PACKAGE_DIR)
120
121 $(IPKG_BIND_DNSSEC):
122 install -d -m0755 $(IDIR_BIND_DNSSEC)/usr/sbin
123 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(IDIR_BIND_DNSSEC)/usr/sbin/
124 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(IDIR_BIND_DNSSEC)/usr/sbin/
125 $(RSTRIP) $(IDIR_BIND_DNSSEC)
126 $(IPKG_BUILD) $(IDIR_BIND_DNSSEC) $(PACKAGE_DIR)
127
128 $(IPKG_BIND_HOST):
129 install -d -m0755 $(IDIR_BIND_HOST)/usr/bin
130 $(CP) $(PKG_INSTALL_DIR)/usr/bin/host $(IDIR_BIND_HOST)/usr/bin/
131 $(RSTRIP) $(IDIR_BIND_HOST)
132 $(IPKG_BUILD) $(IDIR_BIND_HOST) $(PACKAGE_DIR)
133
134 $(IPKG_BIND_DIG):
135 install -d -m0755 $(IDIR_BIND_DIG)/usr/bin
136 $(CP) $(PKG_INSTALL_DIR)/usr/bin/dig $(IDIR_BIND_DIG)/usr/bin/
137 $(RSTRIP) $(IDIR_BIND_DIG)
138 $(IPKG_BUILD) $(IDIR_BIND_DIG) $(PACKAGE_DIR)
This page took 0.046133 seconds and 5 git commands to generate.