svn commit: r427898 - head/net-mgmt/telegraf

Palle Girgensohn girgen at FreeBSD.org
Mon Dec 5 14:16:43 UTC 2016


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 at 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}


More information about the svn-ports-head mailing list