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.

92 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.0
  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:=534af671b98433b23b57039acc9d7d3c100a4888a8cf9aeba36161774ca0815e
  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. # kres_gen_test breaks on cross, fix is already upstream
  49. MESON_ARGS+= \
  50. $(if $(CONFIG_PACKAGE_knot-resolver_dnstap), -Ddnstap=enabled,-Ddnstap=disabled) \
  51. -Dcapng=disabled \
  52. -Dclient=disabled \
  53. -Dconfig_tests=disabled \
  54. -Ddnstap=disabled \
  55. -Ddoc=disabled \
  56. -Dinstall_kresd_conf=disabled \
  57. -Dinstall_root_keys=disabled \
  58. -Dkeyfile_default=/etc/knot-resolver/root.keys \
  59. -Dprefix=/usr \
  60. -Dunit_tests=disabled \
  61. -Dkres_gen_test=false \
  62. -Dutils=disabled
  63. define Package/knot-resolver/install
  64. $(INSTALL_DIR) $(1)/usr/sbin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kresd $(1)/usr/sbin/
  66. $(INSTALL_DIR) $(1)/usr/lib/knot-resolver
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knot-resolver/{*.lua,*.so} $(1)/usr/lib/knot-resolver/
  69. $(INSTALL_DIR) $(1)/usr/lib/knot-resolver/kres_modules
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knot-resolver/kres_modules/{*.lua,*.so} $(1)/usr/lib/knot-resolver/kres_modules/
  71. $(INSTALL_DIR) $(1)/etc/init.d
  72. $(INSTALL_BIN) ./files/kresd.init $(1)/etc/init.d/kresd
  73. $(INSTALL_DIR) $(1)/etc/knot-resolver
  74. $(CP) $(PKG_INSTALL_DIR)/etc/knot-resolver/root.hints $(1)/etc/knot-resolver/
  75. $(CP) ./files/root.keys $(1)/etc/knot-resolver
  76. endef
  77. $(eval $(call BuildPackage,knot-resolver))