pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

knot-resolver: Initial 5.7.4 (not functional, wip)



Module Name:	pkgsrc-wip
Committed By:	Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By:	drixter
Date:		Fri Jan 24 16:29:32 2025 +0100
Changeset:	27a65bbe86f75e7e1ad3909a18828eac607eb5bc

Modified Files:
	Makefile
Added Files:
	knot-resolver/DESCR
	knot-resolver/Makefile
	knot-resolver/PLIST
	knot-resolver/TODO
	knot-resolver/buildlink3.mk
	knot-resolver/distinfo
	knot-resolver/files/knot-resolver.sh
	knot-resolver/patches/patch-utils_client_kresc.c

Log Message:
knot-resolver: Initial 5.7.4 (not functional, wip)

Todo:
[ ] Update Makefile
[ ] Create start-up script
[ ] Ensure that all LUA points to proper folder after installation
[ ] Create folder for cache
[ ] Sanity check of everything
[ ] Run it it somewhere for test

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=27a65bbe86f75e7e1ad3909a18828eac607eb5bc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                         |   1 +
 knot-resolver/DESCR                              |   8 ++
 knot-resolver/Makefile                           |  45 ++++++++++
 knot-resolver/PLIST                              | 110 +++++++++++++++++++++++
 knot-resolver/TODO                               |   9 ++
 knot-resolver/buildlink3.mk                      |  13 +++
 knot-resolver/distinfo                           |   6 ++
 knot-resolver/files/knot-resolver.sh             |  13 +++
 knot-resolver/patches/patch-utils_client_kresc.c |  15 ++++
 9 files changed, 220 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 1dfe47b8f6..5167eeb302 100644
--- a/Makefile
+++ b/Makefile
@@ -1879,6 +1879,7 @@ SUBDIR+=	kea
 SUBDIR+=	kea-git
 SUBDIR+=	keama-git
 SUBDIR+=	kermit
+SUBDIR+=	knot-resolver
 SUBDIR+=	kf6-kstatusnotifieritem
 SUBDIR+=	kgamma5
 SUBDIR+=	kgrab
diff --git a/knot-resolver/DESCR b/knot-resolver/DESCR
new file mode 100644
index 0000000000..c3dbb67000
--- /dev/null
+++ b/knot-resolver/DESCR
@@ -0,0 +1,8 @@
+Knot Resolver is a caching full resolver implementation
+written in C and LuaJIT, both a resolver library and a daemon.
+The core architecture is tiny and efficient, and provides a
+foundation and a state-machine like API for extensions.
+There are three modules built-in - *iterator*, *validator*,
+*cache*, and a few more are loaded by default.
+Most of the rich features are written in Lua(JIT) and C.
+Batteries are included, but optional.
diff --git a/knot-resolver/Makefile b/knot-resolver/Makefile
new file mode 100644
index 0000000000..b4df67ce51
--- /dev/null
+++ b/knot-resolver/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD$
+
+DISTNAME=	knot-resolver-5.7.4
+CATEGORIES=	net
+MASTER_SITES=	https://secure.nic.cz/files/knot-resolver/
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	drixter%e-utp.net@localhost
+HOMEPAGE=	https://secure.nic.cz/files/knot-resolver/
+COMMENT=	Knot (resolver) DNS server
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=	c c++
+
+CMAKE_ARGS+=		-DINSTALL_BINDIR="bin"
+CMAKE_ARGS+=		-DINSTALL_INFODIR="${PKGINFODIR}"
+CMAKE_ARGS+=		-DINSTALL_LIBDIR="lib"
+CMAKE_ARGS+=		-DINSTALL_MANDIR="${PKGMANDIR}"
+CMAKE_ARGS+=		-DCMAKE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR}
+CMAKE_ARGS+=		-DINSTALL_SBINDIR="sbin"
+CMAKE_ARGS+=		-DINSTALL_SCRIPTDIR="bin"
+
+PKG_SYSCONFVAR=		knot-resolver
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_LIBTOOL=	yes
+USE_TOOLS+=	cmake pkg-config
+
+RCD_SCRIPTS=	knot-resolver
+
+.include "../../net/knot/buildlink3.mk"
+.include "../../devel/libuv/buildlink3.mk"
+.include "../../databases/lmdb/buildlink3.mk"
+.include "../../lang/LuaJIT2/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../devel/userspace-rcu/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../devel/editline/buildlink3.mk"
+.include "../../devel/jemalloc/buildlink3.mk"
+.include "../../devel/cmocka/buildlink3.mk"
+.include "../../mk/tools/pkg-config.mk"
+.include "../../devel/meson/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/knot-resolver/PLIST b/knot-resolver/PLIST
new file mode 100644
index 0000000000..76e4322452
--- /dev/null
+++ b/knot-resolver/PLIST
@@ -0,0 +1,110 @@
+@comment $NetBSD$
+etc/knot-resolver/icann-ca.pem
+etc/knot-resolver/root.hints
+etc/knot-resolver/root.keys
+etc/knot-resolver/kresd.conf
+include/libkres/api.h
+include/libkres/array.h
+include/libkres/cdb_api.h
+include/libkres/cdb_lmdb.h
+include/libkres/defines.h
+include/libkres/dnssec.h
+include/libkres/impl.h
+include/libkres/iterate.h
+include/libkres/layer.h
+include/libkres/log.h
+include/libkres/lru.h
+include/libkres/module.h
+include/libkres/nsec.h
+include/libkres/nsec3.h
+include/libkres/pack.h
+include/libkres/queue.h
+include/libkres/resolve.h
+include/libkres/rplan.h
+include/libkres/selection.h
+include/libkres/selection_forward.h
+include/libkres/selection_iter.h
+include/libkres/signature.h
+include/libkres/ta.h
+include/libkres/trie.h
+include/libkres/utils.h
+include/libkres/zonecut.h
+lib/knot-resolver/ahocorasick.so
+lib/knot-resolver/debug_opensslkeylog.so
+lib/knot-resolver/distro-preconfig.lua
+lib/knot-resolver/kluautil.lua
+lib/knot-resolver/kres-gen.lua
+lib/knot-resolver/kres.lua
+lib/knot-resolver/kres_modules/bogus_log.so
+lib/knot-resolver/kres_modules/daf.lua
+lib/knot-resolver/kres_modules/daf/daf.js
+lib/knot-resolver/kres_modules/detect_time_jump.lua
+lib/knot-resolver/kres_modules/detect_time_skew.lua
+lib/knot-resolver/kres_modules/dns64.lua
+lib/knot-resolver/kres_modules/edns_keepalive.so
+lib/knot-resolver/kres_modules/etcd.lua
+lib/knot-resolver/kres_modules/experimental_dot_auth.lua
+lib/knot-resolver/kres_modules/extended_error.so
+lib/knot-resolver/kres_modules/graphite.lua
+lib/knot-resolver/kres_modules/hints.so
+lib/knot-resolver/kres_modules/http.lua
+lib/knot-resolver/kres_modules/http/bootstrap-theme.min.css
+lib/knot-resolver/kres_modules/http/bootstrap.min.css
+lib/knot-resolver/kres_modules/http/bootstrap.min.js
+lib/knot-resolver/kres_modules/http/d3.js
+lib/knot-resolver/kres_modules/http/datamaps.world.min.js
+lib/knot-resolver/kres_modules/http/dygraph.min.js
+lib/knot-resolver/kres_modules/http/epoch.css
+lib/knot-resolver/kres_modules/http/epoch.js
+lib/knot-resolver/kres_modules/http/favicon.ico
+lib/knot-resolver/kres_modules/http/glyphicons-halflings-regular.woff2
+lib/knot-resolver/kres_modules/http/jquery.js
+lib/knot-resolver/kres_modules/http/kresd.css
+lib/knot-resolver/kres_modules/http/kresd.js
+lib/knot-resolver/kres_modules/http/main.tpl
+lib/knot-resolver/kres_modules/http/selectize.bootstrap3.css
+lib/knot-resolver/kres_modules/http/selectize.min.js
+lib/knot-resolver/kres_modules/http/topojson.js
+lib/knot-resolver/kres_modules/http_doh.lua
+lib/knot-resolver/kres_modules/http_tls_cert.lua
+lib/knot-resolver/kres_modules/http_trace.lua
+lib/knot-resolver/kres_modules/nsid.so
+lib/knot-resolver/kres_modules/policy.lua
+lib/knot-resolver/kres_modules/predict.lua
+lib/knot-resolver/kres_modules/prefill.lua
+lib/knot-resolver/kres_modules/priming.lua
+lib/knot-resolver/kres_modules/prometheus.lua
+lib/knot-resolver/kres_modules/rebinding.lua
+lib/knot-resolver/kres_modules/refuse_nord.so
+lib/knot-resolver/kres_modules/renumber.lua
+lib/knot-resolver/kres_modules/serve_stale.lua
+lib/knot-resolver/kres_modules/stats.so
+lib/knot-resolver/kres_modules/ta_sentinel.lua
+lib/knot-resolver/kres_modules/ta_signal_query.lua
+lib/knot-resolver/kres_modules/ta_update.lua
+lib/knot-resolver/kres_modules/view.lua
+lib/knot-resolver/kres_modules/watchdog.lua
+lib/knot-resolver/kres_modules/workarounds.lua
+lib/knot-resolver/krprint.lua
+lib/knot-resolver/postconfig.lua
+lib/knot-resolver/sandbox.lua
+lib/knot-resolver/trust_anchors.lua
+lib/knot-resolver/upgrade-4-to-5.lua
+lib/knot-resolver/zonefile.lua
+lib/libkres.so
+lib/libkres.so.9
+lib/pkgconfig/libkres.pc
+man/man8/kresd.8
+sbin/kres-cache-gc
+sbin/kresc
+sbin/kresd
+share/doc/knot-resolver/AUTHORS
+share/doc/knot-resolver/COPYING
+share/doc/knot-resolver/NEWS
+share/doc/knot-resolver/examples/config.cluster
+share/doc/knot-resolver/examples/config.docker
+share/doc/knot-resolver/examples/config.internal
+share/doc/knot-resolver/examples/config.isp
+share/doc/knot-resolver/examples/config.privacy
+share/doc/knot-resolver/examples/config.personal
+share/doc/knot-resolver/examples/config.splitview
diff --git a/knot-resolver/TODO b/knot-resolver/TODO
new file mode 100644
index 0000000000..63993cfb95
--- /dev/null
+++ b/knot-resolver/TODO
@@ -0,0 +1,9 @@
+# $NetBSD$
+
+[ ] Update Makefile
+[ ] Create start-up script
+[ ] Ensure that all LUA points to proper folder after installation
+[ ] Create folder for cache
+[ ] Sanity check of everything
+[ ] Run it it somewhere for test
+
diff --git a/knot-resolver/buildlink3.mk b/knot-resolver/buildlink3.mk
new file mode 100644
index 0000000000..f545b6c101
--- /dev/null
+++ b/knot-resolver/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	knot
+
+.if !defined(KNOT_BUILDLINK3_MK)
+KNOT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.knot+=	knot>=3.3.8
+BUILDLINK_PKGSRCDIR.knot?=	../../net/knot
+
+.endif	# KNOT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-knot
diff --git a/knot-resolver/distinfo b/knot-resolver/distinfo
new file mode 100644
index 0000000000..6ae10d4377
--- /dev/null
+++ b/knot-resolver/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (knot-resolver-5.7.4.tar.xz) = 7fe0d2b44d17ea9e86e54d8296060600abfef73efa592894caf6cf3d2136ae70
+SHA512 (knot-resolver-5.7.4.tar.xz) = 5d8ea5b5b0cba5a1058aaa6e04573c838895d6b2c204e8d09c9ad898fb074c52ef7589afdad164b007edf151167d31fd0f940466edfeec597f96e5bc1cd72171
+Size (knot-resolver-5.7.4.tar.xz) = 1931124 bytes
+SHA1 (patch-utils_client_kresc.c) = 94976fd265048974df41988981f4a7eaeab91a54
diff --git a/knot-resolver/files/knot-resolver.sh b/knot-resolver/files/knot-resolver.sh
new file mode 100644
index 0000000000..7c0c363759
--- /dev/null
+++ b/knot-resolver/files/knot-resolver.sh
@@ -0,0 +1,13 @@
+# $NetBSD$
+#
+# PROVIDE: knot-resolver
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start knot-resolver:
+#
+# knot-resolver=YES
+
+name="knot-resolver"
+
+# TO BE CREATED
\ No newline at end of file
diff --git a/knot-resolver/patches/patch-utils_client_kresc.c b/knot-resolver/patches/patch-utils_client_kresc.c
new file mode 100644
index 0000000000..4c108e1a8b
--- /dev/null
+++ b/knot-resolver/patches/patch-utils_client_kresc.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix readline.h location
+
+--- utils/client/kresc.c.orig	2024-08-26 10:16:43.040999797 +0000
++++ utils/client/kresc.c
+@@ -3,7 +3,7 @@
+  */
+ #include <arpa/inet.h>
+ #include <contrib/ccan/asprintf/asprintf.h>
+-#include <editline/readline.h>
++#include <readline.h>
+ #include <errno.h>
+ #include <histedit.h>
+ #include <stdbool.h>


Home | Main Index | Thread Index | Old Index