svn commit: r418850 - in head/sysutils: . consul-alerts consul-alerts/files
Mathieu Arnold
mat at FreeBSD.org
Wed Jul 20 21:47:35 UTC 2016
+--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
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20160720/c39f9915/attachment.sig>
More information about the svn-ports-all
mailing list