aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-10-08 13:49:09 +0800
committerTobias Kortkamp <tobik@FreeBSD.org>2019-10-08 13:49:09 +0800
commit9ad96b413659782e50ce4f6f3babe8795a21b543 (patch)
tree01cca0be9a538942cf1c27d9eb73741006795b4c /net-mgmt
parent60f9e64a8942fcfa33a1fdce05c2300b956ce6a2 (diff)
downloadfreebsd-ports-gnome-9ad96b413659782e50ce4f6f3babe8795a21b543.tar.gz
freebsd-ports-gnome-9ad96b413659782e50ce4f6f3babe8795a21b543.tar.zst
freebsd-ports-gnome-9ad96b413659782e50ce4f6f3babe8795a21b543.zip
net-mgmt/prometheus2: Rename tsdb using GO_TARGET
PR: 241065
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/prometheus2/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/net-mgmt/prometheus2/Makefile b/net-mgmt/prometheus2/Makefile
index 1f290a2d5432..4242e4159997 100644
--- a/net-mgmt/prometheus2/Makefile
+++ b/net-mgmt/prometheus2/Makefile
@@ -58,9 +58,11 @@ LD_FLAG_STRING= -s \
${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"
+# A tsdb binary already exists in databases/opentsdb. Rename ours to
+# avoid issues.
GO_TARGET= ./cmd/prometheus \
./cmd/promtool \
- ./tsdb/cmd/tsdb
+ ./tsdb/cmd/tsdb:promtsdb
post-install:
${INSTALL_DATA} \
@@ -76,9 +78,6 @@ post-install:
( cd ${WRKSRC}/consoles \
&& ${COPYTREE_SHARE} . ${STAGEDIR}${PROMETHEUS_CONSOLES_DIR} \
)
- # A tsdb binary already exists in databases/opentsdb. Rename ours to
- # avoid issues.
- mv ${STAGEDIR}${LOCALBASE}/bin/tsdb ${STAGEDIR}${LOCALBASE}/bin/promtsdb
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}