pdns-recursor: Update to v4.5.7
[feed/packages.git] / net / pdns-recursor / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pdns-recursor
4 PKG_VERSION:=4.5.7
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:=ad4db2d4af4630757f786f3719225c2e37481257d676803a54194c7679d07bab
10
11 PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
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
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pdns-recursor
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=IP Addresses and Names
26 USERID:=pdns:pdns
27 TITLE:=PowerDNS Recursor
28 DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +libfstrm
29 URL:=https://www.powerdns.com/recursor.html
30 endef
31
32 define Package/pdns-recursor/description
33 High-performance resolving name server, utilizing multiple
34 processor and including Lua scripting capabilities.
35 endef
36
37 define Package/pdns-recursor/conffiles
38 /etc/powerdns/pdns-recursor.conf
39 /etc/init.d/pdns-recursor
40 endef
41
42 # not everything groks --disable-nls
43 DISABLE_NLS:=
44
45 CONFIGURE_ARGS += \
46 --sysconfdir=/etc/powerdns \
47 --with-lua=lua \
48 --without-libcap \
49 --without-libsodium \
50 --without-net-snmp \
51 --enable-reproducible \
52 --disable-silent-rules
53
54 define Package/pdns-recursor/install
55 $(INSTALL_DIR) $(1)/etc/powerdns
56 $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
63 endef
64
65 $(eval $(call BuildPackage,pdns-recursor))