# Maintainer: Ronald van Haren # Contributor: Judd Vinet # Modified by OpenPogo pkgname=iproute2 pkgver=2.6.28 pkgrel=1 pkgdesc="IP Routing Utilities" arch=('arm') license=('GPL2') url="http://www.linux-foundation.org/en/Net:Iproute2" depends=('linux-atm' 'perl') provides=('iproute') conflicts=('iproute') replaces=('iproute') backup=('opt/etc/iproute2/ematch_map' 'opt/etc/iproute2/rt_dsfield' 'opt/etc/iproute2/rt_protos' \ 'opt/etc/iproute2/rt_realms' 'opt/etc/iproute2/rt_scopes' 'opt/etc/iproute2/rt_tables') source=(http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-${pkgver}.tar.bz2) md5sums=('595f9b17320f69e8d30d2fa80f1bca14') build() { cd $srcdir/iproute2-${pkgver} sed -i 's|/opt/local/lib/iptables|/opt/lib/iptables|' include/iptables.h || return 1 sed -i 's|=/share|=/opt/share|' Makefile || return 1 sed -i 's|=/sbin|=/opt/sbin|' Makefile || return 1 ./configure || return 1 make || return 1 make DESTDIR=$pkgdir install || return 1 # chmod 755 $pkgdir/usr/sbin/ifcfg || return 1 }