1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/security/vault/Makefile
Steve Wills 8826c3812b security/vault: Update to 0.9.0
PR:		224267
Submitted by:	Dani <i.dani@outlook.com>
2017-12-12 14:05:30 +00:00

43 lines
978 B
Makefile

# $FreeBSD$
PORTNAME= vault
PORTVERSION= 0.9.0
DISTVERSIONPREFIX= v
CATEGORIES= security
MAINTAINER= swills@FreeBSD.org
COMMENT= Tool for securely accessing secrets
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.9:lang/go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
COMMIT_ID= bdac1854478538052ba5b7ec9a9ec688d35a3335
USE_RC_SUBR= vault
USERS= vault
GROUPS= vault
PLIST_FILES= bin/${PORTNAME}
do-build:
@cd ${WRKSRC}; \
${SETENV} ${BUILD_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \
go build \
-ldflags "\
-X github.com/hashicorp/vault/version.Version=${PORTVERSION} \
-X github.com/hashicorp/vault/version.VersionPrerelease= \
-X github.com/hashicorp/vault/version.VersionMetadata= \
-X github.com/hashicorp/vault/version.GitCommit='${COMMIT_ID}'" \
-o bin/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>