Merge pull request #15847 from neheb/assh
[feed/packages.git] / net / pdns-recursor / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pdns-recursor
4 PKG_VERSION:=4.5.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:=b1283d5354f1cbb3d15791f96af3ab3e08a13453431e94fe87b8dbe9f78f0184
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 --enable-option-checking=fatal \
47 --sysconfdir=/etc/powerdns \
48 --with-lua=lua \
49 --without-libcap \
50 --without-libsodium \
51 --without-net-snmp \
52 --enable-reproducible \
53 --disable-silent-rules
54
55 define Package/pdns-recursor/install
56 $(INSTALL_DIR) $(1)/etc/powerdns
57 $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
64 endef
65
66 $(eval $(call BuildPackage,pdns-recursor))