aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/sniffglue/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/testing/sniffglue/APKBUILD b/testing/sniffglue/APKBUILD
index 0bf7283d80..f29a6208df 100644
--- a/testing/sniffglue/APKBUILD
+++ b/testing/sniffglue/APKBUILD
@@ -5,7 +5,8 @@ pkgver=0.9.0
pkgrel=0
pkgdesc="Secure multithreaded packet sniffer"
url="https://github.com/kpcyrd/sniffglue"
-arch="x86_64" # limited by cargo pkg
+# !aarch64: https://cloud.drone.io/alpinelinux/aports/10687/3/1
+arch="x86_64 x86 armhf armv7 ppc64le" # limited by cargo
license="GPL-3.0-or-later"
makedepends="
cargo
@@ -20,12 +21,17 @@ source="
"
build() {
- cd "$builddir"
+ # libring fails to compile otherwise
+ case "$CARCH" in
+ x86)
+ export CFLAGS="$CFLAGS -fno-stack-protector"
+ ;;
+ esac
+
cargo build --release --locked
}
check() {
- cd "$builddir"
cargo test --release --locked
}