6edbe2bb5c781606f147dad0044115d39e93e2c6
[feed/packages.git] / net / pdns-recursor / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pdns-recursor
4 PKG_VERSION:=5.0.3
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
9 PKG_HASH:=01d170a2850eb2aca501d6838a3444136589980d5cb2c2b53392b76459e38c07
10
11 PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>, Remi Gacogne <remi.gacogne@powerdns.com>
12 PKG_LICENSE:=GPL-2.0-only
13 PKG_LICENSE_FILES:=COPYING
14 PKG_CPE_ID:=cpe:/a:powerdns:recursor
15
16 PKG_FIXUP:=autoreconf
17 PKG_BUILD_DEPENDS:=rust/host
18 PKG_BUILD_PARALLEL:=1
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include ../../lang/rust/rust-values.mk
23
24 define Package/pdns-recursor
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=IP Addresses and Names
28 USERID:=pdns:pdns
29 TITLE:=PowerDNS Recursor
30 DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +libfstrm +libcurl
31 URL:=https://www.powerdns.com/recursor.html
32 endef
33
34 define Package/pdns-recursor/description
35 High-performance resolving name server, utilizing multiple
36 processor and including Lua scripting capabilities.
37 endef
38
39 define Package/pdns-recursor/conffiles
40 /etc/powerdns/recursor.conf
41 /etc/init.d/pdns-recursor
42 endef
43
44 # not everything groks --disable-nls
45 DISABLE_NLS:=
46
47 CONFIGURE_ARGS += \
48 --sysconfdir=/etc/powerdns \
49 --with-lua=lua \
50 --without-libcap \
51 --without-libsodium \
52 --without-net-snmp \
53 --enable-dns-over-tls \
54 --enable-reproducible \
55 --disable-silent-rules
56
57 MAKE_VARS += RUSTC_TARGET_ARCH=$(RUSTC_TARGET_ARCH)
58 MAKE_VARS += RUST_TARGET=--target=$(RUSTC_TARGET_ARCH)
59
60 define Package/pdns-recursor/install
61 $(INSTALL_DIR) $(1)/etc/powerdns
62 $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
63 $(INSTALL_DIR) $(1)/etc/init.d
64 $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
65 $(INSTALL_DIR) $(1)/usr/bin
66 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
69 endef
70
71 $(eval $(call BuildPackage,pdns-recursor))