blob: 954758955e0255950987686173767e62468ec456 (
plain) (
blame)
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
42
43
44
|
# $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>
|