From owner-svn-ports-all@freebsd.org Tue Mar 6 11:50:14 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D755EF27BA9; Tue, 6 Mar 2018 11:50:13 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8206772322; Tue, 6 Mar 2018 11:50:13 +0000 (UTC) (envelope-from girgen@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 7D00E126CA; Tue, 6 Mar 2018 11:50:13 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w26BoDXj040219; Tue, 6 Mar 2018 11:50:13 GMT (envelope-from girgen@FreeBSD.org) Received: (from girgen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w26BoCDA040212; Tue, 6 Mar 2018 11:50:12 GMT (envelope-from girgen@FreeBSD.org) Message-Id: <201803061150.w26BoCDA040212@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: girgen set sender to girgen@FreeBSD.org using -f From: Palle Girgensohn Date: Tue, 6 Mar 2018 11:50:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463711 - in head/databases: . pgmetrics pgmetrics/files X-SVN-Group: ports-head X-SVN-Commit-Author: girgen X-SVN-Commit-Paths: in head/databases: . pgmetrics pgmetrics/files X-SVN-Commit-Revision: 463711 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.25 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: Tue, 06 Mar 2018 11:50:14 -0000 Author: girgen Date: Tue Mar 6 11:50:12 2018 New Revision: 463711 URL: https://svnweb.freebsd.org/changeset/ports/463711 Log: Add new port datagbases/pgmetrics This port easily collect and report PostgreSQL metrics for scripting, automation and troubleshooting. Added: head/databases/pgmetrics/ head/databases/pgmetrics/Makefile (contents, props changed) head/databases/pgmetrics/distinfo (contents, props changed) head/databases/pgmetrics/files/ head/databases/pgmetrics/files/patch-cmd_pgmetrics_system__freebsd.go (contents, props changed) head/databases/pgmetrics/pkg-descr (contents, props changed) head/databases/pgmetrics/pkg-plist (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Tue Mar 6 11:47:37 2018 (r463710) +++ head/databases/Makefile Tue Mar 6 11:50:12 2018 (r463711) @@ -592,6 +592,7 @@ SUBDIR += pgloader SUBDIR += pgloader3 SUBDIR += pglogical + SUBDIR += pgmetrics SUBDIR += pgmodeler SUBDIR += pgpool SUBDIR += pgpool-II-33 Added: head/databases/pgmetrics/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pgmetrics/Makefile Tue Mar 6 11:50:12 2018 (r463711) @@ -0,0 +1,28 @@ +# Created by: Palle Girgensohn +# $FreeBSD$ + +PORTNAME= pgmetrics +PORTVERSION= 1.1.0 +DISTVERSIONPREFIX=v +CATEGORIES= databases + +MAINTAINER= girgen@FreeBSD.org +COMMENT= Collect and display info & stats from a running PostgreSQL server + +LICENSE= APACHE20 + +USE_GITHUB= yes +GH_ACCOUNT= rapidloop + +USES= go +GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} + +BUILD_AS_NON_ROOT=yes + +do-build: + @cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build ./cmd/pgmetrics + +do-install: + @cd ${GO_WRKSRC}; ${INSTALL} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include Added: head/databases/pgmetrics/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pgmetrics/distinfo Tue Mar 6 11:50:12 2018 (r463711) @@ -0,0 +1,3 @@ +TIMESTAMP = 1520334659 +SHA256 (rapidloop-pgmetrics-v1.1.0_GH0.tar.gz) = 8add03f94ff84e597bc16e750279744bc8913de5acc063683ef0e282ae870b93 +SIZE (rapidloop-pgmetrics-v1.1.0_GH0.tar.gz) = 856131 Added: head/databases/pgmetrics/files/patch-cmd_pgmetrics_system__freebsd.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pgmetrics/files/patch-cmd_pgmetrics_system__freebsd.go Tue Mar 6 11:50:12 2018 (r463711) @@ -0,0 +1,24 @@ +--- /dev/null 2018-03-06 12:20:46.000000000 +0100 ++++ cmd/pgmetrics/system_freebsd.go 2018-03-06 12:18:41.362207000 +0100 +@@ -0,0 +1,21 @@ ++/* ++ * Copyright 2018 RapidLoop, Inc. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ ++ ++package main ++ ++func (c *collector) collectSystem(o options) { ++ // Not implemented for FreeBSD yet. ++} Added: head/databases/pgmetrics/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pgmetrics/pkg-descr Tue Mar 6 11:50:12 2018 (r463711) @@ -0,0 +1,4 @@ +pgmetrics collects and displays various information and statistics from a +running PostgreSQL server to aid in troubleshooting, monitoring and automation. + +WWW: https://pgmetrics.io/ Added: head/databases/pgmetrics/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pgmetrics/pkg-plist Tue Mar 6 11:50:12 2018 (r463711) @@ -0,0 +1 @@ +bin/pgmetrics