Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2016 17:51:23 -0400
From:      Kris Moore <kris@ixsystems.com>
To:        Mathieu Arnold <mat@FreeBSD.org>, Kris Moore <kmoore@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, John Hixson <john@pcbsd.org>
Subject:   Re: svn commit: r418850 - in head/sysutils: . consul-alerts consul-alerts/files
Message-ID:  <5eb32bca-0cdb-dbd8-b171-25fde2a3c7bf@ixsystems.com>
In-Reply-To: <EDEA863EC52707246802C0BF@atuin.in.mat.cc>
References:  <201607201953.u6KJrEHl077436@repo.freebsd.org> <EDEA863EC52707246802C0BF@atuin.in.mat.cc>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/20/2016 17:47, Mathieu Arnold wrote:
> +--On 20 juillet 2016 19:53:14 +0000 Kris Moore <kmoore@FreeBSD.org> wrote:
> | +
> | +BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go
> | +
> | +post-patch:
> | +	@${MKDIR} ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts
> | +.for src in .buildkite .buildkite-release .gitignore .travis.yml \
> | +	check-handler.go consul consul-alerts.go Dockerfile \
> | +	event-handler.go Godeps health-handler.go leader-election.go \
> | +	LICENSE Makefile notifier provision README.md send-notifs.go \
> | +	Vagrantfile watchers.go
> | +	@${MV} ${WRKSRC}/${src} \
> | +		${WRKSRC}/src/github.com/AcalephStorage/consul-alerts
> | +.endfor
> | +
> | +do-build:
> | +	@cd ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts; \
> | +		${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
> | +		-ldflags "-X main.GitDescribe=v${PORTVERSION}" -o bin/consul-alerts
> | +
> | +do-install:
> | +	${INSTALL_PROGRAM}
> | ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts/bin/consul-alerts
> | ${STAGEDIR}${PREFIX}/bin/consul-alerts +
>
> Unless I'm mistaken, all this is done (if differently) when you USES=go.
>
> https://www.freebsd.org/doc/en/books/porters-handbook/uses-go.html
>

I think we copied how the original sysutils/consul did the go build.
However if that is accurate it does sound a lot easier. We'll give that
a whirl and see.

Thanks for the heads up!

-- 
Kris Moore
iXsystems
Enterprise Storage & Servers Driven By Open Source




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5eb32bca-0cdb-dbd8-b171-25fde2a3c7bf>