blob: aae9e938713974950e00d0d96961c05039a51f84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
PORTNAME= step-cli
DISTVERSIONPREFIX= v
DISTVERSION= 0.26.0
PORTREVISION= 2
CATEGORIES= security
MAINTAINER= mw@wipp.bayern
COMMENT= Smallstep step-ca command line client
WWW= https://smallstep.com/cli/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules shebangfix
SHEBANG_FILES= autocomplete/bash_autocomplete
GO_MODULE= github.com/smallstep/cli
GO_TARGET= ./cmd/step
GO_BUILDFLAGS= -ldflags "-w -X main.Version=${PORTVERSION}"
PLIST_FILES= bin/step \
etc/bash_completion.d/step-completion.bash \
share/zsh/site-functions/_step
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${CP} ${WRKSRC}/autocomplete/bash_autocomplete ${STAGEDIR}${PREFIX}/etc/bash_completion.d/step-completion.bash
${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${CP} ${WRKSRC}/autocomplete/zsh_autocomplete ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_step
.include <bsd.port.mk>
|