<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/c9645f0d362ca70c23f5856cff0e4ba38f15ebe3">https://github.com/macports/macports-ports/commit/c9645f0d362ca70c23f5856cff0e4ba38f15ebe3</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 c9645f0d362 MailHog: new port
</span>c9645f0d362 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c9645f0d362ca70c23f5856cff0e4ba38f15ebe3
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Sun Jul 4 10:02:23 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> MailHog: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/62924
</span>---
mail/MailHog/Portfile | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/MailHog/Portfile b/mail/MailHog/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4b196be1113
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/MailHog/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,84 @@
</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/mailhog/MailHog 1.0.1 v
</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;'>+description Web and API based SMTP testing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description MailHog is an email testing tool for developers. You can \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure your application to use MailHog for SMTP \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delivery, then view messages in the web UI, or retrieve \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ them with the JSON API, and optionally release the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ messages to real SMTP servers for delivery.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories mail devel
</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;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3faa61726e2e5d1d7745051453abb068676c6c9a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6227b566f3f7acbfee0011643c46721e20389eba4c8c2d795c0d2f4d2905f282 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1249045
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</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:gox
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.pre_args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ VERSION=${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set mh_name mailhog
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set mh_user ${mh_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set mh_doc_dir ${prefix}/share/doc/${mh_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set mh_log_dir ${prefix}/var/log/${mh_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_users ${mh_user} group=${mh_user} realname=${name}
</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;'>+ ${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.user ${mh_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.logevents \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.logfile ${mh_log_dir}/${name}.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Only build the binary, do not tag or attempt to download gox
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E {s|^release:.*|release:|} ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Only build for the current OS and architecture
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|gox|gox -osarch \"${goos}/${goarch}\"|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/Makefile
</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;'>+destroot.keepdirs-append ${destroot}${mh_log_dir}
</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;'>+ xinstall -m 0755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}[glob ${worksrcpath}/build/*_${goos}_${goarch}] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${mh_doc_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${mh_doc_dir}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${mh_log_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${mh_log_dir} -owner ${mh_user}
</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 "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Once ${name} is running using the `port load` instructions below,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ it can be accessed at:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ http://localhost:8025
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Logs are located in:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${mh_log_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span></pre><pre style='margin:0'>
</pre>