1 # Maintainer: Brian De Wolf <arch@bldewolf.com>
5 pkgdesc="flowd is a small, fast and secure NetFlow collector"
6 url="http://code.google.com/p/flowd/"
10 optdepends=('perl' 'python2')
11 makedepends=('bison' 'perl' 'python2')
15 source=("http://flowd.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
16 md5sums=('a3d0512b5e6d9c7d9e749d9894376ea4')
19 cd "${srcdir}/${pkgname}-${pkgver}"
20 # Dirty hack to make it use GNU bison, otherwise we need byacc which
22 sed -i 's/AC_MSG_ERROR\(.*GNU bison not supported\)/AC_MSG_RESULT\1/' configure.ac
24 ./configure --prefix=/usr
28 ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
29 PERL_AUTOINSTALL=--skipdeps \
30 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
31 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
32 MODULEBUILDRC=/dev/null
39 python2 setup.py build
44 cd "${srcdir}/${pkgname}-${pkgver}"
45 make DESTDIR="$pkgdir/" install
52 python2 setup.py install --root=$pkgdir