GlobalProtect-openconnect/snap/snapcraft.yaml
2021-09-20 16:15:10 +08:00

76 lines
1.6 KiB
YAML

name: globalprotect-openconnect
base: core18
version: 'test'
summary: A GlobalProtect VPN client powered by OpenConnect
description: |
A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Qt5, supports SAML auth mode.
grade: devel
confinement: devmode # use 'strict' once you have the right plugs and slots
package-repositories:
- type: apt
ppa: dwmw2/openconnect
layout:
/usr/local/sbin:
bind: $SNAP/usr/sbin
/usr/share/vpnc-scripts:
bind: $SNAP/usr/share/vpnc-scripts
/usr/share/locale:
bind: $SNAP/usr/share/locale
slots:
gpservice-slot:
interface: dbus
bus: system
name: com.yuezk.qt.GPService
plugs:
gpservice-plug:
interface: dbus
bus: system
name: com.yuezk.qt.GPService
apps:
gpservice:
daemon: simple
command: usr/bin/gpservice
command-chain:
- snap/command-chain/desktop-launch
environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
plugs:
- network
slots:
- gpservice-slot
gpclient:
common-id: com.yuezk.qt.gpclient
command: usr/bin/gpclient
desktop: usr/share/applications/com.yuezk.qt.gpclient.desktop
extensions:
- kde-neon
plugs:
- desktop
- desktop-legacy
- wayland
- unity7
- x11
- network
- gpservice-plug
parts:
application:
plugin: cmake
source: .
build-packages:
- libglu1-mesa-dev
build-snaps:
- kde-frameworks-5-core18-sdk
stage-packages:
- openconnect
- libatm1
configflags:
- -DCMAKE_BUILD_TYPE=Release