# Iperf 2.0.5
# ===========
cd
test -f installed/iperf-2.0.5.tar.gz && mv installed/iperf-2.0.5.tar.gz .
test ! -f iperf-2.0.5.tar.gz &&
wget http://downloads.sf.net/iperf/iperf-2.0.5.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "iperf-*" -exec rm -r {} \;
tar xzvf ~/iperf-2.0.5.tar.gz
cd iperf-2.0.5
test $UID = 0 && chown -R root:root .
# Configure and build iperf
./configure --disable-ipv6 --mandir=/usr/local/man
make
# Install it
su -c "make install"
## If you have issues, look for patches on the SourceForge project page,
## but I found that for one, this works just fine:
# /usr/local/bin/iperf -s > /dev/log/iperf.log 2>&1
## but using -D causes CPU to go crazy after a client runs a test
## ...and UDP was fine with -D IIRC.
# If you ever want to uninstall Iperf, this should do it:
cd
su
test -d src/iperf-* && ( cd src/iperf-* ; make uninstall )
rm -f /usr/local/bin/iperf /usr/local/man/man1/iperf.1
exit
find ~/src -maxdepth 1 -type d -name "iperf-*" -exec rm -r {} \;
rm -f ~/installed/iperf-*.tar.*