<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bd760eef32d9a3029ccc370e4612a5b14586ec95">https://github.com/macports/macports-ports/commit/bd760eef32d9a3029ccc370e4612a5b14586ec95</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bd760eef32d9a3029ccc370e4612a5b14586ec95
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Thu Jan 4 22:25:25 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> knot-resolver: new port (version 5.7.0)
</span>---
net/knot-resolver/Portfile | 54 ++++++++++++++++++++++
.../files/respect-pkgconfig-libdir.diff | 16 +++++++
net/knot/Portfile | 1 +
3 files changed, 71 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/knot-resolver/Portfile b/net/knot-resolver/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3ffcc300def
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/knot-resolver/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,54 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup meson 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# clock_gettime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 15
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name knot-resolver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 5.7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {mps @Schamschula} {@catap korins.ky:kirill} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description The Knot Resolver is a caching DNS resolver scalable from \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ huge resolver farms down to home network routers.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.knot-resolver.cz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://secure.nic.cz/files/knot-dns/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ https://sources.openwrt.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xz yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 dad1144e2020404141437896fe602ad64a8d9d08 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 383ef6db1cccabd2dd788ea9385f05e98a2bafdfeb7f0eda57ff9d572f4fad71 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1926196
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib path:lib/libluajit-5.1.2.dylib:luajit \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gnutls.pc:gnutls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/libknot.pc:libknot \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fstrm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:jemalloc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libuv \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:lmdb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:nghttp2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:protobuf-c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append respect-pkgconfig-libdir.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Should match knot port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms {darwin >= 15}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.netchange yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable ${prefix}/sbin/kresd -n ${prefix}/var/run/knot-resolver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.keepdirs ${destroot}${prefix}/var/run/knot-resolver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o root -d ${destroot}${prefix}/var/run/knot-resolver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/knot-resolver/files/respect-pkgconfig-libdir.diff b/net/knot-resolver/files/respect-pkgconfig-libdir.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3c11d4ebaa4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/knot-resolver/files/respect-pkgconfig-libdir.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git meson.build meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0b343043..ddf0f553 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -189,9 +189,9 @@ conf_data.set_quoted('ROOTHINTS', root_hints)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set_quoted('LIBEXT', libext)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set_quoted('OPERATING_SYSTEM', host_machine.system())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set_quoted('libzscanner_SONAME',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- libzscanner.get_pkgconfig_variable('soname'))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ libzscanner.get_pkgconfig_variable('libdir') / libzscanner.get_pkgconfig_variable('soname'))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set_quoted('libknot_SONAME',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- libknot.get_pkgconfig_variable('soname'))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ libknot.get_pkgconfig_variable('libdir') / libknot.get_pkgconfig_variable('soname'))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set('ENABLE_LIBSYSTEMD', libsystemd.found().to_int())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set('ENABLE_SENDMMSG', sendmmsg.to_int())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conf_data.set('ENABLE_XDP', xdp.to_int())
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/knot/Portfile b/net/knot/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8a2cbd99d00..a674988f6fb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/knot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/knot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +36,7 @@ depends_lib port:fstrm \
</span> port:protobuf-c \
port:userspace-rcu
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Should match knot-resolver port
</span> platforms {darwin >= 15}
patchfiles patch-src-knot-server-quic-handler.c.diff
</pre><pre style='margin:0'>
</pre>