libgd: avoid recursive and redundant dependencies
[feed/packages.git] / net / knot-resolver / Makefile
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
8 PKG_RELRO_FULL:=0
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=knot-resolver
13 PKG_VERSION:=5.5.1
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-resolver
18 PKG_HASH:=9bad1edfd6631446da2d2331bd869887d7fe502f6eeaf62b2e43e2c113f02b6d
19
20 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
21 PKG_LICENSE:=GPL-3.0-later
22 PKG_LICENSE_FILES:=COPYING
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/meson.mk
26
27 define Package/knot-resolver
28 SECTION:=net
29 CATEGORY:=Network
30 SUBMENU:=IP Addresses and Names
31 TITLE:=Knot DNS Resolver
32 URL:=https://www.knot-resolver.cz
33 DEPENDS=\
34 +knot-libs \
35 +knot-libzscanner \
36 +libuv \
37 +luajit \
38 +luasec \
39 +luasocket \
40 +libstdcpp \
41 +libnghttp2 \
42 +lmdb \
43 PACKAGE_knot-resolver_dnstap:libfstrm \
44 PACKAGE_knot-resolver_dnstap:libprotobuf-c
45 USERID:=kresd=3536:kresd=3536
46 endef
47
48 define Package/knot-resolver/description
49 The Knot Resolver is a caching full resolver
50 implementation, including both a resolver library and a daemon.
51 endef
52
53 define Package/knot-resolver/config
54 source "$(SOURCE)/Config.in"
55 endef
56
57 MESON_ARGS+= \
58 $(if $(CONFIG_PACKAGE_knot-resolver_dnstap), -Ddnstap=enabled,-Ddnstap=disabled) \
59 -Dcapng=disabled \
60 -Dclient=disabled \
61 -Dconfig_tests=disabled \
62 -Ddnstap=disabled \
63 -Ddoc=disabled \
64 -Dinstall_kresd_conf=disabled \
65 -Dinstall_root_keys=disabled \
66 -Dkeyfile_default=/etc/knot-resolver/root.keys \
67 -Dprefix=/usr \
68 -Dunit_tests=disabled \
69 -Dutils=disabled
70
71 define Package/knot-resolver/install
72 $(INSTALL_DIR) $(1)/usr/sbin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kresd $(1)/usr/sbin/
74
75 $(INSTALL_DIR) $(1)/usr/lib/knot-resolver
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/knot-resolver/{*.lua,*.so} $(1)/usr/lib/knot-resolver/
78 $(INSTALL_DIR) $(1)/usr/lib/knot-resolver/kres_modules
79 $(CP) $(PKG_INSTALL_DIR)/usr/lib/knot-resolver/kres_modules/{*.lua,*.so} $(1)/usr/lib/knot-resolver/kres_modules/
80 $(INSTALL_DIR) $(1)/etc/init.d
81 $(INSTALL_BIN) ./files/kresd.init $(1)/etc/init.d/kresd
82
83 $(INSTALL_DIR) $(1)/etc/knot-resolver
84 $(CP) $(PKG_INSTALL_DIR)/etc/knot-resolver/root.hints $(1)/etc/knot-resolver/
85 $(CP) ./files/root.keys $(1)/etc/knot-resolver
86 endef
87
88 $(eval $(call BuildPackage,knot-resolver))