diff options
author | girgen <girgen@FreeBSD.org> | 2016-12-05 22:16:42 +0800 |
---|---|---|
committer | girgen <girgen@FreeBSD.org> | 2016-12-05 22:16:42 +0800 |
commit | b3bac1e49b20a7b25f54ca8d7356ea3f6815d93e (patch) | |
tree | 88ff1228c024238211a91ab3da35f036a4c04b07 /net-mgmt/telegraf | |
parent | f95c832a36f47217ff46ef1d8cf9c090ae4e6308 (diff) | |
download | freebsd-ports-gnome-b3bac1e49b20a7b25f54ca8d7356ea3f6815d93e.tar.gz freebsd-ports-gnome-b3bac1e49b20a7b25f54ca8d7356ea3f6815d93e.tar.zst freebsd-ports-gnome-b3bac1e49b20a7b25f54ca8d7356ea3f6815d93e.zip |
Add telegraf version when compiling
Suggested by: Vivek Khera
Diffstat (limited to 'net-mgmt/telegraf')
-rw-r--r-- | net-mgmt/telegraf/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net-mgmt/telegraf/Makefile b/net-mgmt/telegraf/Makefile index 8bde48ef5417..7f4ce52d4cda 100644 --- a/net-mgmt/telegraf/Makefile +++ b/net-mgmt/telegraf/Makefile @@ -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} |