Merge pull request #723 from yuezk/fix/gentoo-install-and-json

fix: use bundled JSON parser and document Gentoo installation
This commit is contained in:
Kevin Yue authored and GitHub committed 2026-11-20 13:26:05 +08:00
commit bacaf94cf2
2 files changed
+13 -4

No files matched your search

+12 -4
View File
@@ -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`:
+1
View File
@@ -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"))