# Exit on error:
set -e

#wget https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-3.10.0.tar.bz2
#    --no-check-certificate
wget ftp://ftp.kernel.org/pub/linux/utils/net/iproute2/iproute2-3.10.0.tar.bz2
tar xf iproute2-3.10.0.tar.bz2
cd iproute2-3.10.0

sed -i.orig '/^TARGETS/s@arpd@@g' misc/Makefile

make \
    DOCDIR=/usr/share/doc/iproute2 \
    MANDIR=/usr/share/man

make \
    DOCDIR=/usr/share/doc/iproute2 \
    MANDIR=/usr/share/man \
    install

cd ..
exit 0
