# Contributor: Mark Smith <[email protected]>
pkgname=flow-tools
pkgver=0.68.5.1
pkgrel=1
pkgdesc="Netflow collector, analyser and report generator"
arch=('i686' 'x86_64')
url="http://www.splintered.net/sw/flow-tools/"
license=('custom')
depends=('glibc' 'zlib' 'tcp_wrappers' 'libmysqlclient' 'postgresql-libs')
makedepends=('automake' 'coreutils' 'gawk' 'make' 'gcc' 'bison' 'binutils'
'flex' 'zlib' 'tcp_wrappers' 'glibc' 'grep' 'libmysqlclient'
'postgresql-libs')
source=(http://flow-tools.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
md5sums=('b8f9a4be19ec22ea6d4031c40a6d5a63')


build() {

cd $startdir/src/$pkgname-$pkgver

./configure --prefix=/usr --enable-lfs --with-mysql=/usr\
--with-pgsql=/usr || return 1
make || return 1

make DESTDIR=$startdir/pkg install || return 1

install -D -m444 COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING

}