From 90ee067a43d2220b4fc8714c2e89adc4a07090e8 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 14 Dec 2018 03:49:37 +0000 Subject: [PATCH] New port: sysutils/gotop: Terminal based graphical activity monitor inspired by gtop and vtop --- sysutils/Makefile | 1 + sysutils/gotop/Makefile | 34 ++++++++++++++++++++++++++++++++++ sysutils/gotop/distinfo | 11 +++++++++++ sysutils/gotop/pkg-descr | 5 +++++ 4 files changed, 51 insertions(+) create mode 100644 sysutils/gotop/Makefile create mode 100644 sysutils/gotop/distinfo create mode 100644 sysutils/gotop/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index 3bdb7cfdd647..874bb294bf8c 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -448,6 +448,7 @@ SUBDIR += gomplate SUBDIR += google-compute-engine-oslogin SUBDIR += goss + SUBDIR += gotop SUBDIR += gpart SUBDIR += gpte SUBDIR += graffer diff --git a/sysutils/gotop/Makefile b/sysutils/gotop/Makefile new file mode 100644 index 000000000000..d1bdc2588745 --- /dev/null +++ b/sysutils/gotop/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= gotop +DISTVERSION= 1.7.0-4 +DISTVERSIONSUFFIX= -gf608f63 +CATEGORIES= sysutils + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Terminal based graphical activity monitor inspired by gtop and vtop + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/LICENSE + +BUILD_DEPENDS= go:lang/go + +USE_GITHUB= nodefault # the main code is in GH_TUPLE +GH_ACCOUNT= cjbassi +GH_TUPLE= cjbassi:gotop:${DISTVERSIONFULL}:main/src/github.com/cjbassi/gotop \ + cjbassi:termui:e8dd23f:termui/src/github.com/cjbassi/termui \ + docopt:docopt.go:ee0de3b:docopt/src/github.com/docopt/docopt-go \ + shirou:gopsutil:v2.18.11:gopsutil/src/github.com/shirou/gopsutil \ + golang:sys:37707fd:sys/src/golang.org/x/sys +GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} + +do-build: + @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} && \ + ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go install ./... + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/sysutils/gotop/distinfo b/sysutils/gotop/distinfo new file mode 100644 index 000000000000..c4ff05b8ee3c --- /dev/null +++ b/sysutils/gotop/distinfo @@ -0,0 +1,11 @@ +TIMESTAMP = 1544758216 +SHA256 (cjbassi-gotop-1.7.0-4-gf608f63_GH0.tar.gz) = 86742e4a89ce82c701e226ad8b0f16a7635abf340d9b270c364f74fcce8f7168 +SIZE (cjbassi-gotop-1.7.0-4-gf608f63_GH0.tar.gz) = 387339 +SHA256 (cjbassi-termui-e8dd23f_GH0.tar.gz) = 1a26a894587fd9f533d25ff60128c3234ee6a64eb643d21c7983314984ab38e6 +SIZE (cjbassi-termui-e8dd23f_GH0.tar.gz) = 78782 +SHA256 (docopt-docopt.go-ee0de3b_GH0.tar.gz) = 6eb951df9aa0503060e3912fd10f5f592b4453a5f1d5130995db02aa4697374d +SIZE (docopt-docopt.go-ee0de3b_GH0.tar.gz) = 30659 +SHA256 (shirou-gopsutil-v2.18.11_GH0.tar.gz) = 328d044bd4a8898073760c484a0254f5dc1c4b08b5fca4abc63ffbfb383d13c9 +SIZE (shirou-gopsutil-v2.18.11_GH0.tar.gz) = 116115 +SHA256 (golang-sys-37707fd_GH0.tar.gz) = 9a86c90f564594b3f201540d19fb4fb828e1df8af61bb2fa9190a760cba039a7 +SIZE (golang-sys-37707fd_GH0.tar.gz) = 795284 diff --git a/sysutils/gotop/pkg-descr b/sysutils/gotop/pkg-descr new file mode 100644 index 000000000000..a61e2195a6f1 --- /dev/null +++ b/sysutils/gotop/pkg-descr @@ -0,0 +1,5 @@ +gotop is a terminal-based graphical activity monitor inspired by gtop and vtop. + +It shows CPU/Disk/Memory/Network usage and process lists. + +WWW: https://github.com/cjbassi/gotop