From 3285adb57241f9b8f2c551d57a938e8ccf8e0cbf Mon Sep 17 00:00:00 2001 From: Matthias-Christian Ott Date: Sat, 18 Oct 2014 21:59:23 +0200 Subject: [PATCH] knot: Split utils subpackage knot-utils consists of kdig, khost, knsec3hash and knsupdate. In order to reduce the size of software installed on a device it is useful to include a minimal collection of software and thus it should be possible to install the utilities individually. bind also creates a subpackage for each utility. Signed-off-by: Matthias-Christian Ott --- net/knot/Makefile | 61 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/net/knot/Makefile b/net/knot/Makefile index 23740b229fc46..2b6c8f335c662 100644 --- a/net/knot/Makefile +++ b/net/knot/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=knot PKG_VERSION:=1.5.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) @@ -46,9 +46,27 @@ define Package/knot DEPENDS+=+knot-libknot endef -define Package/knot-utils +define Package/knot-dig $(call Package/knot/Default) - TITLE+= (utils) + TITLE+= lookup utility + DEPENDS+=+knot-libknot +endef + +define Package/knot-host + $(call Package/knot/Default) + TITLE+= simple DNS lookup utility + DEPENDS+=+knot-libknot +endef + +define Package/knot-nsec3hash + $(call Package/knot/Default) + TITLE+= simple NSEC3 hash utility + DEPENDS+=+knot-libknot +endef + +define Package/knot-nsupdate + $(call Package/knot/Default) + TITLE+= dynamic DNS update utility DEPENDS+=+knot-libknot endef @@ -66,8 +84,20 @@ define Package/knot/description High-performance authoritative-only DNS server. endef -define Package/knot-utils/description - DNS utilities: kdig, khost, knsupdate and knsec3hash. +define Package/knot-dig/description + Knot DNS lookup utility. +endef + +define Package/knot-host/description + Knot DNS simple DNS lookup utility. +endef + +define Package/knot-nsec3hash/description + Knot DNS simple utility to compute NSEC3 hash. +endef + +define Package/knot-nsupdate/description + Knot DNS dynamic DNS update utility. endef define Package/knot-tests/description @@ -114,14 +144,26 @@ define Package/knot/install $(INSTALL_BIN) ./files/knotd.init $(1)/etc/init.d/knotd endef -define Package/knot-utils/install +define Package/knot-dig/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdig $(1)/usr/bin/ +endef + +define Package/knot-host/install + $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/khost $(1)/usr/bin/ - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knsupdate $(1)/usr/bin/ +endef + +define Package/knot-nsec3hash/install + $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knsec3hash $(1)/usr/bin/ endef +define Package/knot-nsupdate/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knsupdate $(1)/usr/bin/ +endef + define Package/knot-tests/install $(INSTALL_DIR) $(1)/usr/share/knot $(INSTALL_BIN) ./files/runtests.sh $(1)/usr/share/knot/ @@ -146,5 +188,8 @@ endef $(eval $(call BuildPackage,knot-libknot)) $(eval $(call BuildPackage,knot)) -$(eval $(call BuildPackage,knot-utils)) +$(eval $(call BuildPackage,knot-dig)) +$(eval $(call BuildPackage,knot-host)) +$(eval $(call BuildPackage,knot-nsec3hash)) +$(eval $(call BuildPackage,knot-nsupdate)) $(eval $(call BuildPackage,knot-tests))