Date: Mon, 5 Dec 2016 14:16:42 +0000 (UTC) From: Palle Girgensohn <girgen@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427898 - head/net-mgmt/telegraf Message-ID: <201612051416.uB5EGgY0023501@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: girgen Date: Mon Dec 5 14:16:42 2016 New Revision: 427898 URL: https://svnweb.freebsd.org/changeset/ports/427898 Log: Add telegraf version when compiling Suggested by: Vivek Khera Modified: head/net-mgmt/telegraf/Makefile Modified: head/net-mgmt/telegraf/Makefile ============================================================================== --- head/net-mgmt/telegraf/Makefile Mon Dec 5 14:15:13 2016 (r427897) +++ head/net-mgmt/telegraf/Makefile Mon Dec 5 14:16:42 2016 (r427898) @@ -3,6 +3,7 @@ PORTNAME= telegraf DISTVERSION= 1.1.1 +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= girgen@FreeBSD.org @@ -214,7 +215,8 @@ post-patch: ${MV} ${WRKSRC_yaml} ${WRKSRC}/src/gopkg.in/yaml.v2 do-build: - @cd ${WRKSRC}/src/github.com/influxdata/${PORTNAME} && ${SETENV} GOPATH=${WRKSRC} go install ./... + @cd ${WRKSRC}/src/github.com/influxdata/${PORTNAME} && \ + ${SETENV} GOPATH=${WRKSRC} go install -ldflags "-X main.version=${DISTVERSION}" ./... do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612051416.uB5EGgY0023501>