# -*- 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/square/certstrap 1.4.1 v
go.toolchain_min    1.24
revision            0

description         \
    Bootstrap CAs, certificate requests, and signed certificates.

long_description    \
    A simple certificate manager written in Go, to bootstrap your own \
    certificate authority and public key infrastructure. Adapted from \
    etcd-ca. ${name} is a very convenient app if you don't feel like \
    dealing with openssl, its myriad of options or config files.

categories          security devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

github.livecheck.regex  \
                    {([0-9.]+)}

build.pre_args-append \
    -ldflags \"-X main.release=${version}\"

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

checksums           ${distname}${extract.suffix} \
                        rmd160  41688af1f1d68d594842586b1a6fef10e431e3e2 \
                        sha256  7a016b02ad2fbf6a1c6dd010561b6bfe16add5e58d039db5d9ad8fcd724657e8 \
                        size    57808

go.vendors          golang.org/x/term \
                        lock    v0.47.0 \
                        rmd160  3fc4c9d049b1f3c841ecbd1f9695ae328823e648 \
                        sha256  5fb2a607f0b47d13f8d14e3856bf1cd0b9166420f7d0aa64194ac355eb7f7960 \
                        size    16850 \
                    golang.org/x/sys \
                        lock    v0.49.0 \
                        rmd160  6ed878be1d13d77e0d3edddde72f331e07838490 \
                        sha256  a3b736fb807cc342af8da79303e000c845e6d7a3acda8b6404de1477dad0d580 \
                        size    1574657 \
                    golang.org/x/crypto \
                        lock    v0.58.0 \
                        rmd160  d28a3b1db2bae18ae35d0360cfc88a219e208cdc \
                        sha256  ff0fd89fb74658f3648ad504dd7c09225742f53dc3476cf9123b44419349ea51 \
                        size    2192966 \
                    go.step.sm/crypto \
                        repo    github.com/smallstep/crypto \
                        lock    v0.91.0 \
                        rmd160  8d13eeecfbe1fcfe8b7a23ae511b1a861fc1e1ae \
                        sha256  f54706715d1049248dc00d69d42b9a2ead886667d86936ba3a89e9b69e32d463 \
                        size    663583 \
                    github.com/urfave/cli \
                        lock    v1.22.17 \
                        rmd160  f1ae035cf77b3762b3569166ab463a15ce958dad \
                        sha256  af9c4f3ff595b63dfb0e2becbd5fc1c2bba78f139f8510c1263590ab0d383c81 \
                        size    80529 \
                    github.com/russross/blackfriday/v2 \
                        lock    v2.1.0 \
                        rmd160  c42a9332a2c2f3074c6f7e8d37a58d6148d2af08 \
                        sha256  c4df56f2012a7d16471418245e78b5790569e27bbe8d72a860d7117a801a7fae \
                        size    92950 \
                    github.com/pkg/errors \
                        lock    v0.9.1 \
                        rmd160  dc065c655f8a24c6519b58f9d1202eb266ecda40 \
                        sha256  208d21a7da574026f68a8c9818fa7c6ede1b514ef9e72dc733b496ddcb7792a6 \
                        size    13422 \
                    github.com/howeyc/gopass \
                        lock    c8aef6fb66ef \
                        rmd160  c384c4c920ca90ca3923fca4b33242d9b4b85f1f \
                        sha256  64f1826d371e0e679169ec1671cdab5ca60f9ea145074b669900591551db86fe \
                        size    11122 \
                    github.com/cpuguy83/go-md2man/v2 \
                        lock    v2.0.7 \
                        rmd160  823bc7b17c4d9fb7a9a2b955522fdb1defbfd4d3 \
                        sha256  397b066e0e349873b80cb888ebc2e1b7d7436ba54a63ef5a990933df68b301c5 \
                        size    11353 \
                    filippo.io/edwards25519 \
                        repo    github.com/FiloSottile/edwards25519 \
                        lock    v1.2.0 \
                        rmd160  10eba0c92439662b5f60514a1a6d7529e4edddfc \
                        sha256  82d745328974d29c0e11ee0be3431e1115391f4293947fb61da7179c30479611 \
                        size    46984
