1
0
forked from ports/contrib

sniffglue: initial commit, version 0.13.1

This commit is contained in:
Tim Biermann 2021-09-19 22:52:34 +02:00
parent feda65baa2
commit 2410954f95
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 39 additions and 0 deletions

7
sniffglue/.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/sniffglue
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/zsh/
drwxr-xr-x root/root usr/share/zsh/site-functions/
-rw-r--r-- root/root usr/share/zsh/site-functions/_sniffglue

5
sniffglue/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF389QurtRmUWeDcDMS84HHTTRcRvqZ3HzeE/wm2sGYlEJWs4o/GIkt8oDsSJeId2mqoLPYEF7PhXHM002HhpN8QU=
SHA256 (Pkgfile) = 4a3230650695784ae506788ac8257dc0ccf8f68cf2fc3c0007b4bbb165317de0
SHA256 (.footprint) = 85b62a4f4d8284984064db90a4b61fd64360bdda6b194e7f5766ab2c462bf3d7
SHA256 (sniffglue-0.13.1.tar.gz) = 5994522cb62b2555185f042dcb6dd57d8aaa0ebaf015958d18de79501e6736d2

27
sniffglue/Pkgfile Normal file
View File

@ -0,0 +1,27 @@
# Description: Secure multithreaded packet sniffer
# URL: https://crates.io/crates/sniffglue
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust libpcap libseccomp
name=sniffglue
version=0.13.1
release=1
source=(https://github.com/kpcyrd/sniffglue/archive/v$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 update --manifest-path $name-$version/Cargo.toml
cargo build --release --locked --manifest-path $name-$version/Cargo.toml
install -Dt $PKG/usr/bin $name-$version/target/release/$name
prt-get isinst bash-completions && \
install -d $PKG/usr/share/bash-completion/completions && \
$PKG/usr/bin/sniffglue --gen-completions bash > $PKG/usr/share/bash-completion/completions/sniffglue
prt-get isinst zsh && \
install -d $PKG/usr/share/zsh/site-functions && \
$PKG/usr/bin/sniffglue --gen-completions zsh > $PKG/usr/share/zsh/site-functions/_sniffglue
}