Files
ports/security/step-cli/Makefile
T
2025-02-04 11:30:38 +00:00

42 lines
1.4 KiB
Makefile

# quick test to replicate: "step base64"; makeRaw from golang.org/x/term fails
BROKEN = syscall problems? "error making raw terminal: function not implemented"
#BROKEN-i386 = ../../../go/pkg/mod/github.com/newrelic/go-agent/v3@v3.18.0/internal/utilization/utilization.go:214:25: undefined: sysinfo.PhysicalMemoryBytes
#BROKEN-aarch64 = ../../../go/pkg/mod/github.com/newrelic/go-agent/v3@v3.18.0/internal/utilization/utilization.go:214:25: undefined: sysinfo.PhysicalMemoryBytes
COMMENT = swiss army knife for working with X509, OAuth, JWT, OATH OTP
V = 0.28.2
MODGO_MODNAME = github.com/smallstep/cli
MODGO_VERSION = v${V}
DISTNAME = step-cli-${V}
CATEGORIES = security
HOMEPAGE = https://smallstep.com/cli
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
MODGO_LDFLAGS += -X "main.Version=${V}"
post-install:
${INSTALL_DATA_DIR} \
${PREFIX}/share/bash-completion/completions \
${PREFIX}/share/zsh/site-functions \
${PREFIX}/share/fish/vendor_completions.d
env HOME=${WRKDIR} ${WRKDIR}/go/bin/step completion bash > \
${PREFIX}/share/bash-completion/completions/step
env HOME=${WRKDIR} ${WRKDIR}/go/bin/step completion zsh > \
${PREFIX}/share/zsh/site-functions/_step
env HOME=${WRKDIR} ${WRKDIR}/go/bin/step completion fish > \
${PREFIX}/share/fish/vendor_completions.d/step.fish
.include "modules.inc"
.include <bsd.port.mk>