Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

106.22. openconnect-9.21

Client for AnyConnect, GlobalProtect, Fortinet and Pulse VPNs

9.21-1 · LGPL-2.1-only · 0.4 SBU · 815.9 KiB, 16 files · 41_system, 814 of 1047 · ports/core/network/openconnect

Homepage: https://www.infradead.org/openconnect/

Why it is in KDOS. The comment above vpnc-script and openconnect in script/phases/41_system/packages.d/network.txt:

Corporate VPN: AnyConnect, GlobalProtect, Fortinet and Pulse. The script is what gives the tunnel its routes — openconnect execs it on every connect.

NO NetworkManager PLUGIN. Upstream's checks webkit2gtk UNCONDITIONALLY, and the dialog it builds with it is the thing the VPN service delegates authentication to. No recipe builds it against the webkitgtk port, and a build with the dialog disabled would be a connection type the surface offers and cannot authenticate.

openconnect is a client for the SSL VPNs of Cisco AnyConnect, Palo Alto GlobalProtect, Fortinet, Pulse and others: it signs in, opens the tunnel on a tun device and runs vpnc-script to give the tunnel its addresses, routes and name servers. How to configure it and connect is in VPN.

Depends on: gnutls, libxml2, zlib, vpnc-script, lz4, krb5, tpm2-tss, libtasn1, p11-kit, pcsc-lite, nettle, xdg-utils.

Required by: no port names it.

Sources: openconnect-9.21.tar.gz (2.9 MiB). 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.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install openconnect'

build.sh:

./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
	--disable-static \
	--with-gnutls \
	--without-openssl \
	--with-gssapi \
	--with-gnutls-tss2=tss2-esys \
	--with-libpcsclite \
	--without-stoken \
	--without-libproxy \
	--without-libpskc \
	--with-builtin-json \
	--with-external-browser=/usr/bin/xdg-open \
	--with-vpnc-script=/usr/share/vpnc-scripts/vpnc-script \
	--disable-nls
make
make DESTDIR=$PKG install
rm "$PKG/usr/libexec/openconnect/hipreport-android.sh"

Programs: openconnect.

Libraries: libopenconnect.so.

Directories: /usr/libexec/openconnect, /usr/share/licenses/openconnect.

hipreport-android.sh is removed from /usr/libexec/openconnect after the install. It is the Android variant of the GlobalProtect HIP report script, whose first line is #!/system/bin/sh, an interpreter that exists only on Android; hipreport.sh, the one for Linux, stays, and --csd-wrapper=/usr/libexec/openconnect/hipreport.sh is the one to name.