# Maintainer: Natanael Copa pkgname=iproute2 pkgver=3.9.0 _realver=$pkgver pkgrel=0 pkgdesc="IP Routing Utilities" url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" arch="all" license="GPL2" depends= install="$pkgname.post-install" makedepends="bison flex bash iptables-dev" subpackages="$pkgname-doc" source="http://kernel.org/pub/linux/utils/net/iproute2/iproute2-$pkgver.tar.xz " prepare() { cd "$srcdir"/$pkgname-$_realver for i in $source; do case $i in *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i '/^TARGETS=/s: arpd : :' misc/Makefile sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h || return 1 sed -i -e 's:=/share:=/usr/share:' \ -e 's:-Werror::' Makefile || return 1 } build() { cd "$srcdir"/$pkgname-$_realver ./configure || return 1 make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/lib || return 1 } package() { cd "$srcdir"/$pkgname-$_realver make -j1 DESTDIR="$pkgdir" install } md5sums="fd9db28e4f411a1e74de65c919ae590f iproute2-3.9.0.tar.xz" sha256sums="16f027af432a05085813a2f859b7d42dafd29b8c035ead830d37565b7397592d iproute2-3.9.0.tar.xz" sha512sums="cc46518859e1b106b18b48396aca7e34af326ad34d4dc02ba3cb4401dcd00d091831ccc36e5af79b95ef89012b45a369b763328192da030a3e2180e97cac8c2a iproute2-3.9.0.tar.xz"