<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9d17671daa10d6fb9415d979fb07377bfd007d0d">https://github.com/macports/macports-ports/commit/9d17671daa10d6fb9415d979fb07377bfd007d0d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 9d17671daa1 stubby: update to 0.3.0
</span>9d17671daa1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9d17671daa10d6fb9415d979fb07377bfd007d0d
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Sun Jan 17 19:09:34 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> stubby: update to 0.3.0
</span>---
net/stubby/Portfile | 32 ++++++++++++-------
.../files/patch-CMakeLists-fix-stubby-yml.diff | 36 ++++++++++++++++++++++
2 files changed, 57 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/stubby/Portfile b/net/stubby/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a6eacbd1d25..518b2f646b7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/stubby/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/stubby/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,42 +1,52 @@
</span> # -*- 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
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup getdnsapi stubby 0.3.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup getdnsapi stubby 0.2.6 v
</span> categories net
platforms darwin
license BSD
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> maintainers {l2dy @l2dy} openmaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> description an application that acts as a local DNS Privacy stub \
resolver (using DNS-over-TLS)
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> long_description Stubby is the name given to a mode of using getdns which \
enables it to act as a local DNS Privacy stub resolver \
(using DNS-over-TLS). Stubby encrypts DNS queries sent from \
a client machine (desktop or laptop) to a DNS Privacy \
resolver increasing end user privacy.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> homepage https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 9f4511d9b49374ff75e2ce7563653fde072b3f5a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 74fab7933d14cb2c79c8e10fa14e627910382f1b09bc0bd017943726ce158e57 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 50785
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 1863897d3693f3f27505248c282a2ae9f2a3ebc9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b33e77df8f1699f05932dfc860faef14e60639d223a19877df0ab1a4313dea2c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 54763
</span>
depends_lib port:getdns \
port:libyaml
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.env-append DESTDIR=${destroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set stubbyconfdir ${prefix}/etc/stubby
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cflags-append -std=c99
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-CMakeLists-fix-stubby-yml.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${destroot}${prefix}/etc/stubby/stubby.yml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|set(STUBBYCONFDIR.*|set(STUBBYCONFDIR \"${stubbyconfdir}\")|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/CMakeLists.txt
</span> }
post-activate {
if {![file exists ${prefix}/etc/stubby/stubby.yml]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${prefix}/etc/stubby/stubby.yml.example ${prefix}/etc/stubby/stubby.yml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${prefix}/etc/stubby/stubby.yml.example ${stubbyconfdir}/stubby.yml
</span> }
}
startupitem.create yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.executable ${prefix}/bin/stubby -C ${prefix}/etc/stubby/stubby.yml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable ${prefix}/bin/stubby -C ${stubbyconfdir}/stubby.yml
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/stubby/files/patch-CMakeLists-fix-stubby-yml.diff b/net/stubby/files/patch-CMakeLists-fix-stubby-yml.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1824ff19f9a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/stubby/files/patch-CMakeLists-fix-stubby-yml.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/CMakeLists.txt b/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4ba36ed..92fc1c7 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -115,14 +115,25 @@ install(FILES AUTHORS COPYING ChangeLog NEWS README.md DESTINATION share/doc/stu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure the file gets CRLF line endings on Windows.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stubby.yml INPUT ${CMAKE_CURRENT_SOURCE_DIR}/stubby.yml.example)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Copy to destination iff no destination file exists.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Copy stubby.yml to destination iff no destination file exists.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# This is complicated by (a) not being able to use generators, due to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# CMake minimum version requirement, and (b) to account for DESTDIR.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# And in the latter case, if we're adding DESTDIR to the start of the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# path, we must on Windows remove any initial drive letter. That's what
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# INSTALL appears to do.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(CODE "\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(targetdir ${STUBBYCONFDIR})\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (\$ENV{DESTDIR})\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(targetdir \$ENV{DESTDIR}/\${targetdir})\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(targetdir \"${STUBBYCONFDIR}\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(destdir \"\$ENV{DESTDIR}\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (destdir)\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REGEX REPLACE \"^([A-Z]:)?/(.*)\" \"\\\\2\" newtarget \"\${targetdir}\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (newtarget)\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(targetdir \"\${newtarget}\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif ()\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(targetdir \"\${destdir}/\${newtarget}\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif ()\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (NOT EXISTS \${targetdir}/stubby.yml)\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file(COPY ${CMAKE_CURRENT_BINARY_DIR}/stubby.yml DESTINATION \${targetdir})\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (NOT EXISTS \"\${targetdir}/stubby.yml\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ file(COPY \"${CMAKE_CURRENT_BINARY_DIR}/stubby.yml\" DESTINATION \"\${targetdir}\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(\"-- Installing: \${targetdir}/stubby.yml\")\n\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif ()")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (APPLE)
</span></pre><pre style='margin:0'>
</pre>