updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / flowd / PKGBUILD
blob8a877da61e3282c86c83b97b370f6eeb4aa5ae78
1 # Maintainer: Brian De Wolf <arch@bldewolf.com>
2 pkgname=flowd
3 pkgver=0.9.1
4 pkgrel=1
5 pkgdesc="flowd is a small, fast and secure NetFlow collector"
6 url="http://code.google.com/p/flowd/"
7 arch=('x86_64' 'i686')
8 license=('BSD')
9 depends=()
10 optdepends=('perl' 'python2')
11 makedepends=('bison' 'perl' 'python2')
12 conflicts=()
13 replaces=()
14 backup=()
15 source=("http://flowd.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
16 md5sums=('a3d0512b5e6d9c7d9e749d9894376ea4')
18 build() {
19         cd "${srcdir}/${pkgname}-${pkgver}"
20         # Dirty hack to make it use GNU bison, otherwise we need byacc which
21         # comes from AUR :-/
22         sed -i 's/AC_MSG_ERROR\(.*GNU bison not supported\)/AC_MSG_RESULT\1/' configure.ac
23         autoreconf
24         ./configure --prefix=/usr
25         make
26         
27 # perl
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
34         cd Flowd-perl
35         perl Makefile.PL
36         make
37         )
38 # python
39         python2 setup.py build 
43 package() {
44         cd "${srcdir}/${pkgname}-${pkgver}"
45         make DESTDIR="$pkgdir/" install
47 # perl
48         cd Flowd-perl
49         make install
50         cd ..
51 # python
52         python2 setup.py install --root=$pkgdir