summaryrefslogtreecommitdiffstats
path: root/package/bind/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-14 10:45:27 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-14 10:45:27 +0000
commit2901cbb0b79bcfe73ed88653e749698d23c99004 (patch)
treeaff50786705f5cde2d63f9ce56db2dcd2b18e395 /package/bind/Makefile
parent283e57a19c9b7d9f8582b15ba8ac486857d4fd77 (diff)
split into bind-server and bind-client package, add startup script and example named.conf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1918 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/bind/Makefile')
-rw-r--r--package/bind/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/package/bind/Makefile b/package/bind/Makefile
index d0bfe3433..497300ff5 100644
--- a/package/bind/Makefile
+++ b/package/bind/Makefile
@@ -13,10 +13,12 @@ PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+PKG_INIT_LEVEL:=60
include $(TOPDIR)/package/rules.mk
-$(eval $(call PKG_template,BIND,bind,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_template,BIND_SERVER,bind-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_template,BIND_CLIENT,bind-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
@@ -36,7 +38,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
- --sysconfdir=/etc \
+ --sysconfdir=/etc/bind \
--without-openssl \
--without-ipv6 \
$(DISABLE_LARGEFILE) \
@@ -91,8 +93,17 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
install
touch $(PKG_BUILD_DIR)/.built
-$(IPKG_BIND):
- install -d -m0755 $(IDIR_BIND)/usr/sbin
- cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/named $(IDIR_BIND)/usr/sbin/
- $(RSTRIP) $(IDIR_BIND)
- $(IPKG_BUILD) $(IDIR_BIND) $(PACKAGE_DIR)
+$(IPKG_BIND_SERVER):
+ install -d -m0755 $(IDIR_BIND_SERVER)/usr/sbin
+ install -d -m0755 $(IDIR_BIND_SERVER)/etc/init.d
+ cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/named $(IDIR_BIND_SERVER)/usr/sbin/
+ cp -fpR files/bind $(IDIR_BIND_SERVER)/etc
+ cp -fpR files/named.init $(IDIR_BIND_SERVER)/etc/init.d/S$(PKG_INIT_LEVEL)named
+ $(RSTRIP) $(IDIR_BIND_SERVER)
+ $(IPKG_BUILD) $(IDIR_BIND_SERVER) $(PACKAGE_DIR)
+
+$(IPKG_BIND_CLIENT):
+ install -d -m0755 $(IDIR_BIND_CLIENT)/usr/bin
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(IDIR_BIND_CLIENT)/usr/bin/
+ $(RSTRIP) $(IDIR_BIND_CLIENT)
+ $(IPKG_BUILD) $(IDIR_BIND_CLIENT) $(PACKAGE_DIR)