61 lines
1.7 KiB
Text
61 lines
1.7 KiB
Text
# Maintainer: Christian Hesse <mail@eworm.de>
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
pkgname=iproute2
|
|
pkgver=5.16.0
|
|
pkgrel=1
|
|
pkgdesc='IP Routing Utilities'
|
|
arch=('x86_64')
|
|
license=('GPL2')
|
|
url='https://git.kernel.org/pub/scm/network/iproute2/iproute2.git'
|
|
depends=('glibc' 'iptables' 'libelf')
|
|
optdepends=('db: userspace arp daemon'
|
|
'libcap: tipc'
|
|
'linux-atm: ATM support')
|
|
provides=('iproute')
|
|
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')
|
|
makedepends=('linux-atm')
|
|
options=('staticlibs')
|
|
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
|
|
source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
|
|
'0001-make-iproute2-fhs-compliant.patch')
|
|
sha256sums=('c064b66f6b001c2a35aa5224b5b1ac8aa4bee104d7dce30d6f10a84cb8b01e2f'
|
|
'SKIP'
|
|
'f60fefe4c17d3b768824bb50ae6416292bcebba06d73452e23f4147b46b827d3')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# set correct fhs structure
|
|
patch -Np1 -i "${srcdir}"/0001-make-iproute2-fhs-compliant.patch
|
|
|
|
# do not treat warnings as errors
|
|
sed -i 's/-Werror//' Makefile
|
|
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
export CFLAGS+=' -ffat-lto-objects'
|
|
|
|
./configure
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
|
|
|
|
# libnetlink isn't installed, install it FS#19385
|
|
install -Dm0644 include/libnetlink.h "${pkgdir}/usr/include/libnetlink.h"
|
|
install -Dm0644 lib/libnetlink.a "${pkgdir}/usr/lib/libnetlink.a"
|
|
}
|
|
|