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.

68 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=pdns-recursor
  3. PKG_VERSION:=4.4.2
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
  7. PKG_HASH:=b0b97f49848a1758b64bc0b99a596c1583ea525477193f3c01905f5163a4f5cf
  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. --enable-reproducible \
  42. --disable-silent-rules
  43. CONFIGURE_VARS += \
  44. boost_cv_lib_context=yes \
  45. boost_cv_lib_context_LIBS=-lboost_context
  46. define Package/pdns-recursor/install
  47. $(INSTALL_DIR) $(1)/etc/powerdns
  48. $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
  53. $(INSTALL_DIR) $(1)/usr/sbin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
  55. endef
  56. $(eval $(call BuildPackage,pdns-recursor))