1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/security/aws-vault/Makefile

40 lines
1.2 KiB
Makefile

PORTNAME= aws-vault
DISTVERSIONPREFIX= v
DISTVERSION= 6.3.1
CATEGORIES= security
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Vault for securely storing and accessing AWS credentials
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>