aboutsummaryrefslogtreecommitdiffstats
path: root/security/vault/Makefile
blob: 345066cff3a5e3d8e1aa9e5336af7a71fe4a4aa4 (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
# $FreeBSD$

PORTNAME=   vault
PORTVERSION=    0.6.4
DISTVERSIONPREFIX=  v
PORTREVISION=   1
CATEGORIES= security

MAINTAINER= swills@FreeBSD.org
COMMENT=    Tool for securely accessing secrets

LICENSE=    MPL

BUILD_DEPENDS=  go>=1.7.1:lang/go

USE_GITHUB= yes
GH_ACCOUNT= hashicorp
GH_SUBDIR=  src/github.com/${GH_ACCOUNT}/${PORTNAME}

STRIP=      # stripping can break go binaries

USE_RC_SUBR=    vault

USERS=      vault
GROUPS=     vault

PLIST_FILES=    bin/${PORTNAME}

post-patch:
    @${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/version/version.go

do-build:
    @cd ${WRKSRC}; \
        ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>