blob: d22984b7094c4d4078e4330e20ae325b9e2e8a4f (
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
|
# $NetBSD: Makefile,v 1.22 2017/09/11 11:53:06 fhajny Exp $
DISTNAME= consul-0.9.3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=hashicorp/}
MAINTAINER= filip@joyent.com
HOMEPAGE= https://www.consul.io/
COMMENT= Tool for service discovery, monitoring and configuration
LICENSE= mpl-2.0
EXTRACT_USING= bsdtar
GITHUB_TAG= v${PKGVERSION_NOREV}
GO_DIST_BASE= ${DISTNAME}
GO_SRCPATH= github.com/hashicorp/consul
USE_LANGUAGES= c c99
USE_TOOLS+= bash gmake
MAKE_ENV+= GOPATH=${WRKDIR}:${PREFIX}/gopkg
INSTALLATION_DIRS+= bin
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} go build -o bin/consul
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/consul ${DESTDIR}${PREFIX}/bin
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"
|