diff --git a/README.md b/README.md index 54b0229..e46ba56 100644 --- a/README.md +++ b/README.md @@ -181,14 +181,22 @@ doas pkg_add -D unsigned ./globalprotect-openconnect-*-openbsd-*.tgz ### Gentoo -Available via the `guru` repository: +Add the overlay: ```bash -sudo eselect repository enable guru -sudo emerge --sync guru -sudo emerge --ask net-vpn/GlobalProtect-openconnect +sudo emerge --ask app-eselect/eselect-repository dev-vcs/git +sudo eselect repository add yuezk git https://github.com/yuezk/gentoo-overlay.git +sudo emerge --sync yuezk ``` +Install the prebuilt package (glibc): + +```bash +sudo emerge --ask net-vpn/globalprotect-openconnect-bin::yuezk +``` + +For a source build, use `net-vpn/globalprotect-openconnect::yuezk`. If Portage requests keyword or USE flag changes, review and apply them, then rerun the install command. + ### NixOS Add the flake to your `flake.nix`: diff --git a/crates/openconnect/build.rs b/crates/openconnect/build.rs index 6ae59fd..d93597a 100644 --- a/crates/openconnect/build.rs +++ b/crates/openconnect/build.rs @@ -115,6 +115,7 @@ fn build_openconnect(deps_dir: &PathBuf, out_dir: &PathBuf) -> PathBuf { .without("libpcsclite", None) .without("libpskc", None) .without("gssapi", None) + .with("builtin-json", None) .with("gnutls", None) .without("openssl", None) .with("gnutls-tss2", Some("no"))