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.

66 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=pdns-recursor
  3. PKG_VERSION:=4.7.1
  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:=d2f94573a6f0e63a1034ca2b301c27ebf2e1300a655ba669cc502d5ea8d6ec68
  8. PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
  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. 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-filesystem +libatomic +liblua +libopenssl +libfstrm +libcurl
  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. # not everything groks --disable-nls
  34. DISABLE_NLS:=
  35. CONFIGURE_ARGS += \
  36. --sysconfdir=/etc/powerdns \
  37. --with-lua=lua \
  38. --without-libcap \
  39. --without-libsodium \
  40. --without-net-snmp \
  41. --enable-dns-over-tls \
  42. --enable-reproducible \
  43. --disable-silent-rules
  44. define Package/pdns-recursor/install
  45. $(INSTALL_DIR) $(1)/etc/powerdns
  46. $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
  53. endef
  54. $(eval $(call BuildPackage,pdns-recursor))