From owner-svn-ports-all@freebsd.org Wed Nov 13 21:43:56 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5282F1BC9F3; Wed, 13 Nov 2019 21:43:56 +0000 (UTC) (envelope-from dmgk@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47CymX1SX0z48Zy; Wed, 13 Nov 2019 21:43:56 +0000 (UTC) (envelope-from dmgk@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 156C61E52C; Wed, 13 Nov 2019 21:43:56 +0000 (UTC) (envelope-from dmgk@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xADLhtUM071182; Wed, 13 Nov 2019 21:43:55 GMT (envelope-from dmgk@FreeBSD.org) Received: (from dmgk@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xADLhtNM071180; Wed, 13 Nov 2019 21:43:55 GMT (envelope-from dmgk@FreeBSD.org) Message-Id: <201911132143.xADLhtNM071180@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dmgk set sender to dmgk@FreeBSD.org using -f From: Dmitri Goutnik Date: Wed, 13 Nov 2019 21:43:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r517390 - head/net-mgmt/prometheus2 X-SVN-Group: ports-head X-SVN-Commit-Author: dmgk X-SVN-Commit-Paths: head/net-mgmt/prometheus2 X-SVN-Commit-Revision: 517390 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2019 21:43:56 -0000 Author: dmgk Date: Wed Nov 13 21:43:55 2019 New Revision: 517390 URL: https://svnweb.freebsd.org/changeset/ports/517390 Log: net-mgmt/prometheus2: Add missing frontend files Pull in pre-compiled assets from the ports-assets/net-mgmt_prometheus2 GitHub repository and use them when compiling Prometheus, enabling the new UI to function properly. While here, remove GO_PKGNAME which is not needed with USES=go:modules. PR: 241925 Submitted by: David O'Rourke (maintainer) Approved by: tz (mentor, implicit) Modified: head/net-mgmt/prometheus2/Makefile head/net-mgmt/prometheus2/distinfo Modified: head/net-mgmt/prometheus2/Makefile ============================================================================== --- head/net-mgmt/prometheus2/Makefile Wed Nov 13 21:41:51 2019 (r517389) +++ head/net-mgmt/prometheus2/Makefile Wed Nov 13 21:43:55 2019 (r517390) @@ -3,6 +3,7 @@ PORTNAME= prometheus DISTVERSIONPREFIX= v DISTVERSION= 2.14.0 +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= dor.bsd@xm0.uk @@ -12,11 +13,12 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules gmake + USE_GITHUB= yes +GH_TUPLE= ports-assets:net-mgmt_prometheus2:${DISTVERSIONFULL}:assets + USE_RC_SUBR= prometheus -GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} - OPTIONS_DEFINE= DOCS PROMETHEUS_USER?= prometheus @@ -57,12 +59,17 @@ LD_FLAG_STRING= -s \ ${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \ ${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER} -GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}" +GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}" -tags netgo,builtinassets + # A tsdb binary already exists in databases/opentsdb. Rename ours to # avoid issues. GO_TARGET= ./cmd/prometheus \ ./cmd/promtool \ ./tsdb/cmd/tsdb:promtsdb + +post-patch: + @${LN} -s ${WRKSRC_assets}/web/ui/assets_vfsdata.go \ + ${WRKSRC}/web/ui/assets_vfadata.go post-install: ${INSTALL_DATA} \ Modified: head/net-mgmt/prometheus2/distinfo ============================================================================== --- head/net-mgmt/prometheus2/distinfo Wed Nov 13 21:41:51 2019 (r517389) +++ head/net-mgmt/prometheus2/distinfo Wed Nov 13 21:43:55 2019 (r517390) @@ -1,3 +1,5 @@ -TIMESTAMP = 1573508793 +TIMESTAMP = 1573669930 SHA256 (prometheus-prometheus-v2.14.0_GH0.tar.gz) = 5c40de1961997996ef5b59561a78116a9548235bc77305c05f214b6319a0284d SIZE (prometheus-prometheus-v2.14.0_GH0.tar.gz) = 12755125 +SHA256 (ports-assets-net-mgmt_prometheus2-v2.14.0_GH0.tar.gz) = b1ee6c5b77d5e88074726e1fe96c6321ad16410a0331cb2d033eeff815da441e +SIZE (ports-assets-net-mgmt_prometheus2-v2.14.0_GH0.tar.gz) = 5077609