iproute2: update to 4.20.0.

This commit is contained in:
Christian Buschau 2019-01-08 19:17:35 +01:00 committed by maxice8
parent 7a0c317e83
commit 9c2d85e8c0
2 changed files with 30 additions and 26 deletions

View file

@ -0,0 +1,15 @@
Upstream: No
Reason: FTBFS
diff --git tc/f_flower.c tc/f_flower.c
index 65fca04..5043907 100644
--- tc/f_flower.c
+++ tc/f_flower.c
@@ -19,6 +19,7 @@
#include <linux/ip.h>
#include <linux/tc_act/tc_vlan.h>
#include <linux/mpls.h>
+#include <linux/limits.h>
#include "utils.h"
#include "tc_util.h"

View file

@ -1,41 +1,30 @@
# Template file for 'iproute2'
pkgname=iproute2
version=4.16.0
version=4.20.0
revision=1
build_style=configure
make_install_args="SBINDIR=/usr/bin"
conf_files="
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables"
hostmakedepends="pkg-config perl flex"
makedepends="libfl-devel libmnl-devel db-devel iptables-devel"
conf_files="
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables"
short_desc="IP Routing Utilities"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="http://www.linux-foundation.org/en/Net:Iproute2"
license="GPL-2"
license="GPL-2.0-only"
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
distfiles="${KERNEL_SITE}/utils/net/$pkgname/$pkgname-$version.tar.xz"
checksum=0c5c24020fd7349fe25728c5edee9fb6a1bc8a38f08e23be5c57a6301e55ee0a
checksum=c8adaa6a40f888476b23acb283cfa30c0dd55f07b5aa20663ed5ba2ef1f6fda8
do_configure() {
./configure
sed -i 's,CCOPTS,HOSTCCOPTS,g' netem/Makefile
sed -i 's/^LDFLAGS +=/override &/' */Makefile
}
do_build() {
make HOSTCC=cc CC="$CC" RANLIB="$RANLIB" AR="$AR" LD="$LD" \
CCOPTS="$CFLAGS" HOSTCCOPTS="$XBPS_CFLAGS" LDFLAGS="$LDFLAGS" \
DBM_INCLUDE="$XBPS_CROSS_BASE/usr/include" ${makejobs}
}
do_check() {
cd testsuite
make
make -C testsuite
}
do_install() {
make DESTDIR=${DESTDIR} SBINDIR=/usr/bin install
post_install() {
rm -r ${DESTDIR}/usr/share/doc
rm -r ${DESTDIR}/usr/share/man/man3
}