Skip to content

Latest commit

 

History

History
91 lines (64 loc) · 1.86 KB

File metadata and controls

91 lines (64 loc) · 1.86 KB

Building from Source on FreeBSD and OpenBSD

This guide builds the open-source components from the GlobalProtect-openconnect repository on FreeBSD or OpenBSD.

Workspace

Clone GlobalProtect-openconnect:

mkdir gp-build
cd gp-build
git clone --recurse-submodules https://github.com/yuezk/GlobalProtect-openconnect.git gp

FreeBSD

Install 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_41

Build and install:

cd gp
cargo build --release --workspace

sudo gmake install-bsd

Verify the installed binaries:

gpclient --version
gpauth --version

OpenBSD

Install 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 webkitgtk41

Use the installed Autoconf and Automake versions:

export AUTOCONF_VERSION=2.72
export AUTOMAKE_VERSION=1.17

If 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/automake

Build and install:

cd gp
cargo build --release --workspace

doas gmake install-bsd

Verify the installed binaries:

gpclient --version
gpauth --version

Verify

After installation, check the CLI help:

gpclient --help