# Maintainer: Natanael Copa pkgname=iproute2 pkgver=6.4.0 pkgrel=0 pkgdesc="IP Routing Utilities" url="https://wiki.linuxfoundation.org/networking/iproute2" arch="all" license="GPL-2.0-or-later" install="$pkgname.post-install" depends=" $pkgname-minimal $pkgname-tc $pkgname-ss " makedepends=" bash bison elfutils-dev libcap-dev libmnl-dev flex iptables-dev " subpackages=" $pkgname-doc $pkgname-dev $pkgname-bash-completion $pkgname-minimal $pkgname-tc $pkgname-ss $pkgname-rdma " source="https://kernel.org/pub/linux/utils/net/iproute2/iproute2-$pkgver.tar.xz include.patch " options="!check" # requires namespaces support and root # secfixes: # 5.1.0-r0: # - CVE-2019-20795 build() { export CFLAGS="$CFLAGS -flto=auto" make V=1 } package() { make DESTDIR="$pkgdir" install install -D -m644 include/libnetlink.h "$pkgdir"/usr/include/libnetlink.h install -D -m644 lib/libnetlink.a "$pkgdir"/usr/lib/libnetlink.a } minimal() { pkgdesc="IP Routing Utilities (/sbin/ip only)" depends="" replaces="$pkgname" # for backward compatibility (Alpine <3.13) amove sbin/ip amove etc } tc() { pkgdesc="$pkgdesc (traffic control and XDP support)" depends="" replaces="$pkgname" # for backward compatibility (Alpine <3.13) amove sbin/tc amove usr/lib/tc } ss() { pkgdesc="$pkgdesc (socket statistics tool)" depends="" replaces="$pkgname" # for backward compatibility (Alpine <3.13) amove sbin/ss } rdma() { pkgdesc="$pkgdesc (rdma utilities)" depends="" amove sbin/dcb amove sbin/devlink amove sbin/rdma amove sbin/tipc amove sbin/vdpa } sha512sums=" 42330be6e061302694ea301765ff8d3cbfaeca4b1d06e39778861e4390ed211c03cb2d41498190202b659f7f5647b1ca4857410ef8c16fd601a35e7162788d21 iproute2-6.4.0.tar.xz d6b48f9c4148cc681cca2a27772b9cfaa5e41321b3a3a6de4a9685c11d49580a5006b31a080292f02213a51fddcecaf916eeced664269e104e585e3f0d20208e include.patch "