Files
2026-04-28 16:06:56 -04:00

61 lines
2.2 KiB
Tcl

# -*- 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/smallstep/cli 0.30.2 v
go.offline_build no
name step-cli
revision 0
description A zero trust swiss army knife for working with X509, \
OAuth, JWT, OATH OTP, etc.
long_description step is a toolkit for working with your public key \
infrastructure (PKI). It's also the client counterpart \
to the step-ca online Certificate Authority (CA).
categories security
installs_libs no
license Apache-2
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
# Mirrors already have a tarball named cli-${version}. Since the tarball
# is versioned, then we don't have to version our dist_subdir. We need only
# create one with the project name just to differentiate from the tarball
# already present.
dist_subdir ${name}
checksums rmd160 5ed971608f982ab84f65044c5e087f6bf421bf17 \
sha256 0def585a03b9f1dd3e72df33baf38016ba15e198f8532d538a236d65b10bac7f \
size 1653362
build.cmd make
build.target binary-${goos}-${goarch}
destroot {
set bin_path ${destroot}${prefix}/bin/step
# Install executable
xinstall -m 0755 \
${worksrcpath}/output/binary/${goos}-${goarch}/step \
${destroot}${prefix}/bin/
# Install shell completions
set bash_completion ${destroot}${prefix}/share/bash-completion/completions
xinstall -d ${bash_completion}
system "${bin_path} completion bash > ${bash_completion}/step"
set zsh_completion ${destroot}${prefix}/share/zsh/site-functions
xinstall -d ${zsh_completion}
system "${bin_path} completion zsh > ${zsh_completion}/_step"
set fish_completion ${destroot}${prefix}/share/fish/vendor_completions.d
xinstall -d ${fish_completion}
system "${bin_path} completion fish > ${fish_completion}/step.fish"
}
github.livecheck.regex \
{([0-9.]+)}