You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=pdns-recursor
  3. PKG_VERSION:=4.2.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
  7. PKG_HASH:=f03c72c1816fdcc645cc539d8c16721d2ec294feac9b5179e78c3db311b7c2c2
  8. PKG_MAINTAINER:=James Taylor <james@jtaylor.id.au>
  9. PKG_LICENCE:=GPL-2.0-only
  10. PKG_LICENCE_FILES:=COPYING
  11. PKG_CPE_ID:=cpe:/a:powerdns:recursor
  12. PKG_INSTALL:=1
  13. PKG_FIXUP:=autoreconf
  14. PKG_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/pdns-recursor
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=IP Addresses and Names
  20. USERID:=pdns:pdns
  21. TITLE:=PowerDNS Recursor
  22. DEPENDS:=+boost +boost-context +boost-thread +libatomic +liblua +libopenssl +protobuf
  23. URL:=https://www.powerdns.com/recursor.html
  24. endef
  25. define Package/pdns-recursor/description
  26. High-performance resolving name server, utilizing multiple
  27. processor and including Lua scripting capabilities.
  28. endef
  29. define Package/pdns-recursor/conffiles
  30. /etc/powerdns/pdns-recursor.conf
  31. /etc/init.d/pdns-recursor
  32. endef
  33. CONFIGURE_ARGS+= \
  34. --sysconfdir=/etc/powerdns \
  35. --with-lua=lua \
  36. --without-libcap \
  37. --without-libsodium \
  38. --with-protobuf \
  39. --without-net-snmp \
  40. --disable-silent-rules
  41. define Package/pdns-recursor/install
  42. $(INSTALL_DIR) $(1)/etc/powerdns
  43. $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
  48. $(INSTALL_DIR) $(1)/usr/sbin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
  50. endef
  51. $(eval $(call BuildPackage,pdns-recursor))