# $Id: PKGBUILD 71150 2010-03-04 21:10:49Z ronald $ # Maintainer: Ronald van Haren # Contributor: Judd Vinet pkgname=iproute2 pkgver=2.6.33 pkgrel=1 pkgdesc="IP Routing Utilities" arch=('i686' 'x86_64') license=('GPL2') url="http://www.linux-foundation.org/en/Net:Iproute2" depends=('linux-atm' 'perl') provides=('iproute') conflicts=('iproute') replaces=('iproute') options=('!makeflags') backup=('etc/iproute2/ematch_map' 'etc/iproute2/rt_dsfield' 'etc/iproute2/rt_protos' \ 'etc/iproute2/rt_realms' 'etc/iproute2/rt_scopes' 'etc/iproute2/rt_tables') source=(http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-${pkgver}.tar.bz2 'iftunnel.patch' 'iproute2-fhs.patch') md5sums=('b371fca3fcb5e436e69a7c2111d84a3c' '8b3dab19a03d8d521c690be7bb7b5c2e' '9013aa473d8b06b3bb2420b7ffe60261') build() { cd $srcdir/iproute2-${pkgver} # set correct fhs structure patch -Np1 -i ${srcdir}/iproute2-fhs.patch || return 1 # fix missing #include patch -Np0 -R -i ${srcdir}/iftunnel.patch || return 1 ./configure || return 1 make || return 1 make DESTDIR=$pkgdir install || return 1 }