svn commit: r463711 - in head/databases: . pgmetrics pgmetrics/files
Palle Girgensohn
girgen at FreeBSD.org
Tue Mar 6 11:50:14 UTC 2018
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 <girgen at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= pgmetrics
+PORTVERSION= 1.1.0
+DISTVERSIONPREFIX=v
+CATEGORIES= databases
+
+MAINTAINER= girgen at 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 <bsd.port.mk>
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
More information about the svn-ports-head
mailing list