updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / sflowtool / PKGBUILD
blob736a8b08fde1ee8018ef8aa126ef3e5e5d4140a6
1 # Contributor : xav <xav at ethertricks dot net>
3 pkgname=sflowtool
4 pkgver=3.18
5 pkgrel=1
6 pkgdesc="CLI utility and scripts for analyzing sFlow data"
7 arch=('i686' 'x86_64')
8 url="http://www.inmon.com/technology/sflowTools.php"
9 license=('custom')
10 optdepends=('perl: scripts support')
11 source=(http://www.inmon.com/bin/${pkgname}-${pkgver}.tar.gz \
12         http://www.inmon.com/bin/sflowutils.tar.gz \
13         LICENSE)
14 sha1sums=('3b523de33a9a2bb05627cfc71b2746f39fa7e2bc'
15          '5755bb18eb5e8c8ee66ad2c203824ef7d1b86f94'
16          '5386fc3a51814cdcd289a3b2880d8def8254eb89')
18 build() {
19    cd ${srcdir}/${pkgname}-${pkgver}
20    ./configure --prefix=/usr --mandir=/usr/share/man
21    make || return 1
22    make DESTDIR=${pkgdir} install || return 1
23    
24    mkdir -p ${pkgdir}/usr/share/${pkgname}/{utils,contrib}
25    cp -R ${srcdir}/utils ${pkgdir}/usr/share/${pkgname}/
26    cp -R ${srcdir}/contrib ${pkgdir}/usr/share/${pkgname}/
27    cp ${srcdir}/README ${pkgdir}/usr/share/${pkgname}/README
28    
29    install -D -m644 ${startdir}/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE