include $(TOPDIR)/rules.mk PKG_NAME:=pdns-recursor PKG_VERSION:=5.2.13 PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-vendor.tar.zst PKG_SOURCE_URL:=@OPENWRT PKG_SOURCE_PROTO:=cargo-vendor-archive PKG_VENDOR_FILE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_VENDOR_URL:=https://downloads.powerdns.com/releases/ PKG_VENDOR_SUBDIR:=settings/rust PKG_VENDOR_HASH:=ee0eacc776aa48ef0be92f6b910048ee8606d1715133649806356ec38fed1e86 PKG_HASH:=1de7bef950d7f474a3999e6fde401ebd6a1380d5d4d7f1f4bdb46a253c6c8818 PKG_MAINTAINER:=Peter van Dijk , Remi Gacogne PKG_LICENSE:=GPL-2.0-only PKG_LICENSE_FILES:=COPYING PKG_CPE_ID:=cpe:/a:powerdns:recursor PKG_FIXUP:=autoreconf PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 # The Rust code is a static library inside pdns_recursor. RUST_PREFER_DYNAMIC:=0 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/rust-values.mk PKG_BUILD_DEPENDS+=$(RUST_PKG_BUILD_DEPENDS) PKG_CONFIG_DEPENDS+=$(RUST_PKG_CONFIG_DEPENDS) define Package/pdns-recursor SECTION:=net CATEGORY:=Network SUBMENU:=IP Addresses and Names USERID:=pdns:pdns TITLE:=PowerDNS Recursor DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +libfstrm +libcurl \ $(RUST_PKG_DEPENDS) URL:=https://www.powerdns.com/recursor.html endef define Package/pdns-recursor/description High-performance resolving name server, utilizing multiple processor and including Lua scripting capabilities. endef define Package/pdns-recursor/conffiles /etc/powerdns/recursor.conf /etc/init.d/pdns-recursor endef # not everything groks --disable-nls DISABLE_NLS:= CONFIGURE_ARGS += \ --sysconfdir=/etc/powerdns \ --with-lua=lua \ --without-libcap \ --without-libsodium \ --without-net-snmp \ --enable-dns-over-tls \ --enable-reproducible \ --disable-silent-rules CONFIGURE_VARS += CARGO=$(CARGO) MAKE_VARS += $(CARGO_PKG_CONFIG_VARS) MAKE_VARS += RUSTC_TARGET_ARCH=$(RUSTC_TARGET_ARCH) MAKE_VARS += RUST_TARGET=--target=$(RUSTC_TARGET_ARCH) define Package/pdns-recursor/install $(INSTALL_DIR) $(1)/etc/powerdns $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/ endef $(eval $(call BuildPackage,pdns-recursor))