bandwhich: initial commit, version 0.20.0

This commit is contained in:
Tim Biermann 2022-05-22 22:58:12 +02:00
parent 672357dba4
commit cfdb0d4107
3 changed files with 32 additions and 0 deletions

7
bandwhich/.footprint Normal file
View File

@ -0,0 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/bandwhich
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rwxr-xr-x root/root usr/share/man/man1/bandwhich.1.gz

5
bandwhich/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3+XZ69QMPFfPe+6z+s9WQt5i2tvYwgBCs04ySe4Nz0xe+jFwp+EIo9Wk4k7H8pmr5X9dJeZ4pho+QEEHvh13Ow8=
SHA256 (Pkgfile) = 85931774184e528d530fdd45cf9fa388936129c2ec037dc60fb87c287470731f
SHA256 (.footprint) = 6401cd9abf02fe6a159364d1ef91be65b6485e68f661aa901dcda8d705cad968
SHA256 (bandwhich-0.20.0.tar.gz) = 4bbf05be32439049edd50bd1e4d5a2a95b0be8d36782e4100732f0cc9f19ba12

20
bandwhich/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: Terminal bandwidth utilization tool
# URL: https://github.com/imsnif/bandwhich
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
name=bandwhich
version=0.20.0
release=1
source=(https://github.com/imsnif/bandwhich/archive/$version/$name-$version.tar.gz)
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo build --release --manifest-path $name-$version/Cargo.toml
install -Dt $PKG/usr/bin $name-$version/target/release/$name
install -Dm 755 $SRC/$name-$version/docs/bandwhich.1 $PKG/usr/share/man/man1/bandwhich.1
}