1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Maintainer: Ronald van Haren <ronald.archlinux.org>
3 # Contributor: Judd Vinet <jvinet@zeroflux.org>
8 pkgdesc='IP Routing Utilities'
11 url='https://git.kernel.org/pub/scm/network/iproute2/iproute2.git'
12 depends=('glibc' 'iptables' 'libelf')
13 optdepends=('db: userspace arp daemon'
15 'linux-atm: ATM support')
17 backup=('etc/iproute2/ematch_map'
18 'etc/iproute2/rt_dsfield'
19 'etc/iproute2/rt_protos'
20 'etc/iproute2/rt_realms'
21 'etc/iproute2/rt_scopes'
22 'etc/iproute2/rt_tables')
23 makedepends=('linux-atm')
24 options=('staticlibs')
25 validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
26 source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
27 '0001-make-iproute2-fhs-compliant.patch')
28 sha256sums=('38e3e4a5f9a7f5575c015027a10df097c149111eeb739993128e5b2b35b291ff'
30 'f60fefe4c17d3b768824bb50ae6416292bcebba06d73452e23f4147b46b827d3')
33 cd "${srcdir}/${pkgname}-${pkgver}"
35 # set correct fhs structure
36 patch -Np1 -i "${srcdir}"/0001-make-iproute2-fhs-compliant.patch
38 # do not treat warnings as errors
39 sed -i 's/-Werror//' Makefile
44 cd "${srcdir}/${pkgname}-${pkgver}"
51 cd "${srcdir}/${pkgname}-${pkgver}"
53 make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
55 # libnetlink isn't installed, install it FS#19385
56 install -Dm0644 include/libnetlink.h "${pkgdir}/usr/include/libnetlink.h"
57 install -Dm0644 lib/libnetlink.a "${pkgdir}/usr/lib/libnetlink.a"