blob: 70567985ce70baa7c9443cf160f9d9247a180244 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= consul
DISTVERSION= 1.18.1
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= https://raw.githubusercontent.com/hashicorp/consul/${DISTVERSIONFULL}/
DISTFILES= go.mod \
api/go.mod \
envoyextensions/go.mod \
proto-public/go.mod \
sdk/go.mod \
troubleshoot/go.mod
MAINTAINER= bofh@FreeBSD.org
COMMENT= Service discovery and configuration made easy
WWW= https://www.consul.io/
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe go:1.21,modules
CPE_VENDOR= hashicorp
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
USE_RC_SUBR= consul
GO_MODULE= github.com/hashicorp/consul
GO_BUILDFLAGS= -ldflags="-s \
-X github.com/hashicorp/consul/version.GitCommit=${GITID} \
-X github.com/hashicorp/consul/version.BuildDate=${SOURCE_DATE_EPOCH:U${SOURCE_DATE_EPOCH_CMD:sh}} \
"
ETCDIR= ${PREFIX}/etc/consul.d
SUB_LIST= CONSUL_DBDIR=${CONSUL_DBDIR} \
GROUP=${CONSUL_GROUP} \
USER=${CONSUL_USER}
USERS= ${CONSUL_USER}
GROUPS= ${CONSUL_GROUP}
PLIST_FILES= bin/consul
CONSUL_USER?= consul
CONSUL_GROUP?= consul
CONSUL_DBDIR?= /var/db/${PORTNAME}
GITID= 349cec1
# Bring DISTINFO_FILE into scope so we can get the timestamp.
.include <bsd.port.pre.mk>
SOURCE_DATE_EPOCH_CMD= date -ur \
$$(${GREP} -m1 TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') \
'+%Y-%m-%dT%H:%M:%SZ'
.include <bsd.port.post.mk>
|