Skip to content

Commit

Permalink
Merge pull request #443 from ott/master
Browse files Browse the repository at this point in the history
knot: Split utils subpackage
  • Loading branch information
sbyx committed Oct 19, 2014
2 parents 9bf2bd6 + 3285adb commit 93bda18
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 93bda18

Please sign in to comment.