# $NetBSD: Makefile,v 1.7 2016/12/04 16:30:00 bsiegert Exp $ DISTNAME= consul-0.7.1 PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_GITHUB:=hashicorp/} MAINTAINER= filip@joyent.com HOMEPAGE= http://www.consul.io/ COMMENT= Tool for service discovery, monitoring and configuration LICENSE= mpl-2.0 EXTRACT_USING= bsdtar GITHUB_TAG= v${PKGVERSION_NOREV} WRKSRC= ${WRKDIR}/src/github.com/hashicorp/consul .include "../../lang/go/version.mk" BUILD_DEPENDS+= go-${GO_VERSION}*:../../lang/go USE_LANGUAGES= c c99 USE_TOOLS+= bash gmake MAKE_ENV+= GOPATH=${WRKDIR}:${PREFIX}/gopkg INSTALLATION_DIRS+= bin post-extract: ${MKDIR} ${WRKSRC} ${MV} ${WRKDIR}/${DISTNAME}/* ${WRKSRC} do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} go build -o bin/consul do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/consul ${DESTDIR}${PREFIX}/bin .include "../../mk/bsd.pkg.mk"