https://github.com/imsnif/bandwhich

bandwhich v0.17.0
Terminal bandwidth utilization tool 

rust

ca-certificates.tcz is installed 
sudo mkdir -p /etc/ssl/
sudo ln -s /usr/local/etc/ssl/certs /etc/ssl/certs

install latest rust compiler:
    # https://www.rust-lang.org/tools/install
    # reference: https://github.com/rust-lang/rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Development dependencies:
tce-load -i compiletc automake cmake bash yasm gettext-dev coreutils groff pkg-config pcre-dev liblzma-dev intltool

Building on a Unix-like system

Make sure you have installed the dependencies:
    g++ 5.1 or later or clang++ 3.5 or later
    python 3 or 2.7
    GNU make 3.81 or later
    cmake 3.4.3 or later
    curl
    git
    ssl which comes in libssl-dev or openssl-devel
    pkg-config if you are compiling on Linux and targeting Linux
    fontconfig-dev

source $HOME/.cargo/env

git clone https://github.com/imsnif/bandwhich.git

Development dependencies:

cd bandwhich

    ?? release.sh (commenting out the non-Linux builds)
    # not these usual rust methods
    # cargo build  (from dir with Cargo.toml)
cargo install --path .

find ./squashfs-root -exec touch -m --reference=./squashfs-root/usr/local/bin/bandwhich {} +

mksquashfs ./squashfs-root ./bandwhich.tcz -noappend -no-xattrs
mksquashfs ./squashfs-root ./bandwhich-doc.tcz -noappend -no-xattrs

test with
base norestore
tce-load -i graphics-KERNEL.tcz Xorg-7.7.tcz aterm.tcz flwm.tcz wbar.tcz 

Runtime dependencies: bandwhich.tcz.dep
none

submitqc --color --libs --fix --strip ./bandwhich.tcz
submitqc --color --libs --fix --strip ./bandwhich-doc.tcz

# get the extension files dates the same as tcz
for file in bandwhich.tcz; do touch --no-create --reference=./squashfs-root/usr/local/bin/bandwhich $file; done
for file in bandwhich.tcz.*; do touch --no-create --reference=bandwhich.tcz $file; done
for file in bandwhich-doc.tcz.*; do touch --no-create --reference=bandwhich-doc.tcz $file; done

# set the permissions
for file in bandwhich.*; do chmod 666 $file; done
for file in bandwhich-doc.*; do chmod 666 $file; done

#tar all necessary and optional files, example:
tar cvzf ./bandwhich.tar.gz ./bandwhich/
tar cvzf ./bandwhich-doc.tar.gz ./bandwhich-doc/

save this file with name compile_bandwhich
