# -*- 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
PortGroup           golang 1.0

go.setup            github.com/axllent/mailpit 1.29.7 v
revision            0
categories          mail devel
maintainers         {@vijay8i} openmaintainer
license             MIT
installs_libs       no

description         SMTP server that captures outgoing mail and exposes a web UI for inspection
long_description    Mailpit runs a local SMTP server that accepts messages \
                    from applications under development and stores them in \
                    memory or on disk instead of delivering them. Captured \
                    messages are viewable through a web interface that renders \
                    HTML and plain-text, displays attachments, and supports \
                    full-text search. A REST API is also provided for \
                    programmatic access to stored messages.

homepage            https://mailpit.axllent.org

checksums           ${distname}${extract.suffix} \
                        rmd160  5dd3940f5afc4d7db3f9237f9c8d93e4ea1db747 \
                        sha256  23305d5cc49ac793493f5e921bba77f841613effbeb58069ffacc7717b4653e4 \
                        size    521327

go.vendors          modernc.org/sqlite \
                        repo    gitlab.com/cznic/sqlite \
                        lock    v1.48.2 \
                        rmd160  3f56f41e884906e916509d001cdbb53b49fed119 \
                        sha256  6b2fb1bd67e53c716ef2dced5f2ecfd247299b1e0f74cf557bfefb7559eca140 \
                        size    41349007 \
                    modernc.org/memory \
                        repo    gitlab.com/cznic/memory \
                        lock    v1.11.0 \
                        rmd160  c4912acd1621642eb98854a425333fc57ce5eb63 \
                        sha256  d9b141d67ab64feafc90be428419ee048af852fbac4f33164dcf5e5d15c41272 \
                        size    23002 \
                    modernc.org/mathutil \
                        repo    gitlab.com/cznic/mathutil \
                        lock    v1.7.1 \
                        rmd160  72896f28bc9aa03a73dfd3b0a6f8e6b995cc3905 \
                        sha256  78174f3ed1cea720592a31a8fc154278802d3fd8e461a074ed3caad1752f4fb6 \
                        size    122179 \
                    modernc.org/libc \
                        repo    gitlab.com/cznic/libc \
                        lock    v1.72.0 \
                        rmd160  815ed10b33d6eab712581500abcf93d9d9bfef96 \
                        sha256  43f7498cb5dfa03ce411200f5d9e11e921c4de21089e4157e6f29692580ee913 \
                        size    15752874 \
                    google.golang.org/protobuf \
                        repo    github.com/protocolbuffers/protobuf-go \
                        lock    v1.36.11 \
                        rmd160  f7fefd7eef29b1359013604507c78b4d02633d1e \
                        sha256  dafeceaa13fbe24e8a788d73a271aacc46c758ecbdb403892d73124dea13b524 \
                        size    1822283 \
                    golang.org/x/time \
                        lock    v0.15.0 \
                        rmd160  93183207c762d2cc5c6738e2fe231261183a16ca \
                        sha256  39635d93e51cc47cbac54dadd8e2ac8f9a88387920a6e84094faad942c97cfd7 \
                        size    12527 \
                    golang.org/x/text \
                        lock    v0.36.0 \
                        rmd160  325fe84e6bf70855753e95038d02a9edfa3a2802 \
                        sha256  2be6c363ff2f04d3027de611b61386a7c06cfef42abc4ba51cba526f8a3b7362 \
                        size    6774091 \
                    golang.org/x/sys \
                        lock    v0.43.0 \
                        rmd160  381d776eae39a58841b2f1c6596efa31b07bac79 \
                        sha256  55941470e9dfecd02670a12051e931e072ee5a5e5d1d8968ef147c2a395938d7 \
                        size    1539275 \
                    golang.org/x/net \
                        lock    v0.53.0 \
                        rmd160  d23d60f1b158f4f7beeb51179cce2083160b2b88 \
                        sha256  fecafe9a9b3f2334ecf39a5ab842fc6be6b7f6ea1cad6284d00da025b64e1f26 \
                        size    1561993 \
                    golang.org/x/mod \
                        lock    v0.35.0 \
                        rmd160  374e93dfa922ce234509b1306976003163e52ec0 \
                        sha256  294365a9812928c145803eb08bd5cba4edade1c3a6bfa681fdfb410bf249ddca \
                        size    126375 \
                    golang.org/x/image \
                        lock    v0.39.0 \
                        rmd160  e45b26e5cd9e12eb1184417e6cc90635e372de6b \
                        sha256  ce591146bdbdec452be240edb31071d3f4c9a82ba083869eb2c96f0ac28859ed \
                        size    5122748 \
                    golang.org/x/crypto \
                        lock    v0.50.0 \
                        rmd160  9518fc3954928f643f732ace7a0542d52f97be75 \
                        sha256  a2921be161dd08e0912ec83e3ea9db27252e5f1cbec2f78ee7b30f7a1a77c185 \
                        size    2150511 \
                    go.yaml.in/yaml/v2 \
                        repo    github.com/yaml/go-yaml \
                        lock    v2.4.4 \
                        rmd160  34f7b53530e25a9329540afe8496e466cb1bd355 \
                        sha256  2f8f759505d5924915293b25c45cc80691c66ceaf4773c7f8dfbb23316991643 \
                        size    73836 \
                    github.com/vanng822/go-premailer \
                        lock    v1.33.0 \
                        rmd160  f47c65860039e4738dd3f5e1b424dee7187a2699 \
                        sha256  c538b632adfa13970de3b37ee9c24e1b33eb8533806c7be0cfaf58bf39b632e9 \
                        size    16125 \
                    github.com/vanng822/css \
                        lock    v1.0.1 \
                        rmd160  5ac17a5c34a7a9c1f1b31c8d4a81c7c0c258e73a \
                        sha256  599b6de1403c1dcf48e4fb503b23ab7d44c69c5709257ec497411ed5b724da80 \
                        size    9236 \
                    github.com/valyala/bytebufferpool \
                        lock    v1.0.0 \
                        rmd160  32bddf2031e54e583df580e989cfd9be2f51bda8 \
                        sha256  849a2f097cc06fb40219bd350225e99bfdeb1e9105b428d72f07953f44808531 \
                        size    5031 \
                    github.com/tg123/go-htpasswd \
                        lock    v1.2.4 \
                        rmd160  00caa3f9a5c24732b712c0154846d3bc47563556 \
                        sha256  29f786da0b4902715644227b9ebaa2996f08a91fc2274ff0fd16e9ca1137f75b \
                        size    89989 \
                    github.com/ssor/bom \
                        lock    6386211fdfcf \
                        rmd160  93d18bd4b1376d90faa46b0d8d8578d0958c8d5b \
                        sha256  61996b134ab2fdca75bfee9cbcbb89110fb21223a07959e292936f8b6f008a57 \
                        size    1802 \
                    github.com/spf13/pflag \
                        lock    v1.0.10 \
                        rmd160  eb2e68c61d88ce1e22cf4b75b31de9815ee375b5 \
                        sha256  8e29e9893c782030a639e4e1ff4442cef352fa54b64aaa11c35163d550ce10dd \
                        size    63166 \
                    github.com/spf13/cobra \
                        lock    v1.10.2 \
                        rmd160  88d3b436be943e051ed95bb512ad07508cffab97 \
                        sha256  35dc1e3b51a9ef4bee86dc22d335293a1d9d9cae242a6efc605fee8f75808d31 \
                        size    201456 \
                    github.com/sirupsen/logrus \
                        lock    v1.9.4 \
                        rmd160  babdb2dbb1fcab3d580f0c1bfe10b3e7560defe9 \
                        sha256  e17c387d95d706979c25f586c1c3cdc9204322b14b80b1a1e45a2e70e30b1b24 \
                        size    50974 \
                    github.com/rwcarlsen/goexif \
                        lock    9e8deecbddbd \
                        rmd160  38d541043bde6378d6fa177b89fdc76232ce72a6 \
                        sha256  285f658253577797e2f8336ee94decda856709bec66fe92cf719d9f046460475 \
                        size    936389 \
                    github.com/rqlite/gorqlite \
                        lock    ac86a4a1c9a8 \
                        rmd160  3e75ea648eb4cbe80eac0c1793115431b5657479 \
                        sha256  8a6e257c7dd07f254c5adc64cd34ecf58015942a9c17e7b38a064f9d5d3ea445 \
                        size    34797 \
                    github.com/remyoudompheng/bigfft \
                        lock    24d4a6f8daec \
                        rmd160  063388692f096c20d5776d2b4bcdbb7a0a19fc05 \
                        sha256  3821c67a36f45ac9f2216b5765468e670b5b09cc9d52acfa5f7e407cc995eaed \
                        size    14834 \
                    github.com/reiver/go-oi \
                        lock    v1.0.0 \
                        rmd160  d68719043f122c0a9576f6b867e16f4458562fa0 \
                        sha256  71cc36c7096d51809daab5d64c3bcb4c7af9309695ed1f90742bc8fb8aa59adc \
                        size    5389 \
                    github.com/prometheus/procfs \
                        lock    v0.20.1 \
                        rmd160  91a534315ac86ac70d592e3477b950bfb5a59c30 \
                        sha256  409f5fbcd4625840e36c314e2414cb01091ffdcf812332a07717a0db88ba46a0 \
                        size    279250 \
                    github.com/prometheus/common \
                        lock    v0.67.5 \
                        rmd160  5f48881a7a26474450bd02a395520e2ccf385c5a \
                        sha256  2c509f2e6a1592a23ea02049fc24060976addfb02577547d9d3416e0100d2388 \
                        size    161240 \
                    github.com/prometheus/client_model \
                        lock    v0.6.2 \
                        rmd160  dbae1200da24697890683fb2a812a9afa491581d \
                        sha256  4ddb77b5681a0dd4892d7e4ee8846d278e52251322e25fd01a71dea8114a5c22 \
                        size    17529 \
                    github.com/prometheus/client_golang \
                        lock    v1.23.2 \
                        rmd160  dd95ff3417da1e4c1b3ff24dac40cf58f9ae57fe \
                        sha256  2f5cacea465cecae20568e9123da6afb520a1c4c9351153fbeb8395a6a9e0a14 \
                        size    1130401 \
                    github.com/pkg/errors \
                        lock    v0.9.1 \
                        rmd160  dc065c655f8a24c6519b58f9d1202eb266ecda40 \
                        sha256  208d21a7da574026f68a8c9818fa7c6ede1b514ef9e72dc733b496ddcb7792a6 \
                        size    13422 \
                    github.com/olekukonko/tablewriter \
                        lock    v1.1.4 \
                        rmd160  ec80775a3b916809da09618e728892c8ad8960cf \
                        sha256  357fd62a3526ad2d12608405316009e771ff7b59acdb56c9f482084632463464 \
                        size    419811 \
                    github.com/olekukonko/ll \
                        lock    v0.1.8 \
                        rmd160  309d4cedee24a9bf735dda2d4ba5c3100224ada9 \
                        sha256  690a89cd51d7902a9a10b40a5081423163acb22de03c903caf3a7150d4169dd9 \
                        size    315187 \
                    github.com/olekukonko/errors \
                        lock    v1.2.0 \
                        rmd160  fc715c294fe383e2a171f38d8b0cb540504b499c \
                        sha256  95d071c82e2dfa71b180dbd67801f0bd9e630975fdf38898f1c3f977cda7ee88 \
                        size    79251 \
                    github.com/olekukonko/cat \
                        lock    50322a0618f6 \
                        rmd160  84cab2cb154c2eeca9defa29d169bb83b352ad38 \
                        sha256  add453f3b0fe4a68ff7067041986f268820c82a1991b95ff5b178f69689a63e6 \
                        size    18587 \
                    github.com/ncruces/go-strftime \
                        lock    v1.0.0 \
                        rmd160  5c94f0660fa7ea3732de235637ccb79b8b655bbf \
                        sha256  a8bd19acc487bd81efb76934d948d153fcafb5586fd16022ee899d7ad348f472 \
                        size    11918 \
                    github.com/munnerz/goautoneg \
                        lock    a7dc8b61c822 \
                        rmd160  5d779614a17cd75c1ca4294a004c487ca3d152bf \
                        sha256  eb0c0a7182feac6df955be4b48525840f491febd3ddb3f1febd0806cc54d5c09 \
                        size    2817 \
                    github.com/mneis/go-telnet \
                        lock    6f643e477c62 \
                        rmd160  15bc22474f1a85bf455521eab0e32063f6ecff00 \
                        sha256  50a995f03984877d6cda212b8bab158ba4080087c3cfef28aa73e6df587ea52d \
                        size    21982 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.23 \
                        rmd160  da4585155fa4a03b8574832862609351ebf96b91 \
                        sha256  db65a2b835ba57f614da219ddb3d1265a6d557b398b43ff14cc63eac1e0276a9 \
                        size    21790 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.21 \
                        rmd160  a725f2e20265025dbb2b8b7cc08326e895cd8d21 \
                        sha256  712d670d060a1b8a45a7716541d3b1f1cbceece54505dc16d8804d628f142a9e \
                        size    4724 \
                    github.com/mattn/go-colorable \
                        lock    v0.1.14 \
                        rmd160  5b6117d2728f6478faf0be5b8790425fed6c4ad8 \
                        sha256  6661917405b168f0c8b92a2be524e668ee1c29b393353639453cb8f9c2f7eff8 \
                        size    9806 \
                    github.com/lithammer/shortuuid/v4 \
                        lock    v4.2.0 \
                        rmd160  5d20e81065e36cbe811bcecf50640e75c712927e \
                        sha256  19dd14fe82fc0a965aaa46a11a450a7de862c0ffe5326559a467fe9d5e709083 \
                        size    11398 \
                    github.com/leporo/sqlf \
                        lock    v1.4.0 \
                        rmd160  1d8525548f63fb5b5a8c609893c09f6c9a72f328 \
                        sha256  030e1b2ceb2785971e3af15f6f725387cca1cf29b659699201e36087c81eaac6 \
                        size    20536 \
                    github.com/kovidgoyal/imaging \
                        lock    v1.8.21 \
                        rmd160  ae659842d660c7e51e530490f9c10d669a4cb70d \
                        sha256  097a7be75e4c9f630eb19d38a3b0f417bcc2c69f7fbe609e23af3a37c16b6e9d \
                        size    13243792 \
                    github.com/kovidgoyal/go-shm \
                        lock    v1.0.0 \
                        rmd160  5315098928c9ad8a2d7c7aec23f02c52082cc5a6 \
                        sha256  49a220c04e75b88ed42c598785b351095739f00b2bc48fd51b96c02b4615177a \
                        size    6895 \
                    github.com/kovidgoyal/go-parallel \
                        lock    v1.1.1 \
                        rmd160  fcd04f5ad7a084e2f3bfa3131fcd471671388def \
                        sha256  bcad36dc0a55c03d0ebb43545852f6c3d4ff1c6b55be419fef0f0c6a9db96371 \
                        size    4108 \
                    github.com/klauspost/compress \
                        lock    v1.18.5 \
                        rmd160  4e3c72f4ec87923ba1dedae07d2a61eeaf5f690e \
                        sha256  14548a11d00f4f87c639d19d3339958e6ca970c23f7aa3f98aa6e1fb48801b24 \
                        size    39087335 \
                    github.com/jhillyerd/enmime/v2 \
                        lock    v2.3.0 \
                        rmd160  2fcb7948b136d085d542fa17bb755dbe836209d2 \
                        sha256  ada31e0692a3925fedccf290db3c63d4662440b2bb182e0959134f4346cfd6dc \
                        size    183520 \
                    github.com/inconshreveable/mousetrap \
                        lock    v1.1.0 \
                        rmd160  88f9577df93ac0f8801d8960adc7f28e38867f3e \
                        sha256  f69af10ff08c0e87f92dac3ee5172d8ed02463725b74edfc8943ef018a1a632d \
                        size    5343 \
                    github.com/inbucket/html2text \
                        lock    v1.0.0 \
                        rmd160  d542480478c63be95dfc47f24122e6811a0bfd5b \
                        sha256  065f1b3d1d2e6fb44c3b911009c036faa1703c759cdd6a20adaf82fdccc27faf \
                        size    19112 \
                    github.com/gorilla/websocket \
                        lock    v1.5.3 \
                        rmd160  3c38c85e08c20fe93c0100bf884feb8fe45fbaed \
                        sha256  bbdca57ccb9369617abde8372d36f0b2ef7cf6208debdbb9ade97808d2ce42a7 \
                        size    54891 \
                    github.com/gorilla/mux \
                        lock    v1.8.1 \
                        rmd160  7987ea5739b61af51e69127d23644c5760df3def \
                        sha256  55f5c50f77a44031da4bae5e5725a301a36a6072e42139e55afc606d631848fe \
                        size    47042 \
                    github.com/gorilla/css \
                        lock    v1.0.1 \
                        rmd160  bc1e2160af4746e5e1c3a0911eddcdca0855dba2 \
                        sha256  7b38e56aedbf7b242516a363f609eab447cf7e5c8e8aea62ca5ba298fb0a6529 \
                        size    7768 \
                    github.com/google/uuid \
                        lock    v1.6.0 \
                        rmd160  3d4f6f95018c6313f7258805845eb2a7e717850c \
                        sha256  72700459e75cad2b36586e8a13aa12c2d6248c45db24d1eebf41e18b1ec1c811 \
                        size    20895 \
                    github.com/gomarkdown/markdown \
                        lock    134a5b2cce7f \
                        rmd160  9085614ef5db27874607dc77e709f6a351d33308 \
                        sha256  ff5589b64ebdec6544c0b1f8ecddd6505bcc5eadc02748d8a0f96f8ac3df57d6 \
                        size    126920 \
                    github.com/gogs/chardet \
                        lock    b7413eaefb8f \
                        rmd160  a65e40cd683a4fe3bdfe96f6937db4b51541ee4b \
                        sha256  bd60a7f21e49752b835cc15c05ee0ec6969496367a15848d416047d903b0d46b \
                        size    267319 \
                    github.com/goccy/go-yaml \
                        lock    v1.19.2 \
                        rmd160  07fa4d9bd9e018a5110b7b2e88cb37fab3e45a87 \
                        sha256  1522fe58003c4d6185327ef6b8e1f3189cc10e1dd8f59612099cf514eb7dd12f \
                        size    666918 \
                    github.com/goccy/go-json \
                        lock    v0.10.6 \
                        rmd160  422deb96f44da7a135e23530c555536683bb53fd \
                        sha256  59fe6f215137b31a592dbc300a229e9dfb4ef0a5c81a83dd932c37ae9689d5b6 \
                        size    399117 \
                    github.com/fatih/color \
                        lock    v1.19.0 \
                        rmd160  a64620e5587b3d1eb425e15d7fc1ccc7b0a280f2 \
                        sha256  1203fa77d5f8d487636a021778e626c37c37e4eeb103c580f722339c400ae039 \
                        size    13341 \
                    github.com/dustin/go-humanize \
                        lock    v1.0.1 \
                        rmd160  3c799a1cbda2e82f3d35ec20e539581fd9c24b9d \
                        sha256  aa5a5059ebd8fffc9e9b9e3c888d85cdb1f4c8f7b73944a6c027647039a83df7 \
                        size    17709 \
                    github.com/clipperhouse/uax29/v2 \
                        lock    v2.7.0 \
                        rmd160  9cd62348ce0722d85ff21f2f91a05a68f877aa08 \
                        sha256  66d66a451f74709ab74902e7bca146abf376dbf0bc701b713ee600e3d3d6a5b3 \
                        size    320846 \
                    github.com/clipperhouse/displaywidth \
                        lock    v0.11.0 \
                        rmd160  26a2f5e784f0414e55714156bab744b0d901c5c1 \
                        sha256  d9587478830f552e284be30f010c2e57be7679d5c883a256b9df4b6889827347 \
                        size    250271 \
                    github.com/cespare/xxhash/v2 \
                        lock    v2.3.0 \
                        rmd160  dfed275969e04769f613bd08336420dc9009794a \
                        sha256  79cc788ad30f0d7987fb1f259f21477a74178e30f4a2b2803af2b43c3ebcfa91 \
                        size    12704 \
                    github.com/cention-sany/utf7 \
                        lock    26cad61bd60a \
                        rmd160  b18fb69080c230a9d0adab0dde235427b5bd21a1 \
                        sha256  1a4993a3b3233176632209d787ba4ea2dc6b82310202f8b26946af308f3598c6 \
                        size    8516 \
                    github.com/beorn7/perks \
                        lock    v1.0.1 \
                        rmd160  c6c5c7fd2132f01925c7fccd9d27c9d7a80f2adb \
                        sha256  78da4421e9f9fa2ee5e3855bdd31cfb04c7e823d9c0ec385cc2c008132d98b96 \
                        size    10874 \
                    github.com/axllent/semver \
                        lock    v1.0.0 \
                        rmd160  0416d846cd0887fee09dbc5f9c7c59612fbbd4ed \
                        sha256  d52d7cd8818669a8424090ab9b212f80d5549e152a43b9d4235c28c2a99dcb59 \
                        size    4798 \
                    github.com/axllent/ghru/v2 \
                        lock    v2.2.3 \
                        rmd160  8627805cdd674b3100fd986b2b5d2cb279a55200 \
                        sha256  d83bdf1e751759ab3852b486dd410f9021e78558a4fa6a1fe1e4895b536836b5 \
                        size    13607 \
                    github.com/araddon/dateparse \
                        lock    6b43995a97de \
                        rmd160  6917dfacee739f408b18077506c4e1cd0506365f \
                        sha256  d99c72ffd8aa7d2077d1a9e844efbc3237bc018cd05aec11cc44e216ddabed4d \
                        size    27524 \
                    github.com/andybalholm/cascadia \
                        lock    v1.3.3 \
                        rmd160  d486afbc89f6bd1ddb80e100948827eac9b10093 \
                        sha256  ddb4a32ed5b6f3f5af8049d04e791bea256b8ac8068a0b2911a18bc3ffde4ab6 \
                        size    36662 \
                    github.com/PuerkitoBio/goquery \
                        lock    v1.12.0 \
                        rmd160  699f6e4a099bd5391c78f842f21860d691795154 \
                        sha256  c97c10213680fb54042a71805daad42ff187f48b25537dff33bdb204752b6b89 \
                        size    108989 \
                    github.com/GehirnInc/crypt \
                        lock    8cc1b52080c5 \
                        rmd160  804a651ca189e52333b507a3ad44e31edfa7c912 \
                        sha256  87bbebc881c652d746900d343c597f7481454f13bf3a331c1a795cf95f9b0ecb \
                        size    11447

build.env-append    CGO_ENABLED=0

build.pre_args-append \
                    -ldflags \"-s -w \
                        -X github.com/axllent/mailpit/config.Version=v${version}\" \
                    -o ${name}

variant ui description {Enable the Web UI} {
    # Requires Node.js to build the Vue frontend.
    # Mailpit uses unconditional //go:embed — no -tags ui needed.
    depends_build-append \
                    path:bin/npm:npm

    pre-build {
        system -W ${worksrcpath} \
            "${prefix}/bin/npm ci"
        system -W ${worksrcpath} \
            "${prefix}/bin/npm run build"
    }
}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

# Filter out non-release tags if any exist.
livecheck.regex     {(\d+\.\d+\.\d+)}
