Merge pull request #14111 from neheb/vm
[feed/packages.git] / net / pdns-recursor / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pdns-recursor
4 PKG_VERSION:=4.4.1
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:=f97fa34635d42c68acee5d4da9db0e5ff619fd49e62acace7b4bdb7ee3675698
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 --disable-silent-rules
51
52 CONFIGURE_VARS += \
53 boost_cv_lib_context=yes \
54 boost_cv_lib_context_LIBS=-lboost_context
55
56 define Package/pdns-recursor/install
57 $(INSTALL_DIR) $(1)/etc/powerdns
58 $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
65 endef
66
67 $(eval $(call BuildPackage,pdns-recursor))