This guide builds the open-source components from the GlobalProtect-openconnect repository on FreeBSD or OpenBSD.
Clone GlobalProtect-openconnect:
mkdir gp-build
cd gp-build
git clone --recurse-submodules https://github.com/yuezk/GlobalProtect-openconnect.git gpInstall build and runtime dependencies:
sudo pkg install git rust libiconv gettext-tools autoconf automake libtool patch \
gmake pkgconf libxml2 gnutls p11-kit nettle gmp gnome-keyring \
libayatana-appindicator polkit webkit2-gtk_41Build and install:
cd gp
cargo build --release --workspace
sudo gmake install-bsdVerify the installed binaries:
gpclient --version
gpauth --versionInstall build and runtime dependencies:
doas pkg_add git rust libiconv gettext-tools autoconf-2.72 automake-1.17 \
libtool patch gmake pkgconf libxml gnutls p11-kit nettle gmp \
gnome-keyring polkit webkitgtk41Use the installed Autoconf and Automake versions:
export AUTOCONF_VERSION=2.72
export AUTOMAKE_VERSION=1.17If your shell cannot resolve the versioned tools automatically, add the usual unversioned command links:
doas ln -sf /usr/local/bin/autoreconf-2.72 /usr/local/bin/autoreconf
doas ln -sf /usr/local/bin/autoconf-2.72 /usr/local/bin/autoconf
doas ln -sf /usr/local/bin/autoheader-2.72 /usr/local/bin/autoheader
doas ln -sf /usr/local/bin/autom4te-2.72 /usr/local/bin/autom4te
doas ln -sf /usr/local/bin/aclocal-1.17 /usr/local/bin/aclocal
doas ln -sf /usr/local/bin/automake-1.17 /usr/local/bin/automakeBuild and install:
cd gp
cargo build --release --workspace
doas gmake install-bsdVerify the installed binaries:
gpclient --version
gpauth --versionAfter installation, check the CLI help:
gpclient --help