pkgsrc-WIP-changes archive

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

btop: add very incomplete package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Mon Mar 28 23:27:39 2022 +0200
Changeset:	1e4d46577aa8b836255587aadac27440acafe259

Modified Files:
	Makefile
Added Files:
	btop/DESCR
	btop/Makefile
	btop/PLIST
	btop/TODO
	btop/distinfo
	btop/patches/patch-Makefile

Log Message:
btop: add very incomplete package

Needs NetBSD support.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1e4d46577aa8b836255587aadac27440acafe259

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

diffstat:
 Makefile                    |  1 +
 btop/DESCR                  | 18 ++++++++++++++++++
 btop/Makefile               | 18 ++++++++++++++++++
 btop/PLIST                  |  1 +
 btop/TODO                   |  3 +++
 btop/distinfo               |  6 ++++++
 btop/patches/patch-Makefile | 17 +++++++++++++++++
 7 files changed, 64 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 5b2d2a6be4..0dc97c02fe 100644
--- a/Makefile
+++ b/Makefile
@@ -345,6 +345,7 @@ SUBDIR+=	bsnmp
 SUBDIR+=	bss
 SUBDIR+=	bstone
 SUBDIR+=	bsvc
+SUBDIR+=	btop
 SUBDIR+=	btscanner
 SUBDIR+=	bub-n-bros
 SUBDIR+=	budgie-desktop
diff --git a/btop/DESCR b/btop/DESCR
new file mode 100644
index 0000000000..9eb45a68aa
--- /dev/null
+++ b/btop/DESCR
@@ -0,0 +1,18 @@
+Resource monitor that shows usage and stats for processor, memory,
+disks, network and processes.
+
+* Easy to use, with a game inspired menu system.
+* Full mouse support, all buttons with a highlighted key is clickable
+  and mouse scroll works in process list and menu boxes.
+* Fast and responsive UI with UP, DOWN keys process selection.
+* Function for showing detailed stats for selected process.
+* Ability to filter processes.
+* Easy switching between sorting options.
+* Tree view of processes.
+* Send any signal to selected process.
+* UI menu for changing all config file options.
+* Auto scaling graph for network usage.
+* Shows IO activity and speeds for disks
+* Battery meter
+* Selectable symbols for the graphs
+* Custom presets
diff --git a/btop/Makefile b/btop/Makefile
new file mode 100644
index 0000000000..153b12774a
--- /dev/null
+++ b/btop/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	btop-1.2.5
+CATEGORIES=	sysutils
+MASTER_SITES=	${MASTER_SITE_GITHUB:=aristocratos/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/aristocratos/btop
+COMMENT=	Colorful TTY resource monitor
+LICENSE=	apache-2.0
+
+DEPENDS+=	coreutils-[0-9]*:../../sysutils/coreutils
+
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	gmake
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/btop/PLIST b/btop/PLIST
new file mode 100644
index 0000000000..48d96a5493
--- /dev/null
+++ b/btop/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD$
diff --git a/btop/TODO b/btop/TODO
new file mode 100644
index 0000000000..70072d81ac
--- /dev/null
+++ b/btop/TODO
@@ -0,0 +1,3 @@
+Does not compile on NetBSD.
+
+https://github.com/aristocratos/btop/issues/301
diff --git a/btop/distinfo b/btop/distinfo
new file mode 100644
index 0000000000..0c1d668b15
--- /dev/null
+++ b/btop/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (btop-1.2.5.tar.gz) = 744f8b668fb87010a480388ee2987e85a658ab18f98ec6daf45c6872f6eb7c00
+SHA512 (btop-1.2.5.tar.gz) = f881c2f8e85ccf7609ef443b4bec3c20e4f41c9b45171ddc3110a5484bf39cb2c3e4b7eff0a97930fe550d557526cec58b5867d55ed9d75f4a8976f0c92d5d10
+Size (btop-1.2.5.tar.gz) = 971598 bytes
+SHA1 (patch-Makefile) = f5631b29ed8341d90acdc6638cc5db2a5d87f739
diff --git a/btop/patches/patch-Makefile b/btop/patches/patch-Makefile
new file mode 100644
index 0000000000..3dcb064cbe
--- /dev/null
+++ b/btop/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- Makefile.orig	2022-03-05 23:27:23.000000000 +0000
++++ Makefile
+@@ -89,6 +89,12 @@ else ifeq ($(PLATFORM_LC),freebsd)
+ 	SU_GROUP := wheel
+ 	override ADDFLAGS += -lstdc++ -lm -lkvm -ldevstat -Wl,-rpath=/usr/local/lib/gcc11
+ 	export MAKE = gmake
++else ifeq ($(PLATFORM_LC),netbsd)
++	PLATFORM_DIR := freebsd
++	THREADS	:= $(shell getconf NPROCESSORS_ONLN 2>/dev/null || echo 1)
++	SU_GROUP := wheel
++	override ADDFLAGS += -lm
++	export MAKE = gmake
+ else ifeq ($(PLATFORM_LC),macos)
+ 	PLATFORM_DIR := osx
+ 	THREADS	:= $(shell sysctl -n hw.ncpu || echo 1)


Home | Main Index | Thread Index | Old Index