# Contributor: Steve McMaster # Maintainer: Steve McMaster pkgname=suricata pkgver=3.2 pkgrel=1 pkgdesc="High performance Network IDS, IPS and Network Security Monitoring engine" url="https://suricata-ids.org/" arch="all" license="GPL-2" depends="" makedepends="automake autoconf libtool libhtp-dev>=0.5.23 libcap-ng-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" install="" subpackages="$pkgname-doc" source="${pkgname}-${pkgver}.tar.gz::http://www.openinfosecfoundation.org/download/${pkgname}-${pkgver}.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" autoreconf -vif || return 1 } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-non-bundled-htp \ --enable-nfqueue \ --disable-gccmarch-native \ --enable-hiredis \ --enable-geoip \ --enable-gccprotect \ --enable-pie \ --enable-luajit \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install-full || return 1 cd "$srcdir" install -D -m 755 ../suricata.initd "$pkgdir"/etc/init.d/suricata install -D -m 644 ../suricata.confd "$pkgdir"/etc/conf.d/suricata install -D -m 644 ../suricata.logrotate "$pkgdir"/etc/logrotate.d/snort } md5sums="05854b3390ea86fabe73bdb5a90db36c suricata-3.2.tar.gz" sha256sums="41cbe19c6fd6bd51ebcbc29063f558e2fbba4a2450e5809fee2e461f16a4ed68 suricata-3.2.tar.gz" sha512sums="327f5a62449af44f6cb95220e1ff9bf61b51db7bd25f2b1e8def3e8650ba754304cf9d02fc30b46b6cbaa6b5f94fa3d4be90edb8a293ff3b6c0927b596a2976e suricata-3.2.tar.gz"