wok-current rev 25371

updated tmux-mem-cpu-load (3.4.0 -> 3.6.0)
author Hans-G?nter Theisgen
date Fri Jul 29 14:34:07 2022 +0100 (2022-07-29)
parents 03bcf02499ab
children f4b0d727708e
files tmux-mem-cpu-load/description.txt tmux-mem-cpu-load/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tmux-mem-cpu-load/description.txt	Fri Jul 29 14:34:07 2022 +0100
     1.3 @@ -0,0 +1,9 @@
     1.4 +A simple, lightweight program provided for system monitoring in the
     1.5 +status line of tmux.
     1.6 +
     1.7 +The memory monitor displays the used and available memory.
     1.8 +
     1.9 +The CPU usage monitor outputs a percent CPU usage over all processors.
    1.10 +It also displays a textual bar graph of the current percent usage.
    1.11 +
    1.12 +The system load average is also displayed.
     2.1 --- a/tmux-mem-cpu-load/receipt	Fri Jul 29 14:23:40 2022 +0100
     2.2 +++ b/tmux-mem-cpu-load/receipt	Fri Jul 29 14:34:07 2022 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="tmux-mem-cpu-load"
     2.7 -VERSION="3.4.0"
     2.8 +VERSION="3.6.0"
     2.9  CATEGORY="utilities"
    2.10  SHORT_DESC="CPU, RAM, and load monitor for use with tmux."
    2.11  MAINTAINER="paul@slitaz.org"
    2.12 @@ -23,7 +23,10 @@
    2.13  # Rules to configure and make the package.
    2.14  compile_rules()
    2.15  {
    2.16 -	cmake . -DCMAKE_INSTALL_PREFIX=/usr
    2.17 +	mkdir	_build &&
    2.18 +	cd	_build &&
    2.19 +	cmake	..				\
    2.20 +		-D CMAKE_INSTALL_PREFIX=/usr &&
    2.21  	make &&
    2.22  	make install
    2.23  }
    2.24 @@ -34,7 +37,7 @@
    2.25  	mkdir -p $fs/usr
    2.26  	mkdir -p $fs/etc/skel
    2.27  
    2.28 -	cp -a $install/usr/bin $fs/usr
    2.29 +	cp -a $install/usr/bin	$fs/usr
    2.30  	cat >> $fs/etc/skel/.tmux.conf << EOT
    2.31  # tmux-mem-cpu-load
    2.32  set -g status-interval 2
    2.33 @@ -46,9 +49,10 @@
    2.34  {
    2.35  	for i in $(ls "$1/home" 2> /dev/null)
    2.36  	  do
    2.37 -		grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
    2.38 +		grep -qs "tmux-mem-cpu-load"	"$1/home/$i/.tmux.conf" &&
    2.39 +		continue
    2.40  		echo -n "Checking for .tmux.conf for $i ..."
    2.41 -		cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
    2.42 +		cp -a "$1/etc/skel/.tmux.conf"	"$1/home/$i/"
    2.43  		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
    2.44  		status
    2.45  	  done