{ "name": "iproute2", "version": "7.2.0", "summary": "iproute2: ip, ss, tc, bridge and the other Linux tools for addresses, routes, sockets and traffic control", "category": "network", "license": "GPL-2.0-or-later", "homepage": "https://wiki.linuxfoundation.org/networking/iproute2", "source": { "url": "https://mirrors.kernel.org/pub/linux/utils/net/iproute2/iproute2-7.2.0.tar.xz", "sha256": "4c2fa124c2cf0afd7ca34d1eeacba6ba048a56f6374e2aab93dafbdbd4eea9c0" }, "watch": {"kind": "index", "url": "https://mirrors.kernel.org/pub/linux/utils/net/iproute2/", "regex": "iproute2-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.xz", "checksum": "https://mirrors.kernel.org/pub/linux/utils/net/iproute2/sha256sums.asc"}, "deps": [ "libmnl" ], "env_packages": [], "static": true, "nss": true, "check": "sbin/ip -V | has 'iproute2-7.2.0' && sbin/ip -br addr show dev lo | has '127.0.0.1/8' && sbin/ip -j route show table local | has '\"dst\":\"127.0.0.1\"' && { if [ -n \"$HOST\" ]; then echo \"iproute2: tc not run in a cross build (qemu-user does not pass on its netlink request)\"; else sbin/tc qdisc show dev lo | has '^qdisc '; fi; } && t=$(mktemp -d) && P=$(free_port) && { python3 -c 'import socket,sys,time; s=socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1); s.bind((\"127.0.0.1\", int(sys.argv[1]))); s.listen(1); time.sleep(30)' \"$P\" & echo $! > \"$t/pid\"; } && wait_port \"$P\" && sbin/ss -Hltn \"sport = :$P\" | has \"127.0.0.1:$P\" && sbin/bridge -V | first && echo \"iproute2: the loopback address and routes, its queueing discipline (not in a cross build), a listener on port $P found by ss\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }