Skip to content

Commit

Permalink
knot: Split utils subpackage
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ott committed Oct 19, 2014
1 parent 83371a3 commit 3285adb
Showing 1 changed file with 53 additions and 8 deletions.
61 changes: 53 additions & 8 deletions net/knot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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/
Expand All @@ -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))

0 comments on commit 3285adb

Please sign in to comment.