pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/btop



Module Name:    pkgsrc
Committed By:   fox
Date:           Sun Oct  6 10:43:17 UTC 2024

Added Files:
        pkgsrc/sysutils/btop: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/btop/files: btop.1
        pkgsrc/sysutils/btop/patches: patch-Makefile

Log Message:
Import of btop++ v1.4.0 as sysutils/btop

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/btop/DESCR \
    pkgsrc/sysutils/btop/Makefile pkgsrc/sysutils/btop/PLIST \
    pkgsrc/sysutils/btop/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/btop/files/btop.1
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/btop/patches/patch-Makefile

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

Added files:

Index: pkgsrc/sysutils/btop/DESCR
diff -u /dev/null pkgsrc/sysutils/btop/DESCR:1.1
--- /dev/null   Sun Oct  6 10:43:17 2024
+++ pkgsrc/sysutils/btop/DESCR  Sun Oct  6 10:43:17 2024
@@ -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
Index: pkgsrc/sysutils/btop/Makefile
diff -u /dev/null pkgsrc/sysutils/btop/Makefile:1.1
--- /dev/null   Sun Oct  6 10:43:17 2024
+++ pkgsrc/sysutils/btop/Makefile       Sun Oct  6 10:43:17 2024
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2024/10/06 10:43:17 fox Exp $
+
+DISTNAME=      btop-1.4.0
+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
+
+USE_LANGUAGES= c c++
+USE_TOOLS+=    gmake
+
+USE_CXX_FEATURES+=     c++20
+
+INSTALLATION_DIRS=     ${PKGMANDIR}/man1
+
+CXXFLAGS+=     -DNDEBUG
+MAKE_ENV+=     STRIP=true VERBOSE=true
+
+post-extract:
+       ${CHMOD} -R g-w ${WRKSRC}
+
+post-build:
+       ${CP} ${FILESDIR}/btop.1 ${WRKDIR}/btop.1
+
+post-install:
+       ${INSTALL_MAN} ${WRKDIR}/btop.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/btop/PLIST
diff -u /dev/null pkgsrc/sysutils/btop/PLIST:1.1
--- /dev/null   Sun Oct  6 10:43:17 2024
+++ pkgsrc/sysutils/btop/PLIST  Sun Oct  6 10:43:17 2024
@@ -0,0 +1,38 @@
+@comment $NetBSD: PLIST,v 1.1 2024/10/06 10:43:17 fox Exp $
+bin/btop
+man/man1/btop.1
+share/applications/btop.desktop
+share/btop/README.md
+share/btop/themes/HotPurpleTrafficLight.theme
+share/btop/themes/adapta.theme
+share/btop/themes/adwaita.theme
+share/btop/themes/ayu.theme
+share/btop/themes/dracula.theme
+share/btop/themes/dusklight.theme
+share/btop/themes/elementarish.theme
+share/btop/themes/everforest-dark-hard.theme
+share/btop/themes/everforest-dark-medium.theme
+share/btop/themes/flat-remix-light.theme
+share/btop/themes/flat-remix.theme
+share/btop/themes/greyscale.theme
+share/btop/themes/gruvbox_dark.theme
+share/btop/themes/gruvbox_dark_v2.theme
+share/btop/themes/gruvbox_light.theme
+share/btop/themes/gruvbox_material_dark.theme
+share/btop/themes/horizon.theme
+share/btop/themes/kyli0x.theme
+share/btop/themes/matcha-dark-sea.theme
+share/btop/themes/monokai.theme
+share/btop/themes/night-owl.theme
+share/btop/themes/nord.theme
+share/btop/themes/onedark.theme
+share/btop/themes/paper.theme
+share/btop/themes/phoenix-night.theme
+share/btop/themes/solarized_dark.theme
+share/btop/themes/solarized_light.theme
+share/btop/themes/tokyo-night.theme
+share/btop/themes/tokyo-storm.theme
+share/btop/themes/tomorrow-night.theme
+share/btop/themes/whiteout.theme
+share/icons/hicolor/48x48/apps/btop.png
+share/icons/hicolor/scalable/apps/btop.svg
Index: pkgsrc/sysutils/btop/distinfo
diff -u /dev/null pkgsrc/sysutils/btop/distinfo:1.1
--- /dev/null   Sun Oct  6 10:43:17 2024
+++ pkgsrc/sysutils/btop/distinfo       Sun Oct  6 10:43:17 2024
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/10/06 10:43:17 fox Exp $
+
+BLAKE2s (btop-1.4.0.tar.gz) = 88ac532097420f31d44f89afbfb18e9cbd1bf16686c32f736bb88e25b34687c1
+SHA512 (btop-1.4.0.tar.gz) = 7b7c63daf68192893ae4533c04ea70dcd6f253e188b1c842f2ebebac0b28e51431edef6ccfce5b25b3adbd5b2b637fc832bce7d5d64d664c2bf5c4672be75c8f
+Size (btop-1.4.0.tar.gz) = 1239400 bytes
+SHA1 (patch-Makefile) = 87cd9333e786899109df3a931c6d0e99fbd017de

Index: pkgsrc/sysutils/btop/files/btop.1
diff -u /dev/null pkgsrc/sysutils/btop/files/btop.1:1.1
--- /dev/null   Sun Oct  6 10:43:17 2024
+++ pkgsrc/sysutils/btop/files/btop.1   Sun Oct  6 10:43:17 2024
@@ -0,0 +1,56 @@
+.\" -*- mode: troff; coding: utf-8 -*-
+.TH "btop" "1" "\(lqJanuary 4 2024\(rq" "" "User Commands"
+.SH
+NAME
+.LP
+btop - Resource monitor that shows usage and stats for processor, memory, disks, network, and processes.
+.SH
+SYNOPSIS
+.LP
+\fBbtop\fR [\fB-lc\fR] [\fB-t\fR | \fB+t\fR] [\fB-p\fR \fIid\fR] [\fB--utf-force\fR]
+[\fB--debug\fR] [{\fB-h\fR | \fB--help\fR} | {\fB-v\fR | \fB--version\fR}]
+.SH
+DESCRIPTION
+.LP
+\fBbtop\fR is a program that shows usage and stats for processor, memory, disks, network, and processes.
+.SH
+OPTIONS
+.LP
+The program follows the usual GNU command line syntax, with long options
+starting with two dashes (\(oq-\(cq). A summary of options is included below.
+.TP 3
+\fB-lc\fR, \fB--low-color\fR
+Disable truecolor, converts 24-bit colors to 256-color.
+.TP 3
+\fB-t\fR, \fB--tty_on\fR
+Force (ON) tty mode, max 16 colors and tty-friendly graph symbols.
+.TP 3
+\fB+t\fR, \fB--tty_off\fR
+Force (OFF) tty mode.
+.TP 3
+\fB-p\fR, \fB--preset \f(BIid\fB\fR
+Start with preset, integer value between 0-9.
+.TP 3
+\fB--utf-force\fR
+Force start even if no UTF-8 locale was detected.
+.TP 3
+\fB--debug\fR
+Start in DEBUG mode: shows microsecond timer for information collect and screen draw functions and sets loglevel to DEBUG.
+.TP 3
+\fB-h\fR, \fB--help\fR
+Show summary of options.
+.TP 3
+\fB-v\fR, \fB--version\fR
+Show version of program.
+.SH
+BUGS
+.LP
+The upstream bug tracker can be found at \fIhttps://github.com/aristocratos/btop/issues\fR.
+.SH
+SEE ALSO
+.LP
+\fBtop\fR(1), \fBhtop\fR(1)
+.SH
+AUTHOR
+.LP
+\fBbtop\fR was written by Jakob P. Liljenberg a.k.a. \(lqAristocratos\(rq.

Index: pkgsrc/sysutils/btop/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/btop/patches/patch-Makefile:1.1
--- /dev/null   Sun Oct  6 10:43:17 2024
+++ pkgsrc/sysutils/btop/patches/patch-Makefile Sun Oct  6 10:43:17 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-Makefile,v 1.1 2024/10/06 10:43:17 fox Exp $
+
+Fix the man page path.
+
+--- Makefile.orig      2024-10-06 10:22:47.718265628 +0000
++++ Makefile
+@@ -343,9 +343,9 @@ install:
+       @mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
+       @cp -p Img/icon.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg
+ ifneq ($(wildcard btop.1),)
+-      @printf "\033[1;92mInstalling man page to: \033[1;97m$(DESTDIR)$(PREFIX)/share/man/man1/btop.1\n"
+-      @mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
+-      @cp -p btop.1 $(DESTDIR)$(PREFIX)/share/man/man1/btop.1
++      @printf "\033[1;92mInstalling man page to: \033[1;97m$(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1/btop.1\n"
++      @mkdir -p $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
++      @cp -p btop.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1/btop.1
+ endif
+ 
+ #? Set SUID bit for btop as $SU_USER in $SU_GROUP
+@@ -374,8 +374,8 @@ uninstall:
+       @rm -rfv $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/btop.png
+       @printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg\033[0m\n"
+       @rm -rfv $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg
+-      @printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/share/man/man1/btop.1\033[0m\n"
+-      @rm -rfv $(DESTDIR)$(PREFIX)/share/man/man1/btop.1
++      @printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1/btop.1\033[0m\n"
++      @rm -rfv $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1/btop.1
+ 
+ #? Pull in dependency info for *existing* .o files
+ -include $(OBJECTS:.$(OBJEXT)=.$(DEPEXT))



Home | Main Index | Thread Index | Old Index