# -*- 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/cloudflare/cloudflared 2024.11.1
categories          net security
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             Apache-2

description         Cloudflare Tunnel client (formerly Argo Tunnel)
long_description    Contains the command-line client for Cloudflare Tunnel, a tunneling daemon that \
                    proxies traffic from the Cloudflare network to your origins.

homepage            https://developers.cloudflare.com/argo-tunnel

checksums           ${distname}${extract.suffix} \
                        rmd160  39322c2a9bcf94e5319b991c280ebc29c7c4c5e2 \
                        sha256  6d1e7a5286c1ec059d9782711c73cc71f1891076007aaf5f2c3cdcf176881363 \
                        size    7000598

go.vendors          zombiezen.com/go/capnproto2 \
                        repo    github.com/capnproto/go-capnp \
                        lock    v2.18.0 \
                        rmd160  21efaf96de1a778989d0f9b459a747b580222892 \
                        sha256  764c5b4f186ab5c191ab80d80c7d2c9b2f81258583fb7b630e562bc618abdaf4 \
                        size    315667 \
                    nhooyr.io/websocket \
                        repo    github.com/nhooyr/websocket-old \
                        lock    v1.8.17 \
                        rmd160  761c05b3242f870d7d8c2c454a768250f84a504b \
                        sha256  da77c7662f4eca2b9762d489444b2a0aa593377a48cb0a29086c176ae26f19d0 \
                        size    61351 \
                    gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/natefinch/lumberjack.v2 \
                        lock    v2.0.0 \
                        rmd160  931b7db0e3893f0f6515a8113e7c35aa3e45c9da \
                        sha256  1f7796430424a4dd4c74f73929e7e82384672f6c2c311c5b671e6c36353780f3 \
                        size    12640 \
                    gopkg.in/check.v1 \
                        lock    10cb98267c6c \
                        rmd160  465dcadb97762c84da6fb5f6d8352abe10445817 \
                        sha256  98ec7bd0dc7d4bcee7dcafe02efab29f14dc392f43b227e517beef064e9b6369 \
                        size    32368 \
                    google.golang.org/protobuf \
                        repo    github.com/protocolbuffers/protobuf-go \
                        lock    v1.34.1 \
                        rmd160  6939f6e0dddf72b2cc221dedf346352713bf4e78 \
                        sha256  a2b35ea4a7e6e9ad71819d821adbfd099a62bad78979c9d8f1711604e9d11ac5 \
                        size    1508300 \
                    google.golang.org/grpc \
                        repo    github.com/grpc/grpc-go \
                        lock    v1.63.2 \
                        rmd160  f2dcf5e57ef7cff0dfd7855d1ec9c5c56d40d6c4 \
                        sha256  0d8bf13dbcfea8a484de5992b5d5b54e61a6cd85ab325d18158f470f12b79d63 \
                        size    2070507 \
                    google.golang.org/appengine \
                        repo    github.com/golang/appengine \
                        lock    v1.6.8 \
                        rmd160  ae71ed03d1b453ad1561ef937c69a909da53525e \
                        sha256  add6a354e7031705b39bdb1795ca064107038011f060460a23001dd339b41aac \
                        size    628767 \
                    golang.org/x/tools \
                        lock    v0.21.0 \
                        rmd160  5b6506e293b7ee5de2ebdefbe4b44ec61c49675c \
                        sha256  62d870a48e3236ac801f1f1e8c9a1217d4cd81ce9d57b378c1eada7772ac11c6 \
                        size    3803727 \
                    golang.org/x/time \
                        lock    v0.5.0 \
                        rmd160  736ffd8142f0eac7fd5fdde68d9a2adb67a0a7d2 \
                        sha256  b74986a49a769e26a05be1518d800182806135e22819ef98017d38f8e1e6b69c \
                        size    12221 \
                    golang.org/x/text \
                        lock    v0.15.0 \
                        rmd160  1ca8df0a6cd0ee9edc6994336809a7be5aa27ca1 \
                        sha256  6cf7e87883bc72870949df0dc7a54510c08134b345393ded334f838c4a9d5856 \
                        size    8972497 \
                    golang.org/x/term \
                        lock    v0.20.0 \
                        rmd160  60d803a2f48f2ea3ab67d60e7beec8e343294865 \
                        sha256  612d33a3af8c1a794ab2e2001c7423afc0035354e949e49f15384dc4e0728eca \
                        size    14747 \
                    golang.org/x/sys \
                        lock    v0.20.0 \
                        rmd160  3d0ae20090bc3c842511da5c580192dba48d3e43 \
                        sha256  ce54515eaa1296d15bbf4ad58526338eeedd046e24a8ee2840e7c3f0117faf33 \
                        size    1495244 \
                    golang.org/x/sync \
                        lock    v0.7.0 \
                        rmd160  9dca5bc472f59ce4b7e2fc5ac211312932e57b7a \
                        sha256  c4d07f517ce693092db6001f856ab8ea1b606089fc0a2a0f8b45baf35e75a652 \
                        size    18183 \
                    golang.org/x/oauth2 \
                        lock    v0.18.0 \
                        rmd160  8fdb4fee2696608b082a8b83496b7604b0847b21 \
                        sha256  ee741624aaa78917502a19e7b7355a38711df006677a01b5548621b3e7278d3d \
                        size    99785 \
                    golang.org/x/net \
                        lock    v0.25.0 \
                        rmd160  f9afa0b277fff8cc6458e54cf907bc3a8f623cb8 \
                        sha256  4cc00833236ee934170624089cb8a7964dc120d897fdecdda2a28bb273030c94 \
                        size    1510776 \
                    golang.org/x/mod \
                        lock    v0.17.0 \
                        rmd160  935e22575d6c8bd456264203691c1fb3b287080a \
                        sha256  cc1c35993bb4ce0094e4a3d61019e21ac2d8a87499e440f72e366915f71e50f8 \
                        size    122081 \
                    golang.org/x/exp \
                        lock    9bf2ced13842 \
                        rmd160  b0d83153c3289a55ceaaa98874c7f8666936ebca \
                        sha256  630dccd7220d1bd04b5412cd02077e2784a58467e67394e9dd36787c8d5d5edd \
                        size    1744202 \
                    golang.org/x/crypto \
                        lock    v0.23.0 \
                        rmd160  1aeb5852024699ed01f0e89933f152c3ff14ea79 \
                        sha256  aa1182b8489006956a8015ca94bb2ecccd162dd32c286e71cd29e533804f4dc1 \
                        size    1813969 \
                    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.4.0 \
                        rmd160  52804d713060b31d329cf60c45e6429dbc2e553b \
                        sha256  725c62bbddf53165709b75c1a4ba7055e3424f21a129b90ce4632d3ea94910fb \
                        size    19646 \
                    go.opentelemetry.io/proto/otlp \
                        repo    github.com/open-telemetry/opentelemetry-proto-go \
                        lock    v1.2.0 \
                        rmd160  945480c5ea59ea82504e4e2c2007daa85c9683e5 \
                        sha256  b14db2004ad7a83365a011fd6055740576105ec6d87d53e97e08849335624ca7 \
                        size    285827 \
                    go.opentelemetry.io/otel/trace \
                        repo    github.com/open-telemetry/opentelemetry-go \
                        lock    v1.26.0 \
                        rmd160  78718bdc557209b4b4216f43540fdd88a6c052d3 \
                        sha256  ef6433cc45fb079d833698b741fcd70b70866c073a578f1ec4d06864f8f2cab6 \
                        size    1670096 \
                    go.opentelemetry.io/otel/sdk \
                        repo    github.com/open-telemetry/opentelemetry-go \
                        lock    v1.26.0 \
                        rmd160  78718bdc557209b4b4216f43540fdd88a6c052d3 \
                        sha256  ef6433cc45fb079d833698b741fcd70b70866c073a578f1ec4d06864f8f2cab6 \
                        size    1670096 \
                    go.opentelemetry.io/otel/metric \
                        repo    github.com/open-telemetry/opentelemetry-go \
                        lock    v1.26.0 \
                        rmd160  78718bdc557209b4b4216f43540fdd88a6c052d3 \
                        sha256  ef6433cc45fb079d833698b741fcd70b70866c073a578f1ec4d06864f8f2cab6 \
                        size    1670096 \
                    go.opentelemetry.io/otel/exporters/otlp/otlptrace \
                        repo    github.com/open-telemetry/opentelemetry-go \
                        lock    v1.26.0 \
                        rmd160  78718bdc557209b4b4216f43540fdd88a6c052d3 \
                        sha256  ef6433cc45fb079d833698b741fcd70b70866c073a578f1ec4d06864f8f2cab6 \
                        size    1670096 \
                    go.opentelemetry.io/otel \
                        repo    github.com/open-telemetry/opentelemetry-go \
                        lock    v1.26.0 \
                        rmd160  78718bdc557209b4b4216f43540fdd88a6c052d3 \
                        sha256  ef6433cc45fb079d833698b741fcd70b70866c073a578f1ec4d06864f8f2cab6 \
                        size    1670096 \
                    go.opentelemetry.io/contrib/propagators \
                        repo    github.com/open-telemetry/opentelemetry-go-contrib \
                        lock    v0.22.0 \
                        rmd160  de72d7474fb05b38f50d51ebdf6c3da3baeffa89 \
                        sha256  1dff27f2882b6a856d64cb723a82d111523cc1e397864d514a729c0142fc3090 \
                        size    456609 \
                    github.com/ugorji/go \
                        lock    v1.1.7 \
                        rmd160  a30b19f3dbc6ed0555183380f7a3a2e0d90033d7 \
                        sha256  7e7d86a2f01eac594c05e807fa77005c92122bcec661d9128dee4f6510449714 \
                        size    293743 \
                    github.com/tinylib/msgp \
                        lock    v1.1.8 \
                        rmd160  95062248bbc7ad03967b759b5139fbc0c99e7cc5 \
                        sha256  9254d9b120079b7e08b54ba0869a640bb02163059e0e47e5eab4258687145968 \
                        size    93934 \
                    github.com/stretchr/testify \
                        lock    v1.9.0 \
                        rmd160  59147e117812fdf8270ec79e46a229c472caf08d \
                        sha256  e6fa4f530cad5bac94bf08af05ddd1f569aeac8db4017ab4330ab7fe2802a6a3 \
                        size    108716 \
                    github.com/russross/blackfriday \
                        lock    v2.1.0 \
                        rmd160  c42a9332a2c2f3074c6f7e8d37a58d6148d2af08 \
                        sha256  c4df56f2012a7d16471418245e78b5790569e27bbe8d72a860d7117a801a7fae \
                        size    92950 \
                    github.com/rs/zerolog \
                        lock    v1.20.0 \
                        rmd160  b36244abc91ac463fd3ad675a9ec0f9bbfea7dcb \
                        sha256  b008a5f5cdd9d1f09bc297bdd04f9ac657fc0e38c0976266c23c69e12b99f17b \
                        size    217823 \
                    github.com/rogpeppe/go-internal \
                        lock    v1.10.0 \
                        rmd160  362209f6e87e52fd89be2c2c24fb21c24bda8a34 \
                        sha256  35a4d18a74b97fb7b8bf0653554e8030c3e3474d2a28f303f31ac0c71cea721e \
                        size    139234 \
                    github.com/quic-go/quic-go \
                        lock    v0.45.0 \
                        rmd160  ba61cbe130059e0f083fbe069ee726f3e1fee0cd \
                        sha256  eae683e6b953465b854ed4ab0114a6b90efa9a44d7ce211fd1ddd6a44219b960 \
                        size    622238 \
                    github.com/prometheus/procfs \
                        lock    v0.12.0 \
                        rmd160  dbd9966e7a4d0769ee6f7cfd14ba260becd90e50 \
                        sha256  99d748083e133cc5c152b35a452c771d0d49da87144a1787e83f2a5a81557361 \
                        size    237458 \
                    github.com/prometheus/common \
                        lock    v0.53.0 \
                        rmd160  1df367173c3f8168440e31f9ac6fe23d6051c556 \
                        sha256  5e41a08e3465b3b1191741df1845df0b6be40d57bf6c5d19c15642cc5a62c7cd \
                        size    145709 \
                    github.com/prometheus/client_model \
                        lock    v0.6.0 \
                        rmd160  5453b2ecaa38c61b058fe6c37ba91e907c2737d7 \
                        sha256  4073bcab0815add36ca70ca92721a3237be28d1d631e5c7832087cf7ecaed009 \
                        size    17392 \
                    github.com/prometheus/client_golang \
                        lock    v1.19.1 \
                        rmd160  9fca5beb941c58abd11af3e5273b09aa286db0dc \
                        sha256  25c2bdb425885beefd9f940f2f865dee1aaf16be7cb7c1cc30848bf16dec836a \
                        size    1083513 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/pkg/errors \
                        lock    v0.9.1 \
                        rmd160  dc065c655f8a24c6519b58f9d1202eb266ecda40 \
                        sha256  208d21a7da574026f68a8c9818fa7c6ede1b514ef9e72dc733b496ddcb7792a6 \
                        size    13422 \
                    github.com/pingcap/errors \
                        lock    v0.11.4 \
                        rmd160  2d251ea36d89d22bcdc2692bc4ea4d0d4f2b0c2d \
                        sha256  fbdb96517e5ccbdbbed748fe5f4ff11c00b6ab6a0189f9f3060a7d465e3a6b92 \
                        size    14809 \
                    github.com/philhofer/fwd \
                        lock    v1.1.2 \
                        rmd160  17d99aa1e3f34cb76e1749bc3be0e8155ebcbd49 \
                        sha256  10beaea5a40f4293e2220b2f4aa01213fb6e8e1ab04dd473dff0aba6f689f52d \
                        size    10601 \
                    github.com/pelletier/go-toml \
                        lock    v2.0.5 \
                        rmd160  9a33d853ef69f82de2fde851a489b9373c235097 \
                        sha256  0fe4742aa1b2138b3d31297913e7cdc97178cc894ddd6a3ed69829f01352a5b0 \
                        size    889790 \
                    github.com/opentracing/opentracing-go \
                        lock    v1.2.0 \
                        rmd160  eba4d951f843cfd78e68cd483c2de5244e0a97c3 \
                        sha256  18972f8968cca66f5474280c2c3ed4173361d373ea5b5ed7f67c624d4c69bcf9 \
                        size    35924 \
                    github.com/onsi/gomega \
                        lock    v1.27.10 \
                        rmd160  d189e2bc1b2f11d7147070be6832276b272b26ed \
                        sha256  b3bd20aaf8a67d44036ee1ef38e8410411127f0b4e9ad0d0a67649da952f5f38 \
                        size    313210 \
                    github.com/onsi/ginkgo \
                        lock    v2.13.0 \
                        rmd160  d8ff53f9360cba651ee1197bdbbc6a73bed85094 \
                        sha256  01267dceef2d52e342fb5e658d7af5f44f4a9cfb8a355263a972bf836a9a5965 \
                        size    628541 \
                    github.com/modern-go/reflect2 \
                        lock    v1.0.2 \
                        rmd160  02f0f5d652cd9d03a27876e11610edb31ed7c8b5 \
                        sha256  6394630fb95f41f31a329473d221cecda03753fec7ebfca41e4eb70e32a58b89 \
                        size    14049 \
                    github.com/modern-go/concurrent \
                        lock    bacd9c7ef1dd \
                        rmd160  b039328d6fd40b97513dea8bf5b00adfdd53f14b \
                        sha256  2f3333805bef60544e64ac9a734522205b513f5c461ba19f3d557510bb205afb \
                        size    7533 \
                    github.com/mitchellh/go-homedir \
                        lock    v1.1.0 \
                        rmd160  44b3985e40e5bbb22d11f8622c340f9ed727ea91 \
                        sha256  024c8a57316c7fbc0eb23cdbfd57f72a74b51beb83d714034d67ee9aba48100c \
                        size    3366 \
                    github.com/miekg/dns \
                        lock    v1.1.58 \
                        rmd160  f2ede51319ef09dc6d58d908c3dedbcf7bf6ef0e \
                        sha256  8527a31fc518ac22bcc0ddfb8a85a5b42a49bda6abba4318ea9e73a22b80e317 \
                        size    214942 \
                    github.com/matttproud/golang_protobuf_extensions \
                        lock    v1.0.4 \
                        rmd160  5cd0af4220838331f336b1dca99297e11441be69 \
                        sha256  6c32596468a03ca847e3cc29e74d64e0b7a0bba64166343494696c418415d114 \
                        size    37528 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.16 \
                        rmd160  dcdf01553caa079315f2293c109de17fc72f0c6b \
                        sha256  391d25a98e2cc92a2ed5c6abd07cde1053411706bb24e5843562931e6085ab46 \
                        size    4693 \
                    github.com/mattn/go-colorable \
                        lock    v0.1.13 \
                        rmd160  c9e8ab9d0773c0984f36235e3c9f8c033552ac1a \
                        sha256  0cd9a951799c1a9f999df56e4b020170fa887456049c274aae6262d9ae3f7424 \
                        size    9778 \
                    github.com/leodido/go-urn \
                        lock    v1.2.1 \
                        rmd160  ec3dbfd8b84df7780e1abd060264da8572ce9ab3 \
                        sha256  1f925d41e0f8fdd2b1be94bf12a528c28f87f745a574d709a044f7f7ea00a383 \
                        size    1102840 \
                    github.com/kylelemons/godebug \
                        lock    v1.1.0 \
                        rmd160  917ada648e70d2e339b8ff36d2f86882d0d2efa1 \
                        sha256  6151c487936ab72cffbf804626228083c9b3abfc908a2bb41b1160e1e5780aaf \
                        size    17641 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/kr/pretty \
                        lock    v0.3.1 \
                        rmd160  8c08579b4c56cdc958794e77afe3413e80aa67c3 \
                        sha256  7fcea475d6280976cf4a838e75d2b3a4105827316e588a80e49e8063d950c999 \
                        size    10232 \
                    github.com/klauspost/compress \
                        lock    v1.15.11 \
                        rmd160  a661ea501f73f3ed730b2036d139aff74f5a4e51 \
                        sha256  8298d3a159ebf8ddf6033318f19a12597c29b2eadec5469c59e8180af0679d05 \
                        size    36199250 \
                    github.com/json-iterator/go \
                        lock    v1.1.12 \
                        rmd160  7b530ae077fa1fa5db7b7e228e92dd39c79c4a4d \
                        sha256  e0ec0450ef7ecedf0dfc1b5c430324fd0e8aedc18bddd0bd730e5a6cb35c41a8 \
                        size    84301 \
                    github.com/ipostelnik/cli \
                        lock    b6ea8234fe3d \
                        rmd160  783b9fdfbffe08106d6d2bfb01b2ca5a00165f25 \
                        sha256  041f44049bf9bd1915cc3fed347316556e4006180ca1edb872acb2c10f97a7cf \
                        size    3411708 \
                    github.com/grpc-ecosystem/grpc-opentracing \
                        lock    8e809c8a8645 \
                        rmd160  9354d9edfd188042b9648fe7f57e7824f134553a \
                        sha256  b41d78e06f08262c756b081f3de2c6492082f2bfd0d97234575402cbdf0e521f \
                        size    48143 \
                    github.com/grpc-ecosystem/grpc-gateway \
                        lock    v2.19.1 \
                        rmd160  ec7455ae6978c199347d5e872384362f1232d33d \
                        sha256  8f31a3f215a588941722b4b20237e7fb4b16d498342f4cedb9ec0ac0bd9e662c \
                        size    798512 \
                    github.com/gorilla/websocket \
                        lock    v1.4.2 \
                        rmd160  784f79f05da87fc2f2af618ad4e1eb576d7c16d8 \
                        sha256  7805b8fc2002f7d1a7acdaa98feee2d6746d9241db0c597e0ee256cf0ff93a0b \
                        size    54121 \
                    github.com/google/uuid \
                        lock    v1.6.0 \
                        rmd160  3d4f6f95018c6313f7258805845eb2a7e717850c \
                        sha256  72700459e75cad2b36586e8a13aa12c2d6248c45db24d1eebf41e18b1ec1c811 \
                        size    20895 \
                    github.com/google/pprof \
                        lock    7a8ec2ada47b \
                        rmd160  ae422a33b100a4dd24154330b460e3d195549e59 \
                        sha256  c6efa16aa2abf76009e09c55c7aea43673017cb3f164fc0f1648cf5e6b726b86 \
                        size    4790591 \
                    github.com/google/gopacket \
                        lock    v1.1.19 \
                        rmd160  4f1732d15d1f4057d37f8e8cdb6bbbcbd722cdd2 \
                        sha256  546027e7edd39388cd5a8f265e30ba921ed452889eceaaecbc1484f20b350a21 \
                        size    950824 \
                    github.com/google/go-cmp \
                        lock    v0.6.0 \
                        rmd160  2c9f5dab93f8a0895591466fe4a07c5dd9166ae2 \
                        sha256  0d550825fae514f8a947ab7e42fcb874f509d9cbfa3ad2711d7570a25f31571a \
                        size    104795 \
                    github.com/golang/protobuf \
                        lock    v1.5.4 \
                        rmd160  d69db706fd894bafba23bda9df27167c6ff37e83 \
                        sha256  25e849ffcfef59114f3a6247d4d4c386449a3d5a347b25d4b5ada1f1a2bf5e5d \
                        size    173020 \
                    github.com/goccy/go-json \
                        lock    v0.9.11 \
                        rmd160  74b101a66511c75e9c7bb67f9b0840f0051ea150 \
                        sha256  31e073a25b9d098404e0bfa0a33557d1616776fec4a945ba96a388f8560012f6 \
                        size    388438 \
                    github.com/gobwas/ws \
                        lock    v1.2.1 \
                        rmd160  2ac871e83b722709cff9a977fd623f4e88025d20 \
                        sha256  d5f388fdf8553cd513fbefa2f28594a3168cae940b7cf98cfb789c65471c3e14 \
                        size    85793 \
                    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-playground/validator \
                        lock    v10.11.1 \
                        rmd160  095857efaffc436918909a4a4f55dbcdc73a24f3 \
                        sha256  98178a39b529190dca50457757fa632108188060257f3b377139781973b4bd01 \
                        size    228969 \
                    github.com/go-playground/universal-translator \
                        lock    v0.18.0 \
                        rmd160  613f7c1bf26f11546dc4711b583db58ebc6edaad \
                        sha256  8f6906c3e2400f21a8bd01bde574eceece589c121359c596b474da49dac803d8 \
                        size    37188 \
                    github.com/go-playground/locales \
                        lock    v0.14.0 \
                        rmd160  20862e4a3b0cec0f4b77fe48eee65bccb2c2c0a9 \
                        sha256  09e2e06044b50d89b5363586e745cc970a5749960815bf86b65eb185f6537663 \
                        size    4364562 \
                    github.com/go-logr/stdr \
                        lock    v1.2.2 \
                        rmd160  2f24ba9c61d88475841e65ea6109c189fcb6de3c \
                        sha256  694ed0928bb3e77d98e90d48e970dd2750b8fee1170a85897a5f256c3f459a1c \
                        size    9105 \
                    github.com/go-logr/logr \
                        lock    v1.4.1 \
                        rmd160  c67d0ab7762d8963e663857681623e92c67a7a17 \
                        sha256  61ada6c3d2cf828f1ae2564cb34aea76bba2817671354da60d6e851c52f20cf8 \
                        size    56969 \
                    github.com/go-jose/go-jose \
                        lock    v4.0.1 \
                        rmd160  f0a4c0423efa1e8ca10a3a38ab3965bcca7f18da \
                        sha256  c5699d26dbeac6568b7ae002209368499574b70a3986751b05506d89ef4a5c5f \
                        size    319075 \
                    github.com/go-errors/errors \
                        lock    v1.4.2 \
                        rmd160  ed53d1065e59d0cbac890a8460ab8403c4590843 \
                        sha256  44fe48c250d2b8e623684ca0f781562eadb23994237206be43a47a9c702c5e74 \
                        size    9180 \
                    github.com/go-chi/cors \
                        lock    v1.2.1 \
                        rmd160  77d9d00288f070cab2e42f542d1882ccf23103f5 \
                        sha256  6a7191078f7c316b94947ae61f7164c58ff533f6be1b0817f61158dd841d609d \
                        size    8830 \
                    github.com/go-chi/chi \
                        lock    v5.0.8 \
                        rmd160  92f7d1e060214426e5c31db81ae15f21ebc99b82 \
                        sha256  9f96f40cce2599b57102eb3e2dbad5fc585b49fd72ffabdd2873dfaa20dfb1eb \
                        size    82835 \
                    github.com/gin-gonic/gin \
                        lock    v1.8.1 \
                        rmd160  d4dd6980754b1e2b772e79f42c55a90c9bff49ae \
                        sha256  f54d18eee05803f2836eb40a7fce7867e4c3547aec87bf8a392ef159fee55775 \
                        size    161720 \
                    github.com/gin-contrib/sse \
                        lock    v0.1.0 \
                        rmd160  13fcc4b8d3f6bb01e0c281a8e1abea601e9af809 \
                        sha256  f021daeb55664e0eb4013e89f95bbcd235c34d39521a32a60d74b906527a5f41 \
                        size    6121 \
                    github.com/getsentry/sentry-go \
                        lock    v0.16.0 \
                        rmd160  d01a0bb2b8d71a613b2d8d66d7c202bd3c48f015 \
                        sha256  411c9b490596927598e911dd1ef0cb92996f192e3a2c4e3883194a624a46aad1 \
                        size    132746 \
                    github.com/fsnotify/fsnotify \
                        lock    v1.4.9 \
                        rmd160  4660b5721da8aea4c890786e49d7cec39c2e04d3 \
                        sha256  7920cf1e5ccf268962fcff0b501398ed6c28ed75b1e1281fb17b19a8b0e4db5c \
                        size    31910 \
                    github.com/fortytw2/leaktest \
                        lock    v1.3.0 \
                        rmd160  e7d5e0d027caf7c1eaf5495d9ed8b22d02655595 \
                        sha256  a10cbec5a7d8d9e34e2914847465202a31a7bc802490da090856fbeb78712e33 \
                        size    5288 \
                    github.com/flynn/go-shlex \
                        lock    3f9db97f8568 \
                        rmd160  ec42eaffe2cf17a46e12c7c2a7d436c0f68ba655 \
                        sha256  b4205ec400df652238f7ed287c4b77b5f17a17d5793cd5371b7cc5e0f07dfeed \
                        size    7690 \
                    github.com/facebookgo/subset \
                        lock    8dac2c3c4870 \
                        rmd160  c6c967081eb23dafafc09edd16c6206252f00771 \
                        sha256  e92744ece065a2ff0d3c88fa029682441c0ca7da5845e25a2bacbb7138f8efa6 \
                        size    4497 \
                    github.com/facebookgo/stack \
                        lock    751773369052 \
                        rmd160  b722ed02fe42ba5d5c223a088b271bf777387947 \
                        sha256  ba0e192c74b0750e4141bfdcbebfb55936750ca441fdd233df208d07991f9ad6 \
                        size    5805 \
                    github.com/facebookgo/grace \
                        lock    75cf19382434 \
                        rmd160  bab0bb2d437cabf3ccbc8124a8dd79a90526dfd3 \
                        sha256  1685d0c317d3110f016704872f280cbcad6f33d700eaa9158bf88699965dd6db \
                        size    12401 \
                    github.com/facebookgo/freeport \
                        lock    d4adf43b75b9 \
                        rmd160  8c1c9409324982a0e19e522fd7e97be046c26759 \
                        sha256  da982445ddd60a799c0b34f68f838391e05861a75763a994299af30a8349a86e \
                        size    2720 \
                    github.com/facebookgo/ensure \
                        lock    b4ab57deab51 \
                        rmd160  edbc3867aea4c2fa9d3cc7d8521421d39e3ecae2 \
                        sha256  80e2efbfe5297d35a61759647a2f6182d3e02f432ad8ab94258c2e310a00fc76 \
                        size    6422 \
                    github.com/davecgh/go-spew \
                        lock    d8f796af33cc \
                        rmd160  412da847dd485c586e0557e0e511bbdab6c7e929 \
                        sha256  989c527fb1568e2bfd9d4bec811d67ababa346d20fa2ffcc0760fad258241c26 \
                        size    42174 \
                    github.com/cpuguy83/go-md2man \
                        lock    v2.0.0 \
                        rmd160  85f342c341fa928e9ec874490c277bdabf1c39c6 \
                        sha256  2f3f8bc701df4890a5a4baf0b632ad3290be1e0aaf572b2e58fd57df93efc306 \
                        size    52040 \
                    github.com/coreos/go-systemd \
                        lock    v22.5.0 \
                        rmd160  897f15eed5c77be9fcbf2a2b3da2ce680d40358d \
                        sha256  f7b16656659fb11fa2be6d56eb012a7329761e433c1b6d4b3aa43e5d1c664483 \
                        size    75581 \
                    github.com/coreos/go-oidc \
                        lock    v3.10.0 \
                        rmd160  4011cdaf8563e7b3675281700eed53f78b4a6aef \
                        sha256  10eb9110ec5215b9ede2ec8a6fb3dc19e90f9d1767605fd832d2dbf6d6a59f85 \
                        size    32421 \
                    github.com/coredns/coredns \
                        lock    v1.11.3 \
                        rmd160  d4fe641e27291c9b11511d33b4ac9d9a1901e4fc \
                        sha256  70d0e2c18b7b6603cbfee3bca8c35dc93eeff87d323f274260b97e3de96ec3fc \
                        size    653861 \
                    github.com/coredns/caddy \
                        lock    v1.1.1 \
                        rmd160  e79cfea9d6b930b68422450dbae0bfaf847275b4 \
                        sha256  602f45de1579c9b847f1a0025b8fce0389e825317fd6d2e23faf24de009cad11 \
                        size    48176 \
                    github.com/cespare/xxhash \
                        lock    v2.2.0 \
                        rmd160  17d6143308fd7f2ccf9b885b19a2445a612ce013 \
                        sha256  d491baceb567c1fcc6eae97991816169f798ac2bfc9f62224bd6ad63b1a4e60e \
                        size    12348 \
                    github.com/beorn7/perks \
                        lock    v1.0.1 \
                        rmd160  c6c5c7fd2132f01925c7fccd9d27c9d7a80f2adb \
                        sha256  78da4421e9f9fa2ee5e3855bdd31cfb04c7e823d9c0ec385cc2c008132d98b96 \
                        size    10874 \
                    github.com/apparentlymart/go-cidr \
                        lock    v1.1.0 \
                        rmd160  4cd9559c26a93768034ff390ea4839a829ca70e3 \
                        sha256  611e1aa9f7bb616598fa0d333a4f997aca1868a272f005d65842745ff35221b4 \
                        size    6240 \
                    github.com/BurntSushi/toml \
                        lock    v1.2.0 \
                        rmd160  b6af60be88cbeac8ed5e5124d187cf5e1a98864d \
                        sha256  7cc755999d3c804cfeee6e464cc800cee299a33877dfd901671f3574e2eb80fd \
                        size    96599

# Notes for updating this port:
# Replace github.com/uber/mock with github.com/uber-go/mock
# Replace github.com/capnproto/go-capnproto2 with github.com/capnproto/go-capnp
# Remove entries google.golang.org/genproto/googleapis/rpc, google.golang.org/genproto/googleapis/api, github.com/ugorji/go/codec
# See https://trac.macports.org/ticket/61192#comment:34

set time [clock format [clock seconds] -format "%Y-%m-%d-%H%M %Z"]
build.args-append   -ldflags=\"-X 'main.Version=${version}' -X 'main.BuildTime=${time}'\" -o ./cloudflared ./cmd/cloudflared

post-patch {
    reinplace "s|\"/etc/cloudflared\", DefaultUnixConfigLocation|\"/etc/cloudflared\", \"${prefix}/etc/cloudflared\", DefaultUnixConfigLocation|" \
              ${gopath}/src/github.com/cloudflare/cloudflared/config/configuration.go
}

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

set config_path     ${prefix}/etc/cloudflared
set env_file        cloudflared_env.conf
set wrapper_script  cloudflared-wrapper.sh

post-destroot {
    file mkdir ${destroot}${prefix}/libexec/${name}
    copy ${filespath}/${wrapper_script} ${destroot}${prefix}/libexec/${name}/${wrapper_script}
    file mkdir ${destroot}${config_path}
    copy ${filespath}/${env_file} ${destroot}${config_path}${env_file}.example
    reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/libexec/${name}/${wrapper_script}
    reinplace "s|@@CONFIG_PATH@@|${config_path}|g" ${destroot}${prefix}/libexec/${name}/${wrapper_script}
    reinplace "s|@@ENV_FILE@@|${env_file}|g" ${destroot}${prefix}/libexec/${name}/${wrapper_script}
}

post-activate {
    if {![file exists ${config_path}${env_file}]} {
        copy ${config_path}${env_file}.example ${config_path}${env_file}
    }
}

startupitem.create          yes
startupitem.executable      ${prefix}/libexec/${name}/${wrapper_script}

notes-append "
    The example config file is copied to ${config_path}${env_file} and its content\
    will be preserved across upgrades and reinstalls. This config file configures cloudflared\
    as a DNS over HTTPS client using cloudflare DNS, running on port 5053. The startup item\
    will use this config file by default.
"
