summaryrefslogtreecommitdiffstats
path: root/textproc/consul-template/Makefile
blob: c74d6e8ef8ad1ac1727bf4011c923eca8497c20d (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
# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$

PORTNAME=	consul-template
PORTVERSION=	0.18.2
DISTVERSIONPREFIX=	v
CATEGORIES=	textproc

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Generic template rendering and notifications with Consul

LICENSE=	MPL

BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go

USE_GITHUB=	yes
GH_ACCOUNT=	hashicorp
GH_SUBDIR=	src/github.com/hashicorp/consul-template

PLIST_FILES=	bin/consul-template

USE_RC_SUBR=	consul-template

do-build:
	@cd ${WRKSRC}/src/github.com/hashicorp/consul-template ; \
		${SETENV} GOPATH=${WRKSRC} go build

do-install:
	${INSTALL_PROGRAM} \
		${WRKSRC}/src/github.com/hashicorp/consul-template/consul-template \
		${STAGEDIR}${PREFIX}/bin/consul-template

.include <bsd.port.mk>
OpenPOWER on IntegriCloud