aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/suricata/APKBUILD27
1 files changed, 18 insertions, 9 deletions
diff --git a/community/suricata/APKBUILD b/community/suricata/APKBUILD
index 05c5f44b74..61df02e69b 100644
--- a/community/suricata/APKBUILD
+++ b/community/suricata/APKBUILD
@@ -2,32 +2,40 @@
# Maintainer: Steve McMaster <code@mcmaster.io>
pkgname=suricata
pkgver=4.1.4
-pkgrel=0
+pkgrel=1
pkgdesc="High performance Network IDS, IPS and Network Security Monitoring engine"
url="https://suricata-ids.org/"
-# luajit is not available for disabled arches
-arch="all !s390x !aarch64 !x86 !ppc64le"
+arch="all"
license="GPL-2.0"
makedepends="automake autoconf libtool libhtp-dev>=0.5.25 libcap-ng-dev lz4-dev
file-dev luajit-dev geoip-dev pcre-dev yaml-dev libpcap-dev hiredis-dev
- libnet-dev libnetfilter_queue-dev libnfnetlink-dev jansson-dev python2
- nss-dev nspr-dev wget cargo"
-depends="py-yaml python2"
+ libnet-dev libnetfilter_queue-dev libnfnetlink-dev jansson-dev python3
+ nss-dev nspr-dev"
+depends="py-yaml python3"
subpackages="$pkgname-doc $pkgname-openrc"
install="$pkgname.post-install"
-source="http://www.openinfosecfoundation.org/download/$pkgname-$pkgver.tar.gz
+source="https://www.openinfosecfoundation.org/download/$pkgname-$pkgver.tar.gz
$pkgname.confd
$pkgname.initd
$pkgname.logrotate
"
+# luajit and rust are not available on some arches
+_enable_luajit=
+_enable_rust=
+case "$CARCH" in
+ armhf | armv7 | x86_64) makedepends="$makedepends luajit-dev cargo"; _enable_luajit="--enable-luajit"; _enable_rust="--enable-rust";;
+ s390x) makedepends="$makedepends";;
+ *) makedepends="$makedepends luajit-dev"; _enable_luajit="--enable-luajit";;
+esac
+
prepare() {
cd "$builddir"
autoreconf -vif
}
build() {
- ./configure \
+ HAVE_PYTHON=/usr/bin/python3 ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
@@ -41,7 +49,8 @@ build() {
--enable-geoip \
--enable-gccprotect \
--enable-pie \
- --enable-luajit
+ $_enable_luajit \
+ $_enable_rust
make
}