blob: deb10faa6a3d45375c1cb4db68d2ec036323148b (
plain)
1
2
3
4
5
6
7
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
41
42
43
44
45
46
47
|
# $Id: PKGBUILD 96235 2010-10-19 13:01:29Z allan $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=iproute2
pkgver=2.6.35
pkgrel=4
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
'iproute2-fhs.patch' 'iproutegetfix.patch')
sha1sums=('862b86ac73ea696867675765d119654553a22aeb'
'2416b11252364d7a6c742eabb4a6924a75637a46'
'cd8c969800a9bd1d4ebba0e1eae69d0892786d60')
build() {
cd $srcdir/iproute2-${pkgver}
# set correct fhs structure
patch -Np1 -i ${srcdir}/iproute2-fhs.patch
# fix ip route get breakage
patch -Np0 -i ${srcdir}/iproutegetfix.patch
./configure
make || return 1
}
package() {
cd $srcdir/iproute2-${pkgver}
make DESTDIR=$pkgdir install || return 1
# libnetlink isn't installed, install it FS#19385
install -Dm644 include/libnetlink.h ${pkgdir}/usr/include/libnetlink.h
install -Dm644 lib/libnetlink.a ${pkgdir}/usr/lib/libnetlink.a
}
|