# $FreeBSD: head/net/bosh-bootloader/Makefile 469531 2018-05-10 10:52:39Z dumbbell $

PORTNAME=	bosh-bootloader
PORTVERSION=	6.6.8
CATEGORIES=	net sysutils

MAINTAINER=	dumbbell@FreeBSD.org
COMMENT=	CLI for standing up CloudFoundry or Concourse on an IAAS

LICENSE=	APACHE20

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

USES=		go tar:xz

GO_PKGNAME=	github.com/cloudfoundry/bosh-bootloader
GO_TARGET=	github.com/cloudfoundry/bosh-bootloader/bbl

PLIST_FILES=	bin/bbl

post-patch:
	${REINPLACE_CMD} -E -e 's|(Version = )"dev"|\1"${PORTVERSION}"|' ${WRKSRC}/bbl/main.go

.include <bsd.port.mk>
