# -*- 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/MetaCubeX/mihomo 1.19.3 v
categories          net
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             MIT

description         Another rule-based tunnel in Go, formerly known as ClashMeta
long_description    ${name} is another rule-based tunnel in Go, formerly known as ClashMeta.\
                    ${name} supports s lot of protocols including HTTP, SOCKS, VMess, VLESS, Shadowsocks,\
                    Trojan, Hysteria and more, and has built-in DNS server functionality with DoH/DoT\
                    support.

homepage            https://wiki.metacubex.one

checksums           ${distname}${extract.suffix} \
                        rmd160  da95c921ebb4064f0598601043f3888d012ae412 \
                        sha256  47b78ceb8acab5a8c4d7da0b745f06becea4f8d4687d7a5b1985c0b1348e79c2 \
                        size    642132

go.vendors          lukechampine.com/blake3 \
                        repo    github.com/lukechampine/blake3 \
                        lock    v1.3.0 \
                        rmd160  39b18f1fe6073d4d139b4eae783a360bd39da776 \
                        sha256  257358e068395db0c2cf8f084e118845fcce26ecef5ecec998d59670d6214343 \
                        size    38832 \
                    gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/check.v1 \
                        lock    8fa46927fb4f \
                        rmd160  c84f37dc900224c5e9e6e16ed5acc0d625583bc1 \
                        sha256  c41439b343f3fc3c0b6f943b4aae642f10f19451e945c23dfb324c9c8f87d0b7 \
                        size    31616 \
                    google.golang.org/protobuf \
                        repo    github.com/protocolbuffers/protobuf-go \
                        lock    v1.34.2 \
                        rmd160  b725d236d835fc95f3cf19809325bf4deb998149 \
                        sha256  dc28007fa38598d4584d48a9e2284e738b63d57ea1cca25d175923884f2eb887 \
                        size    1523231 \
                    golang.org/x/tools \
                        lock    v0.24.0 \
                        rmd160  1aaf717b6ac0462b038b1191fa9e9bfca65219bc \
                        sha256  913f01e63c6d1f1f1dded27cac87dfacff6cbad90372b82cff246524e6fc37fd \
                        size    6977305 \
                    golang.org/x/time \
                        lock    v0.7.0 \
                        rmd160  1885aebb7c781f6333bfed2447ab9ae9c47bf13b \
                        sha256  3e73eda4d6e1cd90fe9927871e6db02f0e1d56522e2cbc90e6017555ef9a5ecf \
                        size    12358 \
                    golang.org/x/text \
                        lock    v0.22.0 \
                        rmd160  81e66eb6e6535b437ea51b57c30a1c436fa0311c \
                        sha256  45b47148593c730547081bf7f496a80ca839837a94190b43d01529bb2770cb3c \
                        size    8966982 \
                    golang.org/x/term \
                        lock    v0.29.0 \
                        rmd160  8897b8f4c7a32f6801b376eab03bc4d98970bb45 \
                        sha256  584aae20390fd14d70c64dfa2c4a35ee53b53526fd2175f02177cd391d8733ef \
                        size    14690 \
                    golang.org/x/sys \
                        lock    v0.30.0 \
                        rmd160  4cd711df5da2e159b6efbb7fa42ae0a3a3f6eb53 \
                        sha256  76cfe40018bfa5418c1d19d47d8353c3375594013e2b2feea49f06018d2a3102 \
                        size    1523466 \
                    golang.org/x/sync \
                        lock    v0.11.0 \
                        rmd160  5f5e2d8060a9e83ab2b46126f341c2cd2a101aac \
                        sha256  9b21cdaa445f07a2bd1eeeed58189cfd1cce5bcc563d4c4fae4d7ac2713ef428 \
                        size    18142 \
                    golang.org/x/net \
                        lock    v0.35.0 \
                        rmd160  eee711df3a5dd7076ab54f142cebcb6d576a9a4c \
                        sha256  ed18e1ac2b7a0b97d9280c525953c9272f6fb9ea4e5625b29269d009ac967aab \
                        size    1500995 \
                    golang.org/x/mod \
                        lock    v0.20.0 \
                        rmd160  a1fad8f4235b1ba148f618582c615a798bc0e7f1 \
                        sha256  ee48dafaa0a10587b60873d762ab71e0e2b6da1f96a0779f7506d4f080d2fdbb \
                        size    124269 \
                    golang.org/x/exp \
                        lock    e7e105dedf7e \
                        rmd160  bd1872d993d1725c6caeed3d4de1cef4768c8388 \
                        sha256  36139bbe419d2c1c900f3fc2df411c734ab3451f25b2416136198ec566794934 \
                        size    1749655 \
                    golang.org/x/crypto \
                        lock    v0.33.0 \
                        rmd160  a9bb37694af13af0618980c934387320bab1234a \
                        sha256  e8755fe2f1785cb6047c52b28f48b4565f8d6ca32be675cb36b330b6a33d1ba9 \
                        size    1840770 \
                    go4.org/netipx \
                        repo    github.com/go4org/netipx \
                        lock    fdeea329fbba \
                        rmd160  7f084e9efbfef366116fe1fdf66602bf3a08d1f7 \
                        sha256  9d0245a6fc4554d2bc8f5ad78e981800bb07cefa7f16ab4a29541f2507663f0b \
                        size    23643 \
                    go.uber.org/mock \
                        repo    github.com/uber-go/mock \
                        lock    v0.4.0 \
                        rmd160  76940760f7f852913de3930ce8e48f3b57192e7f \
                        sha256  fc83e16fc708cd38cd0320731c94e1322a9815e85ec4e334bc9cc400d8a2f81b \
                        size    90737 \
                    go.uber.org/automaxprocs \
                        repo    github.com/uber-go/automaxprocs \
                        lock    v1.6.0 \
                        rmd160  ca1b68ed8db6badde4ed20132cf7731cfb8e6532 \
                        sha256  c98df4122157a29cb10b26874c92c109be32f5e957eb81e39590df54090ccc9b \
                        size    24477 \
                    gitlab.com/yawning/bsaes \
                        lock    0a714cd429ec \
                        rmd160  301ea4860ecc09b2042e1447a09b0ec04bd08efe \
                        sha256  36d5606cedc1ad6067cca25e1d7e43e45260045df8ce310ca1f6b12c68684505 \
                        size    18751 \
                    gitlab.com/go-extension/aes-ccm \
                        lock    e58665ef23c7 \
                        rmd160  5e2397f53fd7f0a204f794a2e22f6186c1d42b77 \
                        sha256  e0b9782196a7a2e8921663df55e11d45745468564e2ac00682854d295a81dd82 \
                        size    7530 \
                    github.com/yusufpapurcu/wmi \
                        lock    v1.2.4 \
                        rmd160  23599ad98727cca3e1678e909a1014e212d41fc7 \
                        sha256  05d3cee4c74f456174ea5538ee95fba675aeb520fd7bdd3872860a3c7dcafa11 \
                        size    12672 \
                    github.com/wk8/go-ordered-map \
                        lock    v2.1.8 \
                        rmd160  3b679491f631b4900bfe3169517517b2731ebc35 \
                        sha256  c7caff4ba164feeebdcc568d6598931a20719827e05dfa18ac7d7c495d36b883 \
                        size    20797 \
                    github.com/vmihailenco/tagparser \
                        lock    v2.0.0 \
                        rmd160  bc9aec6b8e0daeceddff97192b7156cd7a370ef4 \
                        sha256  c40bc0935d68707ec8c7f96c544c0c52a7740ab0dd6a4a6939a951f1fe69c3dd \
                        size    3690 \
                    github.com/vmihailenco/msgpack \
                        lock    v5.4.1 \
                        rmd160  533ff6801e094b79b7493a50ffa6bbaf46312da7 \
                        sha256  64c89d196fc5b8754e316b097ddb41932ee43aa2eff737da6c1ab8691ac85e05 \
                        size    37793 \
                    github.com/vishvananda/netns \
                        lock    v0.0.4 \
                        rmd160  71fab0c92ed5c0881e819ab2f4b5112e5aa01777 \
                        sha256  3201de191e83539b25e0679af8e344dfd7ab4467080982141ad8e0396780239d \
                        size    9754 \
                    github.com/u-root/uio \
                        lock    ffce2a382923 \
                        rmd160  658839d7bdd8e84b2f6b399812a430f24f09057c \
                        sha256  ced6499bede8bfc315fdd369101394792aa9c3d3dc4bc70d71e543c4d7db2e95 \
                        size    19402 \
                    github.com/tklauser/numcpus \
                        lock    v0.6.1 \
                        rmd160  db67212c0ad3f243bc1a1322f0b13209b839ce58 \
                        sha256  79d9983e092006b0f95b5f64cf64d8d056c53844040f405f78820af9927f2d0c \
                        size    9403 \
                    github.com/tklauser/go-sysconf \
                        lock    v0.3.12 \
                        rmd160  ae582febe943a7b3c002b805a1c08cec97b5b852 \
                        sha256  61ca9fa5482fc7f4419da9bf5cdfb10642ce3be1ea45a56ea4a0674c756a9b03 \
                        size    30414 \
                    github.com/stretchr/testify \
                        lock    v1.10.0 \
                        rmd160  43f142561513d8f10ce4971bf91cabbad9a021cc \
                        sha256  be33d85711f2b92b7269a39574af64701ed5b2c4e4446547ea75ea046ec97629 \
                        size    112769 \
                    github.com/sirupsen/logrus \
                        lock    v1.9.3 \
                        rmd160  db211aeb52d4a85a7dc8acf83f7475b5f4fa9092 \
                        sha256  36a05391b8c6cef99e9a9c78b598f3a8da8feed318b385eadcdede08ae5cc229 \
                        size    50327 \
                    github.com/sina-ghaderi/rabbitio \
                        lock    9ce26f4f872e \
                        rmd160  7c666cb15ff6cb4dfb4fedb4d4faade90bd452c5 \
                        sha256  15385bf9ab35b7c0530caebe14ddb6d1411ccdc618340d007090188f37a47c72 \
                        size    7574 \
                    github.com/sina-ghaderi/rabaead \
                        lock    ab6e06b96e8c \
                        rmd160  1dbd7ee80b0a02b4851d5b401d5bfd298e5e7ff2 \
                        sha256  7c3dfde72f19dc4fd6eecdb653d9106bba4b63101bf997dd20b6dc360f67ca74 \
                        size    98011 \
                    github.com/sina-ghaderi/poly1305 \
                        lock    c5926b03988b \
                        rmd160  b3519aa423bf595e9d134bc3ba99e2fb45301e16 \
                        sha256  470a239ff8165e60ce23b2b5e4a7afb4e673018f1c406fe1f7a70e05dc22e488 \
                        size    116937 \
                    github.com/shirou/gopsutil \
                        lock    v4.25.1 \
                        rmd160  03edcccb140d9c296193ddebbff17371794842be \
                        sha256  d1569df3a064542648c49ea7810f173ef4003f98244324dc7cd7770dc7500d7c \
                        size    186660 \
                    github.com/samber/lo \
                        lock    v1.49.1 \
                        rmd160  4afd10bf9acc3009800646eeef2bcce30a3b3956 \
                        sha256  6611b24f1e77a868bb59aba881e386ee27c906909365b3b8f0d6be0d2e201b3f \
                        size    52713 \
                    github.com/SagerNet/smux \
                        lock    7041f6ea79e7 \
                        rmd160  9666f3170da33399badd9624927d5daea6fe837d \
                        sha256  cd0ed8038b5f2b3e678e4205d6eb3c4f07c98547b75a6201551344735295bca8 \
                        size    13941 \
                    github.com/SagerNet/sing-shadowtls \
                        lock    v0.1.5 \
                        rmd160  b5890933dfb073d136add9407605d608487433fe \
                        sha256  9850e3534542f201400db6cda43f1131e5327935ca3bb08660a55569ec993135 \
                        size    124898 \
                    github.com/SagerNet/sing-mux \
                        lock    v0.2.1 \
                        rmd160  7642fe198686892211d2e8fd955c0d3415c85302 \
                        sha256  51042e6d90eb6b6601f19c87c7c7328f33d9887b8698f2ca9f12d81196885e25 \
                        size    13383 \
                    github.com/SagerNet/nftables \
                        lock    v0.3.0-beta.4 \
                        rmd160  c3d551c39e50ca4f6ec0eff32395c4d626af8a50 \
                        sha256  22861e2530ffa118c69992ac203bbeb71bd6635fdda0780b7767b6cec4c2e04a \
                        size    85102 \
                    github.com/SagerNet/netlink \
                        lock    b9a21c07ac6a \
                        rmd160  47d0aaed1c89e38bce29b3bb61df3723660bae3c \
                        sha256  ceb4f099a1b5280cc9ce390d0d090613ff185f1c194d578c22b45bfbe50a3330 \
                        size    191959 \
                    github.com/SagerNet/fswatch \
                        lock    v0.1.1 \
                        rmd160  681ff51588ff50d775e967e7c69e99f052d1ef16 \
                        sha256  694d37463ee528e9ea4ffaf6ba1980ef59f8a33f46f2077d8af1f46a980a1e99 \
                        size    4927 \
                    github.com/SagerNet/cors \
                        lock    v1.2.1 \
                        rmd160  985bf35b02ccdcf74c724627fa5182e51f45ff8f \
                        sha256  9bbd1d0271ca27dba0e8a15516cb7987f5523f8c2b2145c46f003da32aad0cbe \
                        size    5463 \
                    github.com/quic-go/qtls-go1-20 \
                        lock    v0.4.1 \
                        rmd160  f988914f4b32b982b7de2e257211fbac448d771b \
                        sha256  86fc963579e855353229e7d5c0a2efc1f26e3916e2d7eae22afa960dc3a5a3d6 \
                        size    427163 \
                    github.com/quic-go/qpack \
                        lock    v0.4.0 \
                        rmd160  6332ffe83d94fc508a7298ae176db4b2205e7c9e \
                        sha256  7db52856f1245233d23a54de874bd2d2f79fb8f959c7af15ad07c777b2967bf0 \
                        size    41810 \
                    github.com/puzpuzpuz/xsync \
                        lock    v3.5.0 \
                        rmd160  f203aacf5bdf89de7c26f34e77963db6ce070075 \
                        sha256  fd0861f46e30f8260d62d4caf242a0135fce209d8ad9ac888296f42de6848065 \
                        size    47978 \
                    github.com/prashantv/gostub \
                        lock    v1.1.0 \
                        rmd160  2a180f3086bf793f4f574165c926290196ed6140 \
                        sha256  eabe92e081c6ae53b105506caf512bed68f5170e74705ee22aac4cce814f281d \
                        size    7908 \
                    github.com/power-devops/perfstat \
                        lock    5aafc221ea8c \
                        rmd160  1c4f659015f1a59d261a493397534436ccb6a608 \
                        sha256  617a974b1f9c38ac9fd958a8cc80c14aaf083906691dda43d642c0ef12611047 \
                        size    36009 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/pierrec/lz4 \
                        lock    v4.1.14 \
                        rmd160  234b88b87b89efff4e15f58630bae5d6a01eeaca \
                        sha256  9cbd92e19005f67fd498663fc4869e87b7c1b099ed4254d7c7c01f3ea0c7b174 \
                        size    40904445 \
                    github.com/oschwald/maxminddb-golang \
                        lock    v1.12.0 \
                        rmd160  90ce9aa70ee9621a1a3ea4c8bf60b2c10adaf3d0 \
                        sha256  12fd7f50eeda0fee35589666000b6e7ea2ecf29ed841595b7615a72be821825d \
                        size    28149 \
                    github.com/openacid/low \
                        lock    v0.1.21 \
                        rmd160  72d5f507e0984dbdb8f09b03b72d309bf05fcb38 \
                        sha256  2788083bfb15a2135c93333488096900e25e02f99765276f50fad5594dd5bab7 \
                        size    64293 \
                    github.com/onsi/gomega \
                        lock    v1.27.6 \
                        rmd160  152f496aee53769d6d844ee8452c7281ac2578c0 \
                        sha256  2275d6b495b16c707229d445b17afb38b9836b8d34071ebb2bda9351494fbfbb \
                        size    311747 \
                    github.com/onsi/ginkgo \
                        lock    v2.9.5 \
                        rmd160  1229746a14222b22b97963bcddde73fb12777b25 \
                        sha256  af9cbcac33e7edcfc3d7c0d56a1215f6a1e9c548464cc32a633c189781fbfbb3 \
                        size    624860 \
                    github.com/oasisprotocol/deoxysii \
                        lock    2091330c22b7 \
                        rmd160  6245aefd7c2c2af3defb9af735ac38174e4db0be \
                        sha256  91e57f448efef9984355101d25fe48aa207eb5e2f3e49f53096c2a651b854a13 \
                        size    75974 \
                    github.com/niemeyer/pretty \
                        lock    a10e7caefd8e \
                        rmd160  46bcfc3db9e3d98acbacd1f96d9483fa360f88b7 \
                        sha256  97b952a32175ba84349ef352e523bfa15bf3a06e07e44458a908061fbc519b40 \
                        size    9405 \
                    github.com/mroth/weightedrand \
                        lock    v2.1.0 \
                        rmd160  4735b0d0fb9709a286023c2a65c93b456c9f29cb \
                        sha256  9d0ec13d50724dff31ce5d2a76bc400034873f88c91329bc81b15bc93aac4c5c \
                        size    10235 \
                    github.com/miekg/dns \
                        lock    v1.1.63 \
                        rmd160  36d2f97c3b073b3bf7905d6c7fc1a83e1d23f4cc \
                        sha256  54b9db2650d992a647379a2d4337efc27e2b1a03f72eee612862ef2c1a94c827 \
                        size    219709 \
                    github.com/MetaCubeX/wireguard-go \
                        lock    c182e7471181 \
                        rmd160  e88ccdca16b23d215829f6161bda56c95d41bfda \
                        sha256  2a8fd57c97fe1039de3ac2f0f9ca394d1f34eb826da9f0d70d1d13aae6817d7a \
                        size    60310 \
                    github.com/MetaCubeX/utls \
                        lock    v1.6.6 \
                        rmd160  13c52934c37d21dc7fc077f079af81c3dea4369d \
                        sha256  28d0a85636f343b0c099cc835b7098c6c6aab04786b23b2c8a46994bbd1d7565 \
                        size    675828 \
                    github.com/MetaCubeX/tfo-go \
                        lock    66613d49c422 \
                        rmd160  af5c56ce18d616ba729a51c993842b18947e6918 \
                        sha256  ce82b709020c60eee063c03a061cef59573f2f46a967996f6987c7ed6a2ce667 \
                        size    21327 \
                    github.com/MetaCubeX/sing-wireguard \
                        lock    0827d417b589 \
                        rmd160  5e06f2c847133d071fa2ba92cb01028c68b5caec \
                        sha256  271efb047a227c381b1fbb3fb44c6e6a8971df2a77f40f224d47c5b06f6e1447 \
                        size    18025 \
                    github.com/MetaCubeX/sing-vmess \
                        lock    abc39e113b82 \
                        rmd160  d43c0922ad73250656bfb7e01af341d12f4de6ed \
                        sha256  dfdd9af3eaaf9cae9d590a67aa377aeb932832b5992d53bb58fde43f205eab08 \
                        size    25218 \
                    github.com/MetaCubeX/sing-tun \
                        lock    v0.4.5 \
                        rmd160  3d9be098e449ca7654f60ecf0dcb7b42f0f134a5 \
                        sha256  5aa17a86eae2e68454271d0de5bcce00abc9f4b79db6091175579e08b9b557eb \
                        size    847698 \
                    github.com/MetaCubeX/sing-shadowsocks2 \
                        lock    v0.2.2 \
                        rmd160  46c90971de2d40e010430929d0115188f324bd76 \
                        sha256  80aa5777ad3310a73ab1add17606d8c197ba8efdc54019f9add8d17d745d2198 \
                        size    16729 \
                    github.com/MetaCubeX/sing-shadowsocks \
                        lock    v0.2.8 \
                        rmd160  5b51bc3343ccef8cbdf006c352333c06ef72f551 \
                        sha256  9b34c4e2e95ebf96fd843bc5f5ab9c112675fe409de32967fcd49f536b1d91dc \
                        size    22122 \
                    github.com/MetaCubeX/sing-quic \
                        lock    2a19cce83925 \
                        rmd160  05faff8d9f2b9dbde4007c21c8e952f293032fb6 \
                        sha256  af357608186bd098d73dc5909104eb9122e23d7c956db53a0c5b98204c4a6c86 \
                        size    18178 \
                    github.com/MetaCubeX/sing \
                        lock    d94509dc612a \
                        rmd160  f03550353363a41709581b872b20caf082880dc7 \
                        sha256  ae13d9c1757cd04e6b83883ed6fd7a3c646e2be5a20f6b92f8e3c521cc7d45e2 \
                        size    135616 \
                    github.com/MetaCubeX/reality \
                        lock    74e8d7850629 \
                        rmd160  2bd6b4c5b9f0215a1f708b892baaad3c771424ab \
                        sha256  565a38ac2c0191b174966219b6c5fde589ddaf043fe0060556cb5885de0fa28c \
                        size    128656 \
                    github.com/MetaCubeX/randv2 \
                        lock    v0.2.0 \
                        rmd160  62a7c2d5fbbf31e1e60d185ecb4405ea96658626 \
                        sha256  5d53bfde6e370bce683e0bb38e953461a16bea6ad3526cea4785cdca9d1d7c53 \
                        size    35074 \
                    github.com/MetaCubeX/quic-go \
                        lock    c135a4412996 \
                        rmd160  6bbf05477e846d5ca3809ab58366fc0d96c936e8 \
                        sha256  923e59e36f70da5f225548e1e514e1b2c9f9b84a1ca989230ddc63117fe26a28 \
                        size    624788 \
                    github.com/MetaCubeX/gvisor \
                        lock    5b028898cc5a \
                        rmd160  66387a453b9b5f0c7c3b9fb5e76ef99e1da7b9ea \
                        sha256  8d24aed0a9e0f3846e4c037f89e2e384f0160793a2c87295b435586d2164fd8c \
                        size    982115 \
                    github.com/MetaCubeX/gopacket \
                        lock    7e2f98a3e759 \
                        rmd160  4c5ae9d2448babe98bff164a783fb41c1baff7ea \
                        sha256  1d15193331d6698b4a325397a7d953352df233eccdd7afcf4e9fe3080f23c538 \
                        size    957160 \
                    github.com/MetaCubeX/chacha \
                        lock    v0.1.1 \
                        rmd160  41a9391ce76c7acaa32f0708049e0bfa906542b2 \
                        sha256  bec204606995f3e696ea9a4bff2378363e1cbb92cbc705c1f11fe40233fe80f9 \
                        size    33347 \
                    github.com/MetaCubeX/bbolt \
                        lock    aed6d4850399 \
                        rmd160  1bddae0d388dcc9f4267acf4c9390f8ad4b419a4 \
                        sha256  002cad16b03688ddb411f1ebbf7c3117781c90044058bef51b7d16ebf3456810 \
                        size    47250 \
                    github.com/MetaCubeX/amneziawg-go \
                        lock    fdf3a4d5a4ab \
                        rmd160  13fad7c2ee36e38f2459346e8d1cc8de3b2c87bf \
                        sha256  7519b7d8b4fe40927bd0d0159f6c51c3834090869f92d29113bdd33d3a58ab10 \
                        size    34339 \
                    github.com/mdlayher/socket \
                        lock    v0.4.1 \
                        rmd160  78f3870e03e7f05097b392dde756abc009e23eaa \
                        sha256  15c1df4b48aba325eb3433e620c64e27f2ecc1b85fb1d04ec26837fc0f3db3be \
                        size    21153 \
                    github.com/mdlayher/netlink \
                        lock    v1.7.2 \
                        rmd160  46ced384afb9c6f276d20a0385762f3531a7de3e \
                        sha256  72ddc4c119e7bc44f05dcbd1237677fe22df4fa83403316f9f29f2e279189995 \
                        size    48252 \
                    github.com/mailru/easyjson \
                        lock    v0.7.7 \
                        rmd160  f40deae988781d59d399784445dc89fe84d69e37 \
                        sha256  05481ab8b5f3709d4bd49b5459159b32856f426f021225774db000ec15792f2e \
                        size    81411 \
                    github.com/lunixbochs/struc \
                        lock    784aaebc1d40 \
                        rmd160  a9a289f74c01c85c6c272ee3a5a21550c1d65fbf \
                        sha256  7ba956f1055c32b76274641f2af6d9893f732b3bbf6877d2d7e827f4c6ba3ba6 \
                        size    16071 \
                    github.com/lufia/plan9stats \
                        lock    39d0f177ccd0 \
                        rmd160  f51617c89f9004fbc70199874ce8f290f59c309e \
                        sha256  4a3903621bc835f693af93062001f8deaadf692e37becf9ee772930eab155d20 \
                        size    10243 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/klauspost/cpuid \
                        lock    v2.2.9 \
                        rmd160  aa5c8d1176cdbe71f977e759d37d07eeb09d291d \
                        sha256  5d4a610855b0ae9f0fa8714db3c9a9acbcccf88eccea984cdf33220c530702fb \
                        size    668353 \
                    github.com/klauspost/compress \
                        lock    v1.17.9 \
                        rmd160  128e41644a2fe45e77a4d8b22bb80fcd9e1eb9ad \
                        sha256  c3ac57bbb2d0524bfd2f6a5acd9ce79b7d5d5e1003d7d7e2908fdb90f17f06d2 \
                        size    38751181 \
                    github.com/josharian/native \
                        lock    v1.1.0 \
                        rmd160  978af6b719f2e7fa0651f481b7909e78ba0aaa92 \
                        sha256  09d305c5e680e929ae1cd7f594376c5a34bd2aee42b892d9c5cf2b800eb948b4 \
                        size    2072 \
                    github.com/insomniacslk/dhcp \
                        lock    8abf58130905 \
                        rmd160  6d39208a4e1203870e7f71d97874be19d290db0a \
                        sha256  3bfcc72de77307138f151a79b3d79b1331bb490796067f1ec51c23ad81e7c567 \
                        size    138059 \
                    github.com/hashicorp/yamux \
                        lock    v0.1.2 \
                        rmd160  1f0d1dce84d5462591b2222093220ed7866a24f3 \
                        sha256  5fdc31a4615c7a2e29db99015ede5b8456f4dfd3d1a6be4adf40d6afe8388aea \
                        size    31626 \
                    github.com/tink-crypto/tink/go \
                        lock    v1.6.1 \
                        rmd160  6c218090a3c393903317d7b93b8d3c883814422f \
                        sha256  8bc0cbe8b9667a33304d17db36126baf5afa7ae9e2c2cf72bb0ce841163219b4 \
                        size    2331386 \
                    github.com/google/pprof \
                        lock    94a9f03dee38 \
                        rmd160  e728af72a4110b42a442fe29bf8cd4967386639e \
                        sha256  7116f40c307a24d35322ac240b05232762c01b9c3488012b8f08b723f417e29c \
                        size    1718487 \
                    github.com/google/go-cmp \
                        lock    v0.6.0 \
                        rmd160  2c9f5dab93f8a0895591466fe4a07c5dd9166ae2 \
                        sha256  0d550825fae514f8a947ab7e42fcb874f509d9cbfa3ad2711d7570a25f31571a \
                        size    104795 \
                    github.com/google/btree \
                        lock    v1.1.3 \
                        rmd160  65220218f4464ebe506165f5941926453315de1b \
                        sha256  00c45758ac24e831e88000a992b2395a4354a671398303d14a8c8a916984af5b \
                        size    19790 \
                    github.com/golang/protobuf \
                        lock    v1.5.3 \
                        rmd160  b4e09ad842f6dcd3aea36b28ec64d6d9563fd1d8 \
                        sha256  12e830fab630cabd279fca57e7089eeb1556e2c22b58eee64bb21bd3c8dfc706 \
                        size    171856 \
                    github.com/gofrs/uuid \
                        lock    v5.3.1 \
                        rmd160  0bff3006afa261fe1f6d837603401e9f543173c8 \
                        sha256  5e59dc46071879315e3172500db55ccf4f9ef2923fdeb83e1d5bc035f79847bf \
                        size    26853 \
                    github.com/gobwas/ws \
                        lock    v1.4.0 \
                        rmd160  ec7eebdf203f72549da54c74daca9d811fe02ed9 \
                        sha256  ad1fb2c29df703b95a3ed569aa6f1652bcde2c858a16064ee0cb4cdf61f603bd \
                        size    86667 \
                    github.com/gobwas/pool \
                        lock    v0.2.1 \
                        rmd160  ab7a7e0eb1d0e84b6504dc4b79c5e7727b49f74f \
                        sha256  1d1e19d51e6a5c94c01dbe74e6f31704f2ce1297bed57273366eae93c3073d34 \
                        size    8057 \
                    github.com/gobwas/httphead \
                        lock    v0.1.0 \
                        rmd160  4a366efe9b00893dd749afc725f30ebdfc8d00cc \
                        sha256  4074e5235aac4f5794f989ea1a9e93374d423b37031df77f4db5a80d02b286e1 \
                        size    17217 \
                    github.com/go-task/slim-sprig \
                        lock    52ccab3ef572 \
                        rmd160  12ad1a072801a204a68c464918417611ec20f218 \
                        sha256  0f2045c6c2eb3042b20de955018ca01c0165ed205345312a5e7cb4d6f5254a36 \
                        size    39951 \
                    github.com/go-ole/go-ole \
                        lock    v1.3.0 \
                        rmd160  7080182feca14a6bea1be4e854c1e4c82415c366 \
                        sha256  7520bd87b1d52a28b98c5fa4243338c5c7cf5185fdd058f55ff6d670c455b13e \
                        size    53295 \
                    github.com/go-logr/logr \
                        lock    v1.2.4 \
                        rmd160  94910286621a7f24eba0cd12b63eead604ab601d \
                        sha256  2d804ca08d9e9d281dad5aa95e0a6595dc9f5b5e21cb5a923ba3356225d59e2d \
                        size    40539 \
                    github.com/go-chi/render \
                        lock    v1.0.3 \
                        rmd160  996a96ac2138ca409e8c0e6b98a294a17c0ecb6f \
                        sha256  d3cec85e8db8e92ab9e79e8c2342e7e37667f990bf537154a26c9d825eebeed9 \
                        size    6167 \
                    github.com/go-chi/chi \
                        lock    v5.2.1 \
                        rmd160  081c201fee667062b1ff9afe8760382a0050cb8b \
                        sha256  d45cfb4dbe900b40e090aafe590990a64ddfa784331a365ffdc9a605338307db \
                        size    87051 \
                    github.com/gaukas/godicttls \
                        lock    v0.0.4 \
                        rmd160  17d7a2ce8acf33da86d6ecd32b4ae20d99f88fa8 \
                        sha256  a7298e5dbc6fc88895806aa723561b81994223e76775bef2719666c67900b262 \
                        size    19727 \
                    github.com/fsnotify/fsnotify \
                        lock    v1.7.0 \
                        rmd160  9198dec094f5008a8b24a2e51542ce4ec3453162 \
                        sha256  d7cd46fbc8e25bfd37edb1b86851dcccc18c5180f09e533c6a35e4dcf2693d22 \
                        size    57508 \
                    github.com/ericlagergren/subtle \
                        lock    890d697da010 \
                        rmd160  252e946a7f8ec766c2e23422f4cf2c54062f6446 \
                        sha256  56836891571b9fe826bcc2ed5a40a3b13cdc403f098cc8919c8e93d93c92a4aa \
                        size    10753 \
                    github.com/ericlagergren/siv \
                        lock    0b757b3aa5f1 \
                        rmd160  712a6af4f9df6bf89cfe6f3666e9d5e1662e5f55 \
                        sha256  c84e737ac3885b4bed77e90964da9da954023677e90b736646ed658cd0b60c29 \
                        size    62478 \
                    github.com/ericlagergren/saferand \
                        lock    960a4dd2bc5c \
                        rmd160  34d79fccaa80a169794ee2c1c219a108e8519a73 \
                        sha256  b8b8304cc3be46504ba48956f3d9497a8b86f84b2c323be0fba64ed11df3fd60 \
                        size    30192 \
                    github.com/ericlagergren/polyval \
                        lock    e25bc10ba391 \
                        rmd160  a1ba2c78def3a88ac35d0fb57332efaf5ac21347 \
                        sha256  c8e6f504bd057931d1cdea5d2bd94660e1e7aaa159fdd5c9659f3da1747c1c37 \
                        size    40684 \
                    github.com/ericlagergren/aegis \
                        lock    b4ce538b56f9 \
                        rmd160  d79d60b15cf58cfd102ab12e4f3120791200f5c5 \
                        sha256  df7d16c1f0b86b184d17d264478d84ec9cfff907a2426732911d34ea7d410244 \
                        size    82044 \
                    github.com/enfein/mieru \
                        lock    v3.11.2 \
                        rmd160  8786385d872140ee5bffa4e654177c799a7cee40 \
                        sha256  50f5eecdbd3006a340e22bb2042cc6e6b152f5395665e914c9e5f92486f5d3d7 \
                        size    456446 \
                    github.com/ebitengine/purego \
                        lock    v0.8.2 \
                        rmd160  59ad7ba3c8b745d9c325c85550b04e388599d8f2 \
                        sha256  a7f17cf7c464d9c7ef38f14731a21b911aacc14d60e1e21426eb6e0f1ede2762 \
                        size    66866 \
                    github.com/dlclark/regexp2 \
                        lock    v1.11.5 \
                        rmd160  4551311a21156a44cc2673f2b33544f6bc9a38b0 \
                        sha256  e129c67a21b80ba5c479969620e16dd82864ce193f870c35a47200da2c25c46e \
                        size    213364 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/coreos/go-iptables \
                        lock    v0.8.0 \
                        rmd160  7aaba35dde09be144b1601623fd80adb4fe14bb4 \
                        sha256  3300cdb0cce693a9d287c8979e3f4cc6ad1870f7f6425ef19f72458fdac5d198 \
                        size    17479 \
                    github.com/cloudflare/circl \
                        lock    v1.3.7 \
                        rmd160  98d536abbd648189637538028f7dd627a84d973e \
                        sha256  2e4e031b8bb07c992cc994480dd6c9d28fec6fa5e6bee68766349cf3c0917239 \
                        size    4938815 \
                    github.com/buger/jsonparser \
                        lock    v1.1.1 \
                        rmd160  35ad9d7a60f9fec3b2eb38c0b2f0268e421a0a5e \
                        sha256  58868e15252ce4fd3a67233481fa55ba5b37c85257d8c6aec230e69abfab096f \
                        size    55225 \
                    github.com/bahlo/generic-list-go \
                        lock    v0.2.0 \
                        rmd160  da4b9f58b6734da97644fb565c81d1bc01ccd7f7 \
                        sha256  aaa6a0719258985eddfa488155edd6a749c070a998d91c48182138115f5de069 \
                        size    5054 \
                    github.com/andybalholm/brotli \
                        lock    v1.0.6 \
                        rmd160  8f20652f784656ad9d0862c26b302afa872e0d4c \
                        sha256  08ee28e438225d672d59337c69d5867c6f44363f3f7f95e2fe624c17d34513f7 \
                        size    1818065 \
                    github.com/ajg/form \
                        lock    v1.5.1 \
                        rmd160  5fceb031a406f7e01c35d0a60b5c65e8c9ee4750 \
                        sha256  22b2b5397f14e93fd4fa292c8de91a6283c7afcfb1254a2e3dba9fa61178386a \
                        size    14948 \
                    github.com/Yawning/aez \
                        lock    e49e68abd344 \
                        rmd160  fe8f5805e98b537e1cdf989ebbc37c39945fd7e3 \
                        sha256  b7817cfccaeed02b5fe4a1d59593c454a2881cc85570ca73c1fa2ee9f5b6b13b \
                        size    798224 \
                    github.com/RyuaNerin/go-krypto \
                        lock    v1.2.4 \
                        rmd160  3e8ca783a05f5bafa817fd5664453923e2192072 \
                        sha256  63e7800adc6b155f1a789a2180ca731b2820709c7f85d67947a2ada8d3d8e84a \
                        size    593928 \
                    github.com/3andne/restls-client-go \
                        lock    v0.1.6 \
                        rmd160  41045b16d3a540fee9bb92098d19cbe0cf147660 \
                        sha256  5b685ff1dc41d3394581e1905aec5ea69f2aac71e9f668c70accefcc743de649 \
                        size    626563

# Notes for updating this port:
# Replace gitlab.com/yawning/bsaes.git with gitlab.com/yawning/bsaes
# Replace github.com/uber/mock with github.com/uber-go/mock
# Replace github.com/google/tink/go with github.com/tink-crypto/tink/go
# Replace google.golang.org/genproto/googleapis/rpc with google.golang.org/genproto
# Replace all occurrences of sagernet with SagerNet
# Replace all occurrences of metacubex with MetaCubeX

post-extract {
    ln -s ${gopath}/src/github.com/MetaCubeX ${gopath}/src/github.com/metacubex
    ln -s ${gopath}/src/github.com/SagerNet ${gopath}/src/github.com/sagernet
    ln -s ${gopath}/src/github.com/MetaCubeX/sing ${gopath}/src/github.com/SagerNet/sing
    ln -s ${gopath}/src/gitlab.com/yawning/bsaes ${gopath}/src/gitlab.com/yawning/bsaes.git
}

post-patch {
    reinplace "s|\/\/ import \"crypto/internal/subtle\"||" ${gopath}/src/github.com/RyuaNerin/go-krypto/internal/subtle/aliasing.go
    reinplace "s|\/\/ import \"github.com/aead/poly1305\"||" ${gopath}/src/github.com/MetaCubeX/chacha/poly1305/poly1305.go
}

set time [clock format [clock seconds] -format "%a %b %e %H:%M:%S %Z %Y"]
build.args          -o ./${name} -tags with_gvisor
build.post_args     -ldflags \"-s -w \
                    -X 'github.com/metacubex/mihomo/constant.Version=${version}' \
                    -X 'github.com/metacubex/mihomo/constant.BuildTime=${time}'\"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -d ${destroot}${prefix}/etc/${name}
    xinstall -m 640 ${worksrcpath}/docs/config.yaml ${destroot}${prefix}/etc/${name}/config.yaml.example
}

post-activate {
    if {![file exists ${prefix}/etc/${name}/config.yaml]} {
        file copy ${prefix}/etc/${name}/config.yaml.example ${prefix}/etc/${name}/config.yaml
    }
}

startupitem.create          yes
startupitem.executable      ${prefix}/bin/${name} -d ${prefix}/etc/${name}

variant logging description {Enable logging to file for the startup item} {
    startupitem.logfile     ${prefix}/var/log/${name}.log
}

notes "
    The default config file is copied to ${prefix}/etc/${name}/config.yaml and its content\
    will be preserved across upgrades and reinstalls. The startup item will use this config\
    file by default.
"
