I wrote an ebuild for a git prerelease snapshot.of netowrkmanager-openconnect. It was quite buggy for me (could connect to the portal but not the gateway, also needed the VPN settings opened to get the dialog box, in addition, you need to press Logiin on the auth dialog box to get the web page to appear)) , although it open up the web browser and ask for credential, I was able to login to the portal successfully.
Call it "networkmanager-openconnect-1.2.9_pre20220526.ebuild"
Code: Select all
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
GNOME_ORG_MODULE="NetworkManager-${PN##*-}"
GIT_HASH="cb3dedbaf641e5dad6cfcda81b1bd9dd8fa4a840"
inherit gnome2
DESCRIPTION="NetworkManager OpenConnect plugin"
HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager https://gitlab.gnome.org/GNOME/NetworkManager-openconnect"
SRC_URI="https://gitlab.gnome.org/GNOME/${PN}/-/archive/${GIT_HASH}/${PN}-${GIT_HASH}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="gtk"
DEPEND="
>=net-misc/networkmanager-1.2:=
>=dev-libs/glib-2.34:2
>=dev-libs/dbus-glib-0.74
dev-libs/libxml2:2
>=net-vpn/openconnect-3.02:=
gtk? (
>=app-crypt/libsecret-0.18
>=app-crypt/gcr-3.4:0=
>=x11-libs/gtk+-3.12:3
>=gui-libs/gtk-4.0:4
>=net-libs/libnma-1.8.36
net-libs/webkit-gtk
)
"
RDEPEND="
${DEPEND}
acct-group/nm-openconnect
acct-user/nm-openconnect
"
BDEPEND="
sys-devel/gettext
dev-util/intltool
virtual/pkgconfig
"
src_unpack() {
default
mv "${GNOME_ORG_MODULE}-${GIT_HASH}" "${GNOME_ORG_MODULE}-${PV}" || die
}
src_prepare() {
${S}/autogen.sh
# Bug #830257
sed -i 's|/appdata|/metainfo|g' Makefile.{in,am} || die
default
}
src_configure() {
gnome2_src_configure \
--disable-more-warnings \
--disable-static \
--without-libnm-glib \
$(use_with gtk gnome) \
$(use_with gtk authdlg) \
$(use_with gtk gtk4)
}
Upstream doesn't seem to be very active. The last non-translation commit was in May 2022 (unless development has moved elsewhere).