PKGBUILD 1.15 KB
Newer Older
Jan Mette's avatar
Jan Mette committed
1 2 3 4 5 6
# $Id: PKGBUILD 62369 2010-01-07 20:38:31Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>

pkgname=iproute2
pkgver=2.6.31
Jan Mette's avatar
Jan Mette committed
7
pkgrel=2
Jan Mette's avatar
Jan Mette committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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=('230f35282a95451622f3e8394f9cd80a'
         '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

}