[arch-commits] Commit in prometheus-node-exporter/trunk (PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Wed Apr 24 21:26:08 UTC 2019
Date: Wednesday, April 24, 2019 @ 21:26:06
Author: demize
Revision: 352091
upgpkg: prometheus-node-exporter 0.17.0-3
Modified:
prometheus-node-exporter/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-24 21:25:05 UTC (rev 352090)
+++ PKGBUILD 2019-04-24 21:26:06 UTC (rev 352091)
@@ -2,7 +2,7 @@
pkgname=prometheus-node-exporter
pkgver=0.17.0
-pkgrel=2
+pkgrel=3
pkgdesc='Exporter for machine metrics'
url='https://github.com/prometheus/node_exporter'
@@ -38,7 +38,12 @@
go build \
-gcflags "all=-trimpath=${PWD}" \
-asmflags "all=-trimpath=${PWD}" \
- -ldflags "-extldflags ${LDFLAGS}" \
+ -ldflags "-extldflags ${LDFLAGS} \
+ -X github.com/prometheus/common/version.Version=$pkgver \
+ -X github.com/prometheus/common/version.Revision=$pkgver \
+ -X github.com/prometheus/common/version.Branch=tarball \
+ -X github.com/prometheus/common/version.BuildUser=someone at builder \
+ -X github.com/prometheus/common/version.BuildDate=$SOURCE_DATE_EPOCH" \
.
}
More information about the arch-commits
mailing list