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.

65 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=pdns-recursor
  3. PKG_VERSION:=4.5.4
  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:=015d606a8f9a4a711489634d57375c77cc34f999ca43c195d8002e31a747896a
  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
  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-reproducible \
  42. --disable-silent-rules
  43. define Package/pdns-recursor/install
  44. $(INSTALL_DIR) $(1)/etc/powerdns
  45. $(INSTALL_CONF) ./files/recursor.conf-dist $(1)/etc/powerdns/
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/pdns-recursor.init $(1)/etc/init.d/pdns-recursor
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rec_control $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/usr/sbin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pdns_recursor $(1)/usr/sbin/
  52. endef
  53. $(eval $(call BuildPackage,pdns-recursor))