updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / suricata-dev / PKGBUILD
blob79e50fc6867230d72a18fe2803ef09d6e1028cfc
1 # Maintainer: Vlatko Kosturjak <kost@linux.hr>
2 # Based on suricata by Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
4 pkgname=suricata-dev
5 _pkgname=suricata
6 pkgver=1.1beta2
7 pkgrel=1
8 pkgdesc="An Open Source Next Generation Intrusion Detection and Prevention Engine"
9 arch=('i686')
10 url="http://openinfosecfoundation.org/index.php/download-suricata"
11 license=('GPL2')
12 depends=('libcap-ng' 'libnet' 'libpcap' 'libyaml' 'pcre' 'coccinelle')
13 conflicts=('libhtp' 'suricata')
14 provides=('libhtp' 'suricata')
15 optdepends=('snort: suricata can use rulesets provided by snort')
16 source=(http://openinfosecfoundation.org/download/$_pkgname-$pkgver.tar.gz)
17 md5sums=('0bfc6e122908eb1f1b6e72106aa9ac3f')
19 build() {
20   cd ${srcdir}/$_pkgname-$pkgver
22   ./configure --prefix=/usr
23   make
26 package() {
27   cd ${srcdir}/$_pkgname-$pkgver
29   make DESTDIR=${pkgdir} install
31   install -d ${pkgdir}/var/log/$_pkgname
32   install -D -m644 $_pkgname.yaml ${pkgdir}/usr/share/$_pkgname/$_pkgname.yaml