Skip to content

Commit

Permalink
www/nginx-prometheus-exporter: Update to 0.9.0
Browse files Browse the repository at this point in the history
* Redirect stdout/stderr to syslog (1)
* Pet portclippy
* Reformat Makefile with portfmt

ChangeLog:	https://github.com/nginxinc/nginx-prometheus-exporter/releases/tag/v0.9.0
PR:		258753
Reported by:	bgdnlp <freebsd.org at neant.ro> (1)
Approved by:	ygy (mentor)
Differential Revision:	https://reviews.freebsd.org/D32547
  • Loading branch information
kworr authored and Yasuhiro Kimura committed Oct 19, 2021
1 parent e2f1240 commit 29cb839
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions www/nginx-prometheus-exporter/Makefile
@@ -1,8 +1,8 @@
# Created by: Jev Björsell <ports@ecadlabs.com>

PORTNAME= nginx-prometheus-exporter
PORTVERSION= 0.8.0
DISTVERSIONPREFIX=v
PORTVERSION= 0.9.0
DISTVERSIONPREFIX= v
CATEGORIES= www

MAINTAINER= arcade@b1t.name
Expand All @@ -15,13 +15,12 @@ USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= nginxinc

PLIST_FILES= bin/${PORTNAME}

USE_RC_SUBR= ${PORTNAME}

LD_FLAG_X_PREFIX= -X main
LD_FLAG_STRING= -s \
${LD_FLAG_X_PREFIX}.version=${PORTVERSION}
LD_FLAG_STRING= -s ${LD_FLAG_X_PREFIX}.version=${PORTVERSION}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"

PLIST_FILES= bin/${PORTNAME}

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions www/nginx-prometheus-exporter/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1592757496
SHA256 (nginxinc-nginx-prometheus-exporter-v0.8.0_GH0.tar.gz) = 04003952d22d3043cdd6eb60aedb382ab0bdaf74ac450fa2a4a927d79ac24e95
SIZE (nginxinc-nginx-prometheus-exporter-v0.8.0_GH0.tar.gz) = 2059700
TIMESTAMP = 1632902223
SHA256 (nginxinc-nginx-prometheus-exporter-v0.9.0_GH0.tar.gz) = ea4fc130c2e19751b4563c819a0641639077f9c300776a1bd7116b56a14f7eca
SIZE (nginxinc-nginx-prometheus-exporter-v0.9.0_GH0.tar.gz) = 2213762
Expand Up @@ -42,7 +42,8 @@ load_rc_config $name
pidfile=/var/run/nginx_prometheus_exporter.pid
command="/usr/sbin/daemon"
procname="%%PREFIX%%/bin/nginx-prometheus-exporter"
command_args="-p ${pidfile} /usr/bin/env ${procname} \
command_args="-f -T ${name} -p ${pidfile} \
/usr/bin/env ${procname} \
--nginx.scrape-uri=${nginx_prometheus_exporter_scrape_uri} \
--web.listen-address=${nginx_prometheus_exporter_listen_address} \
${nginx_prometheus_exporter_args}"
Expand Down

0 comments on commit 29cb839

Please sign in to comment.