forked from ports/contrib
sniffglue: initial commit, version 0.13.1
This commit is contained in:
parent
feda65baa2
commit
2410954f95
7
sniffglue/.footprint
Normal file
7
sniffglue/.footprint
Normal 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
5
sniffglue/.signature
Normal 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
27
sniffglue/Pkgfile
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user