APKBUILD 2.61 KB
Newer Older
Steve McMaster's avatar
Steve McMaster committed
1 2 3
# Contributor: Steve McMaster <code@mcmaster.io>
# Maintainer: Steve McMaster <code@mcmaster.io>
pkgname=suricata
4 5
pkgver=3.2.1
pkgrel=0
Steve McMaster's avatar
Steve McMaster committed
6 7 8 9 10 11
pkgdesc="High performance Network IDS, IPS and Network Security Monitoring engine"
url="https://suricata-ids.org/"
arch="all"
license="GPL-2"
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
12 13
	libnet-dev libnetfilter_queue-dev libnfnetlink-dev jansson-dev python2
	nss-dev nspr-dev"
Steve McMaster's avatar
Steve McMaster committed
14
subpackages="$pkgname-doc"
15 16 17 18 19
source="http://www.openinfosecfoundation.org/download/$pkgname-$pkgver.tar.gz
	$pkgname.confd
	$pkgname.initd
	$pkgname.logrotate
	"
Steve McMaster's avatar
Steve McMaster committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
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"
54 55 56
	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
Steve McMaster's avatar
Steve McMaster committed
57
}
58
md5sums="61b5cbb70591ea8ff4b26a0b00214a54  suricata-3.2.1.tar.gz
59 60 61
e8711b63c89d6f7c8f59b7e44bd84624  suricata.confd
2cd92e075f83b187f12c2f24b82cd9ac  suricata.initd
93b03aeb4def37007b1c9c340a825973  suricata.logrotate"
62
sha256sums="0e0b0cf49016804bb2fb1fc4327341617e76a67902f4e03e0ef6d16c1d7d3994  suricata-3.2.1.tar.gz
63 64 65
2c40da834633205798cad878e10b7e25ee0fe8c971082893df7d9a46795a4810  suricata.confd
9356d30cdac8fff44266df95b9c1bf64737d02eb1ae2aafa94029c3b5a733ec6  suricata.initd
8c1139929923d14a020cd919ecce90134b7d502cdd40ceb76056baf66738584d  suricata.logrotate"
66
sha512sums="6b0e5565368a085f059f62c9862364a9fcd970158b17671a25bcbed9b3ef8fcf857b1760a6d186ebe3227dde45070bc69a8b0d0bfd341f39a4d42ef93d12f290  suricata-3.2.1.tar.gz
67 68 69
ed7c78a80192f3f3ed433330df323beccb6079b5413289b9e9faa3fceea2c536de93de7372968d8605abd1618d73c9319ee39d86b16eed22e7313c8667252f5d  suricata.confd
67770d953095c22bdf2786641c7f4ec402fa1093a743090278811d223fa5ff3e5987680c84e1117df8fd59306c100256b45cc3b2807a1c2296e31a7485d14b07  suricata.initd
4f76a35bcde78c9860701897fe19bb84cc46bbc429124c4cb2e94cf3330f00ebe8067c0d7f3f83478e9b95323adb947e5081658f455657c4d03c682abe707534  suricata.logrotate"