mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
6571c26eb3
- Implement -f fingerprint Allows to create vaults defining a fingerprint beside the key index, allowing with this to always use the same key in case the order changes from the input. https://github.com/ssh-vault/ssh-vault/issues/19 PR: 218426 Submitted by: nbari@tequila.io (maintainer)
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ssh-vault
|
|
PORTVERSION= 0.11.0
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= nbari@tequila.io
|
|
COMMENT= Encrypt/decrypt using ssh keys
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= go>=1.7:lang/go \
|
|
go.crypto>=20160709:security/go.crypto
|
|
|
|
USES= go
|
|
|
|
USE_GITHUB= yes
|
|
GH_TUPLE= ssh-vault:crypto:ae180e0:crypto/src/github.com/ssh-vault/crypto \
|
|
ssh-vault:ssh2pem:e6a4e6a:ssh2pem/src/github.com/ssh-vault/ssh2pem \
|
|
kr:pty:ce7fa45:pty \
|
|
keybase:go-keychain:fc62173:keychain
|
|
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME}
|
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
PLIST_FILES= bin/ssh-vault
|
|
|
|
post-patch:
|
|
@${MKDIR} ${WRKSRC}/src/golang.org
|
|
@${LN} -sf ${LOCALBASE}/share/go/src/golang.org/x ${WRKSRC}/src/golang.org/x
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
|
|
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
|
|
"-s -w -X main.version=${PORTVERSION}" -o ssh-vault cmd/ssh-vault/main.go;
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/ssh-vault/ssh-vault/ssh-vault ${STAGEDIR}${PREFIX}/bin/ssh-vault
|
|
|
|
.include <bsd.port.mk>
|