From 04710b869a2ca712da79f533e40d424f68d345d4 Mon Sep 17 00:00:00 2001 From: wbx Date: Wed, 14 Sep 2005 10:45:27 +0000 Subject: split into bind-server and bind-client package, add startup script and example named.conf git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1918 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/bind/Makefile | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'openwrt/package/bind/Makefile') diff --git a/openwrt/package/bind/Makefile b/openwrt/package/bind/Makefile index d0bfe3433..497300ff5 100644 --- a/openwrt/package/bind/Makefile +++ b/openwrt/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) -- cgit v1.2.3