107.13. iputils-20250605
ping, arping, tracepath and clockdiff — ping runs unprivileged through ICMP sockets
20250605-1 · BSD-3-Clause AND GPL-2.0-or-later · 0.2 SBU · 288.7 KiB, 9 files · 41_system, 792 of 1047 · ports/core/net-diag/iputils
Homepage: https://github.com/iputils/iputils
iputils provides ping, arping, tracepath and clockdiff. ping needs no privilege: it opens an ICMP datagram socket, which /etc/sysctl.conf lets every user do through net.ipv4.ping_group_range; see setuid binaries.
Depends on: libcap, meson, ninja.
Required by: no port names it.
Sources: iputils-20250605.tar.xz (460.8 KiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-DUSE_IDN=false, line 13: libidn (explained with the switches below)
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install iputils'
build.sh:
meson setup build --prefix=/usr --buildtype=release \
-DNO_SETCAP_OR_SUID=true -DUSE_GETTEXT=false -DUSE_IDN=false -DBUILD_MANS=false \
-DSKIP_TESTS=true
ninja -C build
DESTDIR=$PKG ninja -C build install
install -Dm644 doc/*.8 -t "$PKG/usr/share/man/man8"
-DNO_SETCAP_OR_SUID=true— Install every program without a setuid bit or a file capability.pingneeds neither on a kernel with ICMP datagram sockets;arpingandclockdiffare run as root.-DUSE_IDN=false— Build without internationalised domain names. With IDN on,ping,tracepathandarpingpassAI_IDNtogetaddrinfo, a glibc extension that musl rejects withEAI_BADFLAGS; inpingandtracepathevery lookup, a numeric address included, then fails withInvalid flags. Without it a host name is looked up as written, and a non-ASCII name must be given in itsxn--form.-DUSE_GETTEXT=false— No message catalogues are built; the programs print English.-DBUILD_MANS=false— The manual pages are built with DocBook XSL; the release tarball carries them already built underdoc/, whichbuild.shinstalls.
Programs: arping, clockdiff, ping, tracepath.
Directories: /usr/share/licenses/iputils.