44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= vault
|
|
PORTVERSION= 0.5.3
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= Tool for securely accessing secrets
|
|
|
|
LICENSE= MPL
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= hashicorp
|
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
USE_RC_SUBR= vault
|
|
|
|
USERS= vault
|
|
GROUPS= vault
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${MV} ${WRKSRC}/vendor ${WRKSRC}/src
|
|
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
@cd ${WRKSRC} ; \
|
|
${MV} .gitignore .travis.yml CHANGELOG.md CONTRIBUTING.md Godeps \
|
|
LICENSE Makefile README.md api audit builtin cli command helper http \
|
|
logical main.go main_test.go make.bat physical scripts shamir terraform \
|
|
vault version website \
|
|
src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; \
|
|
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|