2019-06-14 11:08:38 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pdns-recursor
|
2023-06-06 12:54:22 +00:00
|
|
|
PKG_VERSION:=5.0.1
|
2022-12-12 13:15:55 +00:00
|
|
|
PKG_RELEASE:=1
|
2019-06-14 11:08:38 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
|
2023-06-06 12:54:22 +00:00
|
|
|
PKG_HASH:=70a3b0bfde350e94cdb0746b06d06e6d2f3dc0e171be3b12caef9f3c38468ca3
|
2019-06-14 11:08:38 +00:00
|
|
|
|
2021-06-02 12:19:42 +00:00
|
|
|
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
|
2023-06-06 12:54:22 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-06-14 11:08:38 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:powerdns:recursor
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2023-06-06 12:54:22 +00:00
|
|
|
PKG_BUILD_DEPENDS:=rust/host
|
2019-06-14 11:08:38 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-06-06 12:54:22 +00:00
|
|
|
PKG_INSTALL:=1
|
2019-06-14 11:08:38 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2023-06-06 12:54:22 +00:00
|
|
|
include ../../lang/rust/rust-values.mk
|
2019-06-14 11:08:38 +00:00
|
|
|
|
|
|
|
define Package/pdns-recursor
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=IP Addresses and Names
|
|
|
|
USERID:=pdns:pdns
|
|
|
|
TITLE:=PowerDNS Recursor
|
2022-01-19 13:01:40 +00:00
|
|
|
DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +libfstrm +libcurl
|
2019-06-14 11:08:38 +00:00
|
|
|
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
|
2023-11-14 12:37:44 +00:00
|
|
|
/etc/powerdns/recursor.conf
|
2019-06-14 11:08:38 +00:00
|
|
|
/etc/init.d/pdns-recursor
|
|
|
|
endef
|
|
|
|
|
2021-06-14 16:37:51 +00:00
|
|
|
# not everything groks --disable-nls
|
|
|
|
DISABLE_NLS:=
|
|
|
|
|
2020-10-10 21:48:59 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2019-06-14 11:08:38 +00:00
|
|
|
--sysconfdir=/etc/powerdns \
|
2019-07-23 11:03:02 +00:00
|
|
|
--with-lua=lua \
|
|
|
|
--without-libcap \
|
|
|
|
--without-libsodium \
|
2019-06-14 11:08:38 +00:00
|
|
|
--without-net-snmp \
|
2022-01-19 13:01:40 +00:00
|
|
|
--enable-dns-over-tls \
|
2021-02-03 07:46:12 +00:00
|
|
|
--enable-reproducible \
|
2019-06-14 11:08:38 +00:00
|
|
|
--disable-silent-rules
|
|
|
|
|
2023-06-06 12:54:22 +00:00
|
|
|
MAKE_VARS += RUSTC_TARGET_ARCH=$(RUSTC_TARGET_ARCH)
|
|
|
|
MAKE_VARS += RUST_TARGET=--target=$(RUSTC_TARGET_ARCH)
|
|
|
|
|
2019-06-14 11:08:38 +00:00
|
|
|
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))
|