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:
7 pkgdesc="The Network Diagnostic Tool (NDT) is a client/server program that provides network configuration and performance testing"
9 url="http://www.internet2.edu/performance/ndt/index.html"
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)
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')