Merge pull request #14569 from nickberry17/wc
[feed/packages.git] / net / pdns-recursor / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pdns-recursor
4 PKG_VERSION:=4.4.2
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
9 PKG_HASH:=b0b97f49848a1758b64bc0b99a596c1583ea525477193f3c01905f5163a4f5cf
10
11 PKG_MAINTAINER:=James Taylor <james@jtaylor.id.au>
12 PKG_LICENCE:=GPL-2.0-only
13 PKG_LICENCE_FILES:=COPYING
14 PKG_CPE_ID:=cpe:/a:powerdns:recursor
15
16 PKG_FIXUP:=autoreconf
17 PKG_INSTALL:=1
18 PKG_BUILD_PARALLEL:=1
19 PKG_BUILD_DEPENDS:=protobuf/host
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pdns-recursor
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=IP Addresses and Names
27 USERID:=pdns:pdns
28 TITLE:=PowerDNS Recursor
29 DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +protobuf +libfstrm
30 URL:=https://www.powerdns.com/recursor.html
31 endef
32
33 define Package/pdns-recursor/description
34 High-performance resolving name server, utilizing multiple
35 processor and including Lua scripting capabilities.
36 endef
37
38 define Package/pdns-recursor/conffiles
39 /etc/powerdns/pdns-recursor.conf
40 /etc/init.d/pdns-recursor
41 endef
42
43 CONFIGURE_ARGS += \
44 --sysconfdir=/etc/powerdns \
45 --with-lua=lua \
46 --without-libcap \
47 --without-libsodium \
48 --with-protobuf \
49 --without-net-snmp \
50 --enable-reproducible \
51 --disable-silent-rules
52
53 CONFIGURE_VARS += \
54 boost_cv_lib_context=yes \
55 boost_cv_lib_context_LIBS=-lboost_context
56
57 define Package/pdns-recursor/install
58 $(INSTALL_DIR) $(1)/etc/powerdns
59 $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
60 $(INSTALL_DIR) $(1)/etc/init.d
61 $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
66 endef
67
68 $(eval $(call BuildPackage,pdns-recursor))