packages/net/pdns-recursor/Makefile
Otto Moerbeek 40efc9a4e2 pdns-recursor: Build rec-5.0.1, adding Rust dependencies
also fix license variable

Co-authored-by: Tianling Shen <cnsztl@gmail.com>
Signed-off-by: Otto Moerbeek <otto@drijf.net>
Signed-off-by: Peter van Dijk <peter.van.dijk@powerdns.com>
2024-01-23 17:42:21 -08:00

71 lines
2 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=pdns-recursor
PKG_VERSION:=5.0.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
PKG_HASH:=70a3b0bfde350e94cdb0746b06d06e6d2f3dc0e171be3b12caef9f3c38468ca3
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:powerdns:recursor
PKG_FIXUP:=autoreconf
PKG_BUILD_DEPENDS:=rust/host
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include ../../lang/rust/rust-values.mk
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
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
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))