diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2019-07-13 16:02:28 +0000 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-13 16:41:07 -0300 |
commit | 4f65ba2f7ae44bf6fb5182c7fad1e60a0eb55ca2 (patch) | |
tree | 527946e46f10c858ed122c2e0eab4abbf85a819f /community/suricata | |
parent | 1989edb0e0c4a691a7cf4e4862f134f7f2742f6e (diff) | |
download | aports-4f65ba2f7ae44bf6fb5182c7fad1e60a0eb55ca2.tar.bz2 aports-4f65ba2f7ae44bf6fb5182c7fad1e60a0eb55ca2.tar.xz |
community/suricata: upgrade to 4.1.4
https://suricata-ids.org/2019/04/30/suricata-4-1-4-released/
Diffstat (limited to 'community/suricata')
-rw-r--r-- | community/suricata/APKBUILD | 28 | ||||
-rw-r--r-- | community/suricata/suricata.post-install | 7 |
2 files changed, 22 insertions, 13 deletions
diff --git a/community/suricata/APKBUILD b/community/suricata/APKBUILD index dc3ef1b4f6..28f3146793 100644 --- a/community/suricata/APKBUILD +++ b/community/suricata/APKBUILD @@ -1,24 +1,25 @@ -# Contributor: Steve McMaster <code@mcmaster.io> +# Contributor: Stuart Cardall <developer at it-offshore dot co.uk> # Maintainer: Steve McMaster <code@mcmaster.io> pkgname=suricata -pkgver=4.0.4 -pkgrel=6 +pkgver=4.1.4 +pkgrel=0 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" +arch="all !s390x !aarch64 !x86" license="GPL-2.0" -makedepends="automake autoconf libtool libhtp-dev>=0.5.25 libcap-ng-dev +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" -subpackages="$pkgname-doc" + nss-dev nspr-dev wget cargo" +depends="py-yaml python2" +subpackages="$pkgname-doc $pkgname-openrc" +install="$pkgname.post-install" source="http://www.openinfosecfoundation.org/download/$pkgname-$pkgver.tar.gz $pkgname.confd $pkgname.initd $pkgname.logrotate " -builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" @@ -26,7 +27,6 @@ prepare() { } build() { - cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -46,21 +46,23 @@ build() { } check() { - cd "$builddir" make check } package() { - cd "$builddir" make DESTDIR="$pkgdir" install - make DESTDIR="$pkgdir" install-full + make DESTDIR="$pkgdir" install-conf cd "$srcdir" install -D -m 755 $pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -D -m 644 $pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -D -m 644 $pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname + + # install rules + mkdir -p "$pkgdir"/etc/$pkgname/rules + install -Dm644 "$builddir"/rules/*.rules "$pkgdir"/etc/$pkgname/rules/ } -sha512sums="6e158aa6d3edb9d11e0df3f986392ee2ae49ab4dfb978288ced4484dbe5c08ae061db2a566be6d22cf14bd0b88f87f9cb9c0a657d7fc44e099b8783d933c771e suricata-4.0.4.tar.gz +sha512sums="5eca09731cc7446c8d70018f1f16dfbb6a6aaed32b2c4d6a0a6f4f094012af9f3bcdc49a3fe1ff61a24c3f1d363f30b06ca74b3920ffc5452c94677a026a561c suricata-4.1.4.tar.gz ed7c78a80192f3f3ed433330df323beccb6079b5413289b9e9faa3fceea2c536de93de7372968d8605abd1618d73c9319ee39d86b16eed22e7313c8667252f5d suricata.confd 258c6d60fc878dc1c7b7bf93cc758080050f591084a1edf7f1aac81ccb523c73615716616fedd0269f9ac5ef2fa7adcb3e2cefd714754bac5571e9806b6781be suricata.initd 4f76a35bcde78c9860701897fe19bb84cc46bbc429124c4cb2e94cf3330f00ebe8067c0d7f3f83478e9b95323adb947e5081658f455657c4d03c682abe707534 suricata.logrotate" diff --git a/community/suricata/suricata.post-install b/community/suricata/suricata.post-install new file mode 100644 index 0000000000..3124607b86 --- /dev/null +++ b/community/suricata/suricata.post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +# install rules not possible during install-full +suricata-update \ + --suricata /usr/bin/suricata \ + --suricata-conf /etc/suricata/suricata.yaml \ + --no-test --no-reload |