1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
10 pkgdesc="Ns is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks."
12 url="http://www.isi.edu/nsnam/ns/"
25 source=("$pkgname-$pkgver.tar.gz::http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.34/ns-allinone-2.34.tar.gz/download"
29 md5sums=('d85a24e917abbc39eeda7801bc678119'
30 '934d1114ac3265f73d1449b334498527')
33 cd "$srcdir/$pkgname-$pkgver"
34 patch -p1 < "$srcdir/gcc4.5.patch"
35 sed -i 's/ln[ \t]\+-s[ \t]\+\$CUR_PATH/ln -s ../g' install
40 cd "$srcdir/$pkgname-$pkgver"
41 mkdir -p "$pkgdir/opt"
42 cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/opt"
44 msg "----------------------------------------------------------------------------------"
46 msg "Please put /opt/$pkgname-$pkgver/bin:/opt/$pkgname-$pkgver/tcl8.4.18/unix:$pkgname-$pkgver/tk8.4.18/unix"
47 msg "into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph."
49 msg "IMPORTANT NOTICES:"
51 msg "(1) You MUST put /opt/$pkgname-$pkgver/otcl-1.13, /opt/$pkgname-$pkgver/lib, "
52 msg " into your LD_LIBRARY_PATH environment variable."
53 msg " If it complains about X libraries, add path to your X libraries "
54 msg " into LD_LIBRARY_PATH."
55 msg " If you are using csh, you can set it like:"
56 msg " setenv LD_LIBRARY_PATH <paths>"
57 msg " If you are using sh, you can set it like:"
58 msg " export LD_LIBRARY_PATH=<paths>"
60 msg "(2) You MUST put /opt/$pkgname-$pkgver/tcl8.4.18/library into your TCL_LIBRARY environmental"
61 msg " variable. Otherwise ns/nam will complain during startup."
64 msg "After these steps, you can now run the ns validation suite with"
65 msg "cd ns-2.34; ./validate"
67 msg "For trouble shooting, please first read ns problems page "
68 msg "http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive"
69 msg "for related posts."
73 # vim:set ts=2 sw=2 et: