While here, improve rc script [1] PR: 244380 [1] PR: 244365 [2] Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> [1] Reported by: crest@rlwinm.de [2]
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= consul
|
|
PORTVERSION= 1.7.2
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= Service discovery and configuration made easy
|
|
|
|
LICENSE= MPL20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= hashicorp
|
|
|
|
GO_BUILDFLAGS= -ldflags=" \
|
|
-X github.com/hashicorp/consul/version.Version=${PORTVERSION} \
|
|
-X github.com/hashicorp/consul/version.VersionPrerelease= \
|
|
-X github.com/hashicorp/consul/version.GitDescribe=v${PORTVERSION} \
|
|
"
|
|
|
|
USE_RC_SUBR= consul
|
|
|
|
PLIST_FILES= bin/consul
|
|
|
|
ETCDIR= ${PREFIX}/etc/${PORTNAME}.d
|
|
CONSUL_USER?= consul
|
|
CONSUL_GROUP?= consul
|
|
CONSUL_DATADIR?= /var/db/${PORTNAME}
|
|
|
|
USERS= ${CONSUL_USER}
|
|
GROUPS= ${CONSUL_GROUP}
|
|
|
|
SUB_LIST= CONSUL_DATADIR=${CONSUL_DATADIR} \
|
|
CONSUL_GROUP=${CONSUL_GROUP} \
|
|
CONSUL_USER=${CONSUL_USER} \
|
|
ETCDIR=${ETCDIR}
|
|
|
|
post-extract:
|
|
${MKDIR} ${WRKSRC}/vendor/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
${LN} -s ${WRKSRC}/api ${WRKSRC}/vendor/github.com/${GH_ACCOUNT}/${PORTNAME}/api
|
|
${LN} -s ${WRKSRC}/sdk ${WRKSRC}/vendor/github.com/${GH_ACCOUNT}/${PORTNAME}/sdk
|
|
|
|
.include <bsd.port.mk>
|