aboutsummaryrefslogtreecommitdiff
path: root/sysutils/consul-replicate/Makefile
blob: 6fbc52404d5c8c7908e2b94d8d23f42351acd6d0 (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

PORTNAME=	consul-replicate
PORTVERSION=	0.4.0
DISTVERSIONPREFIX=	v
CATEGORIES=	sysutils

MAINTAINER=	jhixson@FreeBSD.org
COMMENT=	Consul cross-DC KV replication daemon

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go

USE_GITHUB=	yes
GH_ACCOUNT=	hashicorp

GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
GO_BUILDFLAGS=	-ldflags="\
		-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.Version=${PORTVERSION} \
		-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.GitCommit=675a2c2 \
		-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.GitDescribe=v${PORTVERSION} \
		"

USE_RC_SUBR=	consul-replicate

PLIST_FILES=	bin/${PORTNAME}

USERS=		consul
GROUPS=		consul

.include <bsd.port.mk>