svn commit: r418850 - in head/sysutils: . consul-alerts consul-alerts/files

Kris Moore kris at ixsystems.com
Wed Jul 20 21:51:30 UTC 2016


On 07/20/2016 17:47, Mathieu Arnold wrote:
> +--On 20 juillet 2016 19:53:14 +0000 Kris Moore <kmoore at 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



More information about the svn-ports-all mailing list