pkgsrc/sysutils/consul/Makefile
2016-06-07 18:00:20 +00:00

39 lines
865 B
Makefile

# $NetBSD: Makefile,v 1.2 2016/06/07 18:00:20 joerg Exp $
DISTNAME= consul-0.6.4
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
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"