aboutsummaryrefslogtreecommitdiffstats
path: root/community/sniffglue/APKBUILD
blob: 38a15b7319b9c503e2ee40fc91657bac85484898 (plain) (blame)
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
# Contributor: kpcyrd <git@rxv.cc>
# Maintainer: kpcyrd <git@rxv.cc>
pkgname=sniffglue
pkgver=0.13.0
pkgrel=0
pkgdesc="Secure multithreaded packet sniffer"
url="https://github.com/kpcyrd/sniffglue"
# !ppc64le: fails to build ring
arch="x86_64 armhf armv7 aarch64 x86" # limited by cargo
license="GPL-3.0-or-later"
makedepends="
	cargo
	libpcap-dev
	libseccomp-dev
	"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/sniffglue/archive/v$pkgver.tar.gz
	sniffglue.conf
	"

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="
c13a10459fc0c022d253ece0ab01ddaa23547286a50a0763ee363d74333babbd18fd3fb252bec1e3182ae5640145f32ab41f5023168c4dbb87b120bd40ce509d  sniffglue-0.13.0.tar.gz
66e6b87e832ba8424334d24e3457a214e60e67c731471098329d0ca54c574518f7856ba780bb6bffde53bdefe2c8f789a242138ae67e2fef3e562fa083b362b1  sniffglue.conf
"