# -*- 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/gokey 0.2.1 v
revision            0

description         A simple vaultless password manager in Go

long_description    \
    ${name} is a password manager, which does not require a password vault. \
    Instead of storing your passwords in a vault it derives your password on \
    the fly from your master password and supplied realm string (for example, \
    resource URL). This way you do not have to manage, backup or sync your \
    password vault (or trust its management to a third party) as your \
    passwords are available immediately anywhere.

categories          security
installs_libs       no
license             BSD-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

depends_build-append port:go-md2man

build.target        ./cmd/${name}

post-build {
    system -W ${worksrcpath} "go-md2man -in ./${name}.1.md -out ${name}.1"
}

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

    xinstall -d ${destroot}${prefix}/share/man/man1/

    xinstall -m 0644 \
        ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  456fec8913d8e32f4b340807f76c6d80d983dea5 \
                        sha256  b9f03491efa3b3481fc78246f62c6786ba19e9c9c8c36461cc8b949081f5896d \
                        size    20194

go.vendors          golang.org/x/term \
                        lock    v0.37.0 \
                        rmd160  3759f4d1753501eddc200d9470abbc5532628b4d \
                        sha256  5c843cde30cc5db1f4f91029922acfef7ef7b2f25e8de668a9810bb6eb6b8920 \
                        size    15933 \
                    golang.org/x/sys \
                        lock    v0.38.0 \
                        rmd160  116c6683aefacc223a60af4811ab8d97c4d3f6b0 \
                        sha256  5a63f5eb3814a66b1988ad9ff703c8d54d79463eed52a49f546091e17682cbc7 \
                        size    1535499 \
                    golang.org/x/crypto \
                        lock    v0.45.0 \
                        rmd160  5e8c5670b4ae9f82c9bc4e41dd2863beab2bd7e0 \
                        sha256  bd578b01007a7eccb50a26722812150c25361e900f329d961dcb1e52fa121ef0 \
                        size    2152069
