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.

67 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=pdns-recursor
  3. PKG_VERSION:=4.4.1
  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:=f97fa34635d42c68acee5d4da9db0e5ff619fd49e62acace7b4bdb7ee3675698
  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_FIXUP:=autoreconf
  13. PKG_INSTALL:=1
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_BUILD_DEPENDS:=protobuf/host
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/pdns-recursor
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=IP Addresses and Names
  21. USERID:=pdns:pdns
  22. TITLE:=PowerDNS Recursor
  23. DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +protobuf +libfstrm
  24. URL:=https://www.powerdns.com/recursor.html
  25. endef
  26. define Package/pdns-recursor/description
  27. High-performance resolving name server, utilizing multiple
  28. processor and including Lua scripting capabilities.
  29. endef
  30. define Package/pdns-recursor/conffiles
  31. /etc/powerdns/pdns-recursor.conf
  32. /etc/init.d/pdns-recursor
  33. endef
  34. CONFIGURE_ARGS += \
  35. --sysconfdir=/etc/powerdns \
  36. --with-lua=lua \
  37. --without-libcap \
  38. --without-libsodium \
  39. --with-protobuf \
  40. --without-net-snmp \
  41. --disable-silent-rules
  42. CONFIGURE_VARS += \
  43. boost_cv_lib_context=yes \
  44. boost_cv_lib_context_LIBS=-lboost_context
  45. define Package/pdns-recursor/install
  46. $(INSTALL_DIR) $(1)/etc/powerdns
  47. $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
  52. $(INSTALL_DIR) $(1)/usr/sbin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
  54. endef
  55. $(eval $(call BuildPackage,pdns-recursor))