From fd62baea7360661d1c23ec67c0bb301cd6ee5a27 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 8 Dec 2019 14:03:00 +1100 Subject: [PATCH] pdns: Upgrade to PowerDNS Authoritative 4.2.1 Upgraded to pdns-4.2.1 and corrected issues with dependency management on modules, in addition to moving zone2ldap under the ldap backend (It's only compiled if ldap backend is enabled) Signed-off-by: James Taylor --- net/pdns/Makefile | 17 +++++++++++------ net/pdns/files/pdns.conf-dist | 5 +++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/net/pdns/Makefile b/net/pdns/Makefile index 41c4e42f0..aee3f2a3d 100644 --- a/net/pdns/Makefile +++ b/net/pdns/Makefile @@ -1,12 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pdns -PKG_VERSION:=4.2.0 -PKG_RELEASE:=2 +PKG_VERSION:=4.2.1 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/ -PKG_HASH:=222007f25e25aad71ac7d8b7f1797a4bcb30781e456d74ed00396e53828a903a +PKG_HASH:=f65019986b8fcbb1c6fffebcded04b2b397b84395830f4c63e8d119bcfa1aa28 PKG_MAINTAINER:=James Taylor PKG_LICENCE:=GPL-2.0-only @@ -19,7 +19,7 @@ PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 -PKG_BUILD_DEPENDS:=unixodbc/host +PKG_BUILD_DEPENDS:=unixodbc/host protobuf-c/host include $(INCLUDE_DIR)/package.mk @@ -128,6 +128,7 @@ endef # 2: dependencies on other PowerDNS libraries (short name) # 3: dependencies on other packages # 4: conditional/inward dependencies +# 5: friendly display name define DefinePdnsBackend PDNS_DEPENDS+= +pdns-backend-$(1) PKG_CONFIG_DEPENDS+= CONFIG_PACKAGE_pdns-backend$(1) @@ -140,7 +141,8 @@ define DefinePdnsBackend define Package/pdns-backend-$(1) $(call Package/pdns/Default) TITLE+= ($(1)) - DEPENDS+= pdns $$(foreach backend,$(2),+pdns-backend-$$(backend)) $(3) + DEPENDS+= pdns $$(foreach backend,$(2),+pdns-backend-$$(backend)) \ + $$(foreach dependency,$(3),+$$(dependency)) HIDDEN:=1 endef @@ -203,6 +205,10 @@ endef define Package/pdns/Default/install $(INSTALL_DIR) $(1)/usr/lib/powerdns/pdns $(CP) $(PKG_INSTALL_DIR)/usr/lib/powerdns/pdns/lib$(PDNS_BACKEND_$(2)_LIB)backend.so $(1)/usr/lib/powerdns/pdns/ + if [ "$(PDNS_BACKEND_$(2)_LIB)" == "ldap" ]; then \ + $(INSTALL_DIR) $(1)/usr/bin; \ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/zone2ldap $(1)/usr/bin/; \ + fi endef define Package/pdns-ixfrdist/install @@ -214,7 +220,6 @@ endef define Package/pdns-tools/install $(INSTALL_DIR) $(1)/usr/bin - $(CP) $(PKG_INSTALL_DIR)/usr/bin/zone2ldap $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/dnsgram $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/dnsreplay $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/dnsscan $(1)/usr/bin/ diff --git a/net/pdns/files/pdns.conf-dist b/net/pdns/files/pdns.conf-dist index 84b75d3da..3d416adb0 100644 --- a/net/pdns/files/pdns.conf-dist +++ b/net/pdns/files/pdns.conf-dist @@ -49,6 +49,11 @@ # # api-key= +################################# +# axfr-fetch-timeout Maximum time in seconds for inbound AXFR to start or be idle after starting +# +# axfr-fetch-timeout=10 + ################################# # axfr-lower-serial Also AXFR a zone from a master with a lower serial #