From e1ed2cf14957396c32d57fee39076d3e7aa29eee Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 7 Apr 2020 10:27:20 +0000 Subject: [PATCH] New port: graphics/ttyplot ttyplot is a realtime plotting utility for terminal with data input from stdin. It takes data from standard input / UNIX pipeline, most commonly some tool like ping, snmpget, netstat, ifconfig, sar, vmstat, etc., and plots in text mode on a terminal in real time. It supports rate calculation for counters and up to two graphs on a single display using reverse video for the second line. WWW: https://github.com/tenox7/ttyplot --- graphics/Makefile | 1 + graphics/ttyplot/Makefile | 24 ++++++++++++++++++++++++ graphics/ttyplot/distinfo | 3 +++ graphics/ttyplot/pkg-descr | 10 ++++++++++ 4 files changed, 38 insertions(+) create mode 100644 graphics/ttyplot/Makefile create mode 100644 graphics/ttyplot/distinfo create mode 100644 graphics/ttyplot/pkg-descr diff --git a/graphics/Makefile b/graphics/Makefile index a71b02fc9b96..bda056f14f78 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1020,6 +1020,7 @@ SUBDIR += tkpng SUBDIR += togl SUBDIR += ttygif + SUBDIR += ttyplot SUBDIR += tumble SUBDIR += tweeny SUBDIR += ufraw diff --git a/graphics/ttyplot/Makefile b/graphics/ttyplot/Makefile new file mode 100644 index 000000000000..0c536eefd127 --- /dev/null +++ b/graphics/ttyplot/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= ttyplot +DISTVERSION= 1.4 +CATEGORIES= graphics + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Realtime plotting utility for TTY with data input from stdin + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= ncurses +USE_GITHUB= yes +GH_ACCOUNT= tenox7 + +MAKE_ARGS= CFLAGS="${CFLAGS}" + +PLIST_FILES= bin/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/graphics/ttyplot/distinfo b/graphics/ttyplot/distinfo new file mode 100644 index 000000000000..40e1410632bf --- /dev/null +++ b/graphics/ttyplot/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1586254468 +SHA256 (tenox7-ttyplot-1.4_GH0.tar.gz) = 11974754981406d19cfa16865b59770faaf3ade8d909d9a0134dc56e00d29bd4 +SIZE (tenox7-ttyplot-1.4_GH0.tar.gz) = 46922 diff --git a/graphics/ttyplot/pkg-descr b/graphics/ttyplot/pkg-descr new file mode 100644 index 000000000000..bdbff5299d30 --- /dev/null +++ b/graphics/ttyplot/pkg-descr @@ -0,0 +1,10 @@ +ttyplot is a realtime plotting utility for terminal with data input from stdin. + +It takes data from standard input / UNIX pipeline, most commonly some tool like +ping, snmpget, netstat, ifconfig, sar, vmstat, etc., and plots in text mode on +a terminal in real time. + +It supports rate calculation for counters and up to two graphs on a single +display using reverse video for the second line. + +WWW: https://github.com/tenox7/ttyplot