Page MenuHomeFreeBSD

D10423.diff
No OneTemporary

D10423.diff

Index: head/net-mgmt/prometheus/Makefile
===================================================================
--- head/net-mgmt/prometheus/Makefile
+++ head/net-mgmt/prometheus/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= prometheus
-PORTVERSION= 1.5.2
+PORTVERSION= 1.6.1
DISTVERSIONPREFIX= v
CATEGORIES= net-mgmt
@@ -21,11 +21,13 @@
USERS= prometheus
GROUPS= prometheus
-STRIP= # stripping can break go binaries
-
+LD_FLAG_STRING= ${GO_PKGNAME}/vendor/github.com/prometheus/common/version.
do-build:
- (cd ${GO_WRKSRC}/cmd/prometheus ; ${SETENV} ${GO_ENV} go install)
- (cd ${GO_WRKSRC}/cmd/promtool ; ${SETENV} ${GO_ENV} go install)
+ (cd ${GO_WRKSRC}/cmd/prometheus ; ${SETENV} ${GO_ENV} go install -ldflags \
+ "-s -X ${LD_FLAG_STRING}.Version=${PORTVERSION}")
+
+ (cd ${GO_WRKSRC}/cmd/promtool ; ${SETENV} ${GO_ENV} go install -ldflags \
+ "-s -X ${LD_FLAG_STRING}.Version=${PORTVERSION}")
do-install:
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/prometheus ${STAGEDIR}${PREFIX}/bin
Index: head/net-mgmt/prometheus/distinfo
===================================================================
--- head/net-mgmt/prometheus/distinfo
+++ head/net-mgmt/prometheus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1486719210
-SHA256 (prometheus-prometheus-v1.5.2_GH0.tar.gz) = c4881cc305263cc8da434be69a20aa039386d4feab5e58f8b89a60bfe8b556ac
-SIZE (prometheus-prometheus-v1.5.2_GH0.tar.gz) = 5183537
+TIMESTAMP = 1492658004
+SHA256 (prometheus-prometheus-v1.6.1_GH0.tar.gz) = ecc9ce94fce45994c23b76eb0c5acbb1b942513be601872c8cd74d0821450c5e
+SIZE (prometheus-prometheus-v1.6.1_GH0.tar.gz) = 5220870
Index: head/net-mgmt/prometheus/files/prometheus.in
===================================================================
--- head/net-mgmt/prometheus/files/prometheus.in
+++ head/net-mgmt/prometheus/files/prometheus.in
@@ -44,7 +44,7 @@
command_args="-p ${pidfile} /usr/bin/env ${procname} \
-config.file=${prometheus_config} \
-storage.local.path=${prometheus_data_dir} \
- ${prometheus_args} > ${prometheus_log_file} 2>&1"
+ ${prometheus_args} >> ${prometheus_log_file} 2>&1"
start_precmd=prometheus_startprecmd

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 15, 9:20 AM (27 m, 41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28735482
Default Alt Text
D10423.diff (2 KB)

Event Timeline