summaryrefslogtreecommitdiff
path: root/security/openbao/Makefile
blob: b748609f124c77bccad76972ff437f76e74627d4 (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
PORTNAME=	openbao
DISTVERSIONPREFIX=	v
DISTVERSION=	2.0.1
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES+=	https://raw.githubusercontent.com/${PORTNAME}/${PORTNAME}/${DISTVERSIONFULL}/
DISTFILES=	go.mod \
		api/go.mod \
		api/auth/approle/go.mod \
		api/auth/kubernetes/go.mod \
		api/auth/userpass/go.mod \
		sdk/go.mod

MAINTAINER=	jake@metalrip.com
COMMENT=	Tool for securely accessing secrets
WWW=		https://openbao.org/

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:1.22,modules
USE_GITHUB=	yes
USE_RC_SUBR=	${PORTNAME}

GO_MODULE=	github.com/${PORTNAME}/${PORTNAME}
GO_TARGET=	:${BIN_NAME}
GO_BUILDFLAGS=	-ldflags="-s \
		-X ${GO_MODULE}/version.GitCommit=${GITID} \
		-X ${GO_MODULE}/version.BuildDate=${SOURCE_DATE_EPOCH} \
		-X ${GO_MODULE}/version.fullVersion=${DISTVERSION}"

SUB_FILES=	pkg-message
SUB_LIST=	USER=${USERS} GROUP=${GROUPS}
USERS=		${PORTNAME}
GROUPS=		${PORTNAME}

PLIST_FILES=	bin/${BIN_NAME}

BIN_NAME=		bao
GITID=			88383dece6b4ff1b3b242280a54aeabef8101495
SOURCE_DATE_EPOCH=	${TIMEEPOCHNOW:gmtime}
TIMEEPOCHNOW=		%Y-%m-%dT%H:%M:%SZ

.include <bsd.port.mk>