Added vpn-manager globalprotect backend v0.1

This commit is contained in:
Ezri Brimhall 2025-11-17 14:23:33 -07:00
parent ac41563955
commit 034d6b2754
Signed by: ezri
GPG Key ID: 058A78E5680C6F24
3 changed files with 39 additions and 0 deletions

1
vpn-manager-globalprotect/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!dev.ezri.vpn1.GlobalProtect.callback.desktop

View File

@ -0,0 +1,31 @@
# Maintainer: <ezri@gathering-storm>
_pkgname=vpn-manager-globalprotect
pkgname=${_pkgname}-git
pkgver=0.1
pkgrel=1
pkgdesc='GlobalProtect backends for vpn-manager'
arch=('any')
url='https://git.ezri.dev/vpn-manager/globalprotect-backend'
license=('AGPL-3.0')
makedepends=(python-build python-installer python-poetry python-wheel)
depends=(python-dbus-fast python-requests python-aenum python-psutil vpn-manager)
source=("vpn-manager-globalprotect::https://git.ezri.dev/vpn-manager/globalprotect-backend/archive/v${pkgver}.tar.gz")
sha1sums=('da1693eb572fed95d73080fcf70c04344ba8bf7bbdb4edc3154f0fab9b80a289')
conflicts=($_pkgname)
provides=($_pkgname)
prepare() {
git -C "${srcdir}/${_pkgname}" clean -dfx
}
build() {
cd $_pkgname
python -m build --wheel --no-isolation
}
package() {
cd $_pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "${startdir}/dev.ezri.vpn1.GlobalProtect.callback.desktop" "${pkgdir}/usr/share/applications/dev.ezri.vpn1.GlobalProtect.callback.desktop"
}

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=GlobalProtect callback for VPN Manager
Comment=testing
Exec=/usr/bin/gp-saml-auth-response %u
MimeType=x-scheme-handler/globalprotectcallback;