pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/tmux-mem-cpu-load



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jan 19 13:58:16 UTC 2023

Added Files:
        pkgsrc/sysutils/tmux-mem-cpu-load: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/tmux-mem-cpu-load/patches: patch-netbsd_cpu.cc

Log Message:
sysutils/tmux-mem-cpu-load: import tmux-mem-cpu-load-3.6.0

A simple, lightweight program provided for system monitoring in
the status line of tmux.

The memory monitor displays the used and available memory.

The CPU usage monitor outputs a percent CPU usage over all processors.
It also displays a textual bar graph of the current percent usage.

The system load average is also displayed.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/tmux-mem-cpu-load/DESCR \
    pkgsrc/sysutils/tmux-mem-cpu-load/Makefile \
    pkgsrc/sysutils/tmux-mem-cpu-load/PLIST \
    pkgsrc/sysutils/tmux-mem-cpu-load/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/tmux-mem-cpu-load/patches/patch-netbsd_cpu.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/tmux-mem-cpu-load/DESCR
diff -u /dev/null pkgsrc/sysutils/tmux-mem-cpu-load/DESCR:1.1
--- /dev/null   Thu Jan 19 13:58:16 2023
+++ pkgsrc/sysutils/tmux-mem-cpu-load/DESCR     Thu Jan 19 13:58:16 2023
@@ -0,0 +1,9 @@
+A simple, lightweight program provided for system monitoring in
+the status line of tmux.
+
+The memory monitor displays the used and available memory.
+
+The CPU usage monitor outputs a percent CPU usage over all processors.
+It also displays a textual bar graph of the current percent usage.
+
+The system load average is also displayed.
Index: pkgsrc/sysutils/tmux-mem-cpu-load/Makefile
diff -u /dev/null pkgsrc/sysutils/tmux-mem-cpu-load/Makefile:1.1
--- /dev/null   Thu Jan 19 13:58:16 2023
+++ pkgsrc/sysutils/tmux-mem-cpu-load/Makefile  Thu Jan 19 13:58:16 2023
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2023/01/19 13:58:16 wiz Exp $
+
+DISTNAME=      tmux-mem-cpu-load-3.6.0
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=thewtex/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/thewtex/tmux-mem-cpu-load/
+COMMENT=       CPU, RAM, and load monitor for use with tmux
+LICENSE=       apache-2.0
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/tmux-mem-cpu-load/PLIST
diff -u /dev/null pkgsrc/sysutils/tmux-mem-cpu-load/PLIST:1.1
--- /dev/null   Thu Jan 19 13:58:16 2023
+++ pkgsrc/sysutils/tmux-mem-cpu-load/PLIST     Thu Jan 19 13:58:16 2023
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2023/01/19 13:58:16 wiz Exp $
+bin/tmux-mem-cpu-load
Index: pkgsrc/sysutils/tmux-mem-cpu-load/distinfo
diff -u /dev/null pkgsrc/sysutils/tmux-mem-cpu-load/distinfo:1.1
--- /dev/null   Thu Jan 19 13:58:16 2023
+++ pkgsrc/sysutils/tmux-mem-cpu-load/distinfo  Thu Jan 19 13:58:16 2023
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/01/19 13:58:16 wiz Exp $
+
+BLAKE2s (tmux-mem-cpu-load-3.6.0.tar.gz) = 2fb43d463ce3dcc7a644b560e044dc94b31a4ef859d908f5602801e3eb32b1ea
+SHA512 (tmux-mem-cpu-load-3.6.0.tar.gz) = 491a934d49c4fe75ffbf57919cef4547666ceace03bdff9644e1847938b0d31c4270ed002b0a13580ca1bf4b5d1dff24b8ac2323c8b86a69a21313f74e209a6b
+Size (tmux-mem-cpu-load-3.6.0.tar.gz) = 22935 bytes
+SHA1 (patch-netbsd_cpu.cc) = 560ce5e1f7cdf1bc3412758675ca5207365a80cd

Index: pkgsrc/sysutils/tmux-mem-cpu-load/patches/patch-netbsd_cpu.cc
diff -u /dev/null pkgsrc/sysutils/tmux-mem-cpu-load/patches/patch-netbsd_cpu.cc:1.1
--- /dev/null   Thu Jan 19 13:58:16 2023
+++ pkgsrc/sysutils/tmux-mem-cpu-load/patches/patch-netbsd_cpu.cc       Thu Jan 19 13:58:16 2023
@@ -0,0 +1,21 @@
+$NetBSD: patch-netbsd_cpu.cc,v 1.1 2023/01/19 13:58:16 wiz Exp $
+
+Adapt to signature change.
+
+--- netbsd/cpu.cc.orig 2022-03-03 16:23:14.000000000 +0000
++++ netbsd/cpu.cc
+@@ -26,12 +26,12 @@
+ #include "getsysctl.h"
+ #include "cpu.h"
+ 
+-uint8_t get_cpu_count()
++uint32_t get_cpu_count()
+ {
+   int cpu_count = 0;
+   GETSYSCTL( "hw.ncpu", cpu_count );
+ 
+-  return static_cast<uint8_t>( cpu_count );
++  return static_cast<uint32_t>( cpu_count );
+ }
+ 
+ float cpu_percentage( unsigned int cpu_usage_delay )



Home | Main Index | Thread Index | Old Index