blob: cc8a40dd4ca49b7fa68e074467aec6a80f0b5c7d (
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
33
34
35
36
37
38
39
40
41
|
PORTNAME= aws-vault
DISTVERSIONPREFIX= v
DISTVERSION= 6.6.2
PORTREVISION= 12
CATEGORIES= security
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Vault for securely storing and accessing AWS credentials
WWW= https://github.com/99designs/aws-vault
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
GO_MODULE= github.com/99designs/aws-vault/v6
GO_BUILDFLAGS= -ldflags="-s -w -X main.Version=${PORTVERSION}"
PORTDOCS= README.md USAGE.md
OPTIONS_DEFINE= DOCS YUBIKEY
OPTIONS_SUB= yes
YUBIKEY_DESC= Install Yubikey IAM helper script
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/contrib/completions/bash/aws-vault.bash ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/contrib/completions/fish/aws-vault.fish ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${WRKSRC}/contrib/completions/zsh/aws-vault.zsh ${STAGEDIR}${PREFIX}/share/zsh/site-functions
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-YUBIKEY-on:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/scripts/aws-iam-create-yubikey-mfa.sh ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|