<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/451d313ff632d06c6e0acdc640086feb36ff00b9">https://github.com/macports/macports-ports/commit/451d313ff632d06c6e0acdc640086feb36ff00b9</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 451d313ff63 maddy: new port (version 0.6.2)
</span>451d313ff63 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 451d313ff632d06c6e0acdc640086feb36ff00b9
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Mon Jul 4 16:36:09 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> maddy: new port (version 0.6.2)
</span>---
mail/maddy/Portfile | 88 ++++++++++++++++++++++++++++++++++++
mail/maddy/files/patch-build.sh.diff | 61 +++++++++++++++++++++++++
2 files changed, 149 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/maddy/Portfile b/mail/maddy/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6b95615737e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/maddy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,88 @@
</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 golang 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+go.setup github.com/foxcpp/maddy 0.6.2 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://maddy.email
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Composable all-in-one mail server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Maddy Mail Server implements all functionality required to run a e-mail \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ server. It can send messages via SMTP (works as MTA), accept messages via \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SMTP (works as MX) and store messages while providing access to them via \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IMAP. In addition to that it implements auxiliary protocols that are \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mandatory to keep email reasonably secure (DKIM, SPF, DMARC, DANE, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MTA-STS). It replaces Postfix, Dovecot, OpenDKIM, OpenSPF, OpenDMARC and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ more with one daemon with uniform configuration and minimal maintenance \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cost.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories mail
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:herby.gillot @herbygillot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 2d61527fdb862d493d04229336ba78cfb26cfbe4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6a29645afd9eb89fcc0fd38238ee9fb87a8ad7e854d0d89aa6da6161b8a2d497 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 391366
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:scdoc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-build.sh.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/etc/maddy|${prefix}/etc/maddy|g" ${worksrcpath}/maddy.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set maddy_logfile ${prefix}/var/log/${name}.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Allow Go to fetch dependencies at build time
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-delete GO111MODULE=off GOPROXY=off
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd ./build.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.pre_args --prefix ${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --destdir ${destroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args build
</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/lib/maddy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/run/maddy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/libexec/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {"darwin" eq ${os.platform} && ${os.major} > 8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set svcuser _${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set svcuser ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_users ${svcuser} group=${svcuser} realname=Maddy\ Email\ Server
</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.executable \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ maddy run
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.logfile ${maddy_logfile}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.user ${svcuser}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${build.env} ./build.sh --prefix ${prefix} --destdir ${destroot} install"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -o ${svcuser} -m 0700 ${destroot}${prefix}/var/lib/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -o ${svcuser} -m 0700 ${destroot}${prefix}/var/run/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/libexec/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch ${destroot}${maddy_logfile}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${maddy_logfile} -owner ${svcuser} -group ${svcuser}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes-append "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Before loading the maddy service, adjust configuration in ${prefix}/etc/maddy,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ as well as generating certificates and other necessary prerequisites.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/maddy/files/patch-build.sh.diff b/mail/maddy/files/patch-build.sh.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9980191bd7b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/maddy/files/patch-build.sh.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,61 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./build.sh 2022-07-04 14:15:21.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./build.sh 2022-07-04 14:16:02.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,4 +1,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set -x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destdir=/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ builddir="$PWD/build"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -104,9 +105,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for f in ./docs/man/*.1.scd; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ scdoc < "$f" > "${builddir}/man/$(basename "$f" .scd)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- for f in ./docs/man/*.5.scd; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- scdoc < "$f" > "${builddir}/man/$(basename "$f" .scd)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -125,7 +123,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -o "${builddir}/maddy" ${GOFLAGS} ./cmd/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "-- Building main server executable..." >&2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- go build -tags "$tags" -trimpath -ldflags="-X \"github.com/foxcpp/maddy.Version=${version}\"" -o "${builddir}/maddy" ${GOFLAGS} ./cmd/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ go build \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -tags "$tags" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -trimpath \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -ldflags="
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -X \"github.com/foxcpp/maddy.ConfigDirectory=${prefix}/etc/maddy\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -X \"github.com/foxcpp/maddy.DefaultStateDirectory=${prefix}/var/lib/maddy\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -X \"github.com/foxcpp/maddy.DefaultRuntimeDirectory=${prefix}/var/run/maddy\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -X \"github.com/foxcpp/maddy.DefaultLibexecDirectory=${prefix}/libexec/maddy\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -X \"github.com/foxcpp/maddy.Version=${version}\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ " \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -o "${builddir}/maddy" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${GOFLAGS} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ./cmd/maddy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build_man_pages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -143,8 +153,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ command install -m 0755 -d "${destdir}/${prefix}/bin/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ command install -m 0755 "${builddir}/maddy" "${destdir}/${prefix}/bin/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ command ln -s maddy "${destdir}/${prefix}/bin/maddyctl"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- command install -m 0755 -d "${destdir}/etc/maddy/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- command install -m 0644 ./maddy.conf "${destdir}/etc/maddy/maddy.conf"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ command install -m 0755 -d "${destdir}/${prefix}/etc/maddy/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ command install -m 0644 ./maddy.conf "${destdir}/${prefix}/etc/maddy/maddy.conf"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Attempt to install systemd units only for Linux.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Check is done using GOOS instead of uname -s to account for possible
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -159,10 +169,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for f in "${builddir}"/man/*.1; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ command install -m 0644 "$f" "${destdir}/${prefix}/share/man/man1/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- command install -m 0755 -d "${destdir}/${prefix}/share/man/man5/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- for f in "${builddir}"/man/*.5; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- command install -m 0644 "$f" "${destdir}/${prefix}/share/man/man5/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>