bind: add subpackaging for ddns-confgen
authorPhilip Prindeville <redacted>
Mon, 14 Mar 2022 02:20:08 +0000 (20:20 -0600)
committerPhilip Prindeville <redacted>
Mon, 14 Mar 2022 02:26:06 +0000 (20:26 -0600)
ddns-confgen is a useful tool for generating partial zones for
transfer/update in dynamic DNS (ddns) scenarios.

Signed-off-by: Philip Prindeville <redacted>
net/bind/Makefile

index df952d66d8fccc70589e8062cc136b3214e84415..4484e42d6bc8741c9f4090c00da3a6b2906d4250 100644 (file)
@@ -96,7 +96,8 @@ define Package/bind-tools
        +bind-nslookup \
        +bind-dnssec \
        +bind-host \
-       +bind-rndc
+       +bind-rndc \
+       +bind-ddns-confgen
 endef
 
 define Package/bind-rndc
@@ -131,6 +132,11 @@ define Package/bind-nslookup
          200:/usr/bin/nslookup:/usr/libexec/nslookup-bind
 endef
 
+define Package/bind-ddns-confgen
+  $(call Package/bind/Default)
+  TITLE+= administration tools (ddns-confgen and tsig-keygen only)
+endef
+
 export BUILD_CC="$(TARGET_CC)"
 
 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
@@ -259,6 +265,12 @@ define Package/bind-nslookup/install
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nslookup $(1)/usr/libexec/nslookup-bind
 endef
 
+define Package/bind-ddns-confgen/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ddns-confgen $(1)/usr/sbin/ddns-confgen
+       $(LN) -s ddns-confgen $(1)/usr/sbin/tsig-keygen
+endef
+
 $(eval $(call BuildPackage,bind-libs))
 $(eval $(call BuildPackage,bind-server))
 $(eval $(call BuildPackage,bind-server-filter-aaaa))
@@ -270,3 +282,4 @@ $(eval $(call BuildPackage,bind-dnssec))
 $(eval $(call BuildPackage,bind-host))
 $(eval $(call BuildPackage,bind-dig))
 $(eval $(call BuildPackage,bind-nslookup))
+$(eval $(call BuildPackage,bind-ddns-confgen))
git clone https://git.99rst.org/PROJECT