# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=snort pkgver=2.9.2.1 pkgrel=0 pkgdesc="An open source network intrusion prevention and detection system" url="http://www.snort.org/" arch="all" license="GPL" depends= makedepends="pcre-dev libpcap-dev libnet-dev libdnet-dev daq-dev autoconf automake libtool bison flex zlib-dev" install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-dev" source="http://www.snort.org/dl/snort-current/snort-$pkgver.tar.gz snort.initd snort.confd " build() { cd "$srcdir/$pkgname-$pkgver" # fix parallel builds sed -i -e 's/^all-local:.*/all-local: $(LTLIBRARIES)/' \ src/dynamic-preprocessors/*/Makefile.am || return 1 aclocal -I m4 && autoconf && automake --add-missing && libtoolize || return 1 ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-ipv6 \ --enable-gre make || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make -j1 DESTDIR="$pkgdir" install rm "$pkgdir"/usr/lib/*/*.la \ "$pkgdir"/usr/lib/snort/*/*.la || return 1 install -D -m 755 ../snort.initd "$pkgdir"/etc/init.d/snort install -D -m 644 ../snort.confd "$pkgdir"/etc/conf.d/snort } md5sums="2f3e2b6ee72adbdfac73cb1c6c14bd61 snort-2.9.2.1.tar.gz ffda56f7c20f5cea1c37c971e0f1d6c9 snort.initd 446f8d2b3435b8a6be738da978670605 snort.confd"