updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / ndt / PKGBUILD
blob4fcdbc68f8a8e4c84dd107dd83bdf0fa9e0f91c2
1 # Contributor: Olivier Mehani <shtrom-aur@ssji.net>
2 # $Id: PKGBUILD 254 2010-09-30 01:18:46Z shtrom $
3 # vim:set ts=2 sw=2 et:
4 pkgname=ndt
5 pkgver=3.6.4
6 pkgrel=1
7 pkgdesc="The Network Diagnostic Tool (NDT) is a client/server program that provides network configuration and performance testing"
8 arch=('x86_64')
9 url="http://www.internet2.edu/performance/ndt/index.html"
10 license=('BSD')
11 depends=('web100-utils' 'jopenchart')
12 source=(http://software.internet2.edu/sources/ndt/$pkgname-$pkgver.tar.gz
13         fix_configure_include_paths.patch
14         fix_configure_mandir.patch
15         fix_JAnalyze_Makefile_target.patch
16         fix_I2util_configure_mandir.patch)
18 build() {
19   cd "$srcdir/$pkgname-$pkgver"
21   patch -p1 < $srcdir/fix_configure_include_paths.patch
22   patch -p1 < $srcdir/fix_configure_mandir.patch
23   patch -p1 < $srcdir/fix_JAnalyze_Makefile_target.patch
24   patch -p1 < $srcdir/fix_I2util_configure_mandir.patch
26   ./configure --prefix=/usr
27   # XXX: The CLASSPATH specification looks bodgey...
28   make ndtdir="/usr/share/java/ndt" CLASSPATH_ENV="CLASSPATH=/usr/share/java/jopenchart/charting-0.94.jar" || return 1
29   make ndtdir="$pkgdir/usr/share/java/ndt" prefix="$pkgdir/usr" install
31   mv $pkgdir/usr/bin/analyze $pkgdir/usr/bin/ndt-analyze
32   mv $pkgdir/usr/share/man/man1/analyze.1 $pkgdir/usr/share/man/man1/ndt-analyze.1
33   sed -i "s/analyze[^r]/ndt-&/" $pkgdir/usr/share/man/man1/ndt-analyze.1
35   mkdir -p $pkgdir/usr/share/doc/$pkgname-$pkgver
36   cp AUTHORS ChangeLog DISCUSSION-LIST NEWS README Readme-fakewww Readme-web100srv tcpbw100.template $pkgdir/usr/share/doc/$pkgname-$pkgver
39 md5sums=('098d9d55536b8a0ab07ef13eb15b7fd4'
40          'ec3e388b9a54094216af62cab7bb07d7'
41          '69851a12c0927ec28e13b55f80f6d7cc'
42          '90838b71a45f9e7e8432c4077b0259ca'
43          '6d36f6e8f81f9f79b6a24bb4958529c9')