diff options
author | J0WI <J0WI@users.noreply.github.com> | 2019-08-14 17:31:42 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-08-28 14:16:52 +0000 |
commit | 0e268cc37102069612353e5fc0d543988ca9ccb5 (patch) | |
tree | 96c89c522503919ebb290ef612f18ebbfa57f2ca /community/suricata | |
parent | 97877eb8815c4350f9206d91b80342839c9c5591 (diff) | |
download | aports-0e268cc37102069612353e5fc0d543988ca9ccb5.tar.bz2 aports-0e268cc37102069612353e5fc0d543988ca9ccb5.tar.xz |
community/suricata: re-enable all arches
Diffstat (limited to 'community/suricata')
-rw-r--r-- | community/suricata/APKBUILD | 27 |
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 } |