# Exit on error:
set -e

wget https://www.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 \
    DESTDIR= \
    DOCDIR=/share/doc/iproute2 \
    MANDIR=/share/man \
    install

cd ..
rm -rf iproute2-3.10.0
rm iproute2-3.10.0.tar.bz2

exit 0
