# $FreeBSD: tags/RELEASE_12_1_0/net/bosh-cli/Makefile 500911 2019-05-06 10:04:56Z dumbbell $

PORTNAME=	bosh-cli
PORTVERSION=	5.5.0
CATEGORIES=	net sysutils

MAINTAINER=	dumbbell@FreeBSD.org
COMMENT=	CLI for BOSH

LICENSE=	APACHE20

USE_GITHUB=	yes
GH_TUPLE=	cloudfoundry:bosh-cli:v${PORTVERSION}

CONFLICTS_INSTALL=	rubygem-bosh_cli

USES=		go tar:xz

GO_PKGNAME=	github.com/cloudfoundry/bosh-cli

PLIST_FILES=	bin/bosh

post-patch:
	${REINPLACE_CMD} -e 's|\[DEV BUILD\]|${PORTVERSION}|' ${WRKSRC}/cmd/version.go

post-install:
	${MV} ${STAGEDIR}${PREFIX}/bin/bosh-cli ${STAGEDIR}${PREFIX}/bin/bosh

.include <bsd.port.mk>
