core/iproute2/PKGBUILD
Jan Mette 0ae13fefd0
2010-03-21 20:46:45 +00:00

41 lines
1.2 KiB
Bash

# $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
pkgrel=2
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
}