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.

90 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2015-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. PKG_RELRO_FULL:=0
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=knot-resolver
  10. PKG_VERSION:=5.4.3
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-resolver
  14. PKG_HASH:=488729eb93190336b6bca10de0d78ecb7919f77fcab105debc0a644aa7d0a506
  15. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
  16. PKG_LICENSE:=GPL-3.0-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/meson.mk
  21. define Package/knot-resolver
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=IP Addresses and Names
  25. TITLE:=Knot DNS Resolver
  26. URL:=https://www.knot-resolver.cz
  27. DEPENDS=\
  28. +knot-libs \
  29. +knot-libzscanner \
  30. +libuv \
  31. +luajit \
  32. +luasec \
  33. +luasocket \
  34. +libstdcpp \
  35. +libnghttp2 \
  36. +lmdb \
  37. PACKAGE_knot-resolver_dnstap:libfstrm \
  38. PACKAGE_knot-resolver_dnstap:libprotobuf-c
  39. USERID:=kresd=3536:kresd=3536
  40. endef
  41. define Package/knot-resolver/description
  42. The Knot Resolver is a caching full resolver
  43. implementation, including both a resolver library and a daemon.
  44. endef
  45. define Package/knot-resolver/config
  46. source "$(SOURCE)/Config.in"
  47. endef
  48. MESON_ARGS+= \
  49. $(if $(CONFIG_PACKAGE_knot-resolver_dnstap), -Ddnstap=enabled,-Ddnstap=disabled) \
  50. -Dcapng=disabled \
  51. -Dclient=disabled \
  52. -Dconfig_tests=disabled \
  53. -Ddnstap=disabled \
  54. -Ddoc=disabled \
  55. -Dinstall_kresd_conf=disabled \
  56. -Dinstall_root_keys=disabled \
  57. -Dkeyfile_default=/etc/knot-resolver/root.keys \
  58. -Dprefix=/usr \
  59. -Dunit_tests=disabled \
  60. -Dutils=disabled
  61. define Package/knot-resolver/install
  62. $(INSTALL_DIR) $(1)/usr/sbin
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kresd $(1)/usr/sbin/
  64. $(INSTALL_DIR) $(1)/usr/lib/knot-resolver
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knot-resolver/{*.lua,*.so} $(1)/usr/lib/knot-resolver/
  67. $(INSTALL_DIR) $(1)/usr/lib/knot-resolver/kres_modules
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knot-resolver/kres_modules/{*.lua,*.so} $(1)/usr/lib/knot-resolver/kres_modules/
  69. $(INSTALL_DIR) $(1)/etc/init.d
  70. $(INSTALL_BIN) ./files/kresd.init $(1)/etc/init.d/kresd
  71. $(INSTALL_DIR) $(1)/etc/knot-resolver
  72. $(CP) $(PKG_INSTALL_DIR)/etc/knot-resolver/root.hints $(1)/etc/knot-resolver/
  73. $(CP) ./files/root.keys $(1)/etc/knot-resolver
  74. endef
  75. $(eval $(call BuildPackage,knot-resolver))