Properly return the version number instead of 'Unknown'.

This commit is contained in:
ajacoutot 2017-01-30 16:59:07 +00:00
parent 4f91ea23e0
commit aa1203c625

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.7 2017/01/30 05:58:14 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2017/01/30 16:59:07 ajacoutot Exp $
COMMENT= service discovery and configuration tool
GH_TAGNAME= v0.7.3
GH_ACCOUNT= hashicorp
GH_PROJECT= consul
REVISION= 0
CATEGORIES= sysutils net
@ -19,6 +20,11 @@ WANTLIB += c pthread
MODULES= lang/go
# go/src/github.com/hashicorp/consul/scripts/build.sh
# go/src/github.com/hashicorp/consul/version/version.go
MODGO_LDFLAGS += -X github.com/hashicorp/consul/version.GitDescribe=${GH_TAGNAME}
MODGO_LDFLAGS += -X github.com/hashicorp/consul/version.VersionPrerelease="" # empty
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/consul
${SUBST_CMD} -c -m 0640 ${FILESDIR}/config.json.in \