blob: 5ea155965090a662672e9e6ed80939919a685a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: kpcyrd <git@rxv.cc>
# Maintainer: kpcyrd <git@rxv.cc>
pkgname=sniffglue
pkgver=0.9.0
pkgrel=0
pkgdesc="Secure multithreaded packet sniffer"
url="https://github.com/kpcyrd/sniffglue"
# !aarch64: https://cloud.drone.io/alpinelinux/aports/10687/3/1
# !x86: fails to compile even when -fno-stack-protector is passed
# !ppc64le: fails to build ring
arch="x86_64 armhf armv7" # limited by cargo
license="GPL-3.0-or-later"
makedepends="
cargo
libpcap-dev
libseccomp-dev
"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="
sniffglue.conf
$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/$pkgname/archive/v$pkgver.tar.gz
"
# libring fails to compile otherwise
case "$CARCH" in
x86)
export CFLAGS="$CFLAGS -fno-stack-protector"
;;
esac
build() {
cargo build --release --locked
}
check() {
cargo test --release --locked
}
package() {
install -Dm755 "$builddir/target/release/sniffglue" "$pkgdir/usr/bin/sniffglue"
install -Dm644 "$builddir/docs/sniffglue.1" \
"$pkgdir/usr/share/man/man1/sniffglue.1"
install -Dm644 "$srcdir/$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
}
sha512sums="66e6b87e832ba8424334d24e3457a214e60e67c731471098329d0ca54c574518f7856ba780bb6bffde53bdefe2c8f789a242138ae67e2fef3e562fa083b362b1 sniffglue.conf
915652edd2a9a8f21acae6e378f8e86ccfe2a4996d8c54d98790d96b717d7baf4c7c506a30f38ffcd52302273cb9a1ac203bd8f4ddc07b666103ac6f8de96113 sniffglue-0.9.0.tar.gz"
|