From e35a4b42261d0af893450424adc17d65fb4a1866 Mon Sep 17 00:00:00 2001
From: James Hebden <james@ec0.io>
Date: Wed, 25 Mar 2020 12:55:30 +1100
Subject: [PATCH] Add snapcraft packaging

Signed-off-by: James Hebden <james@ec0.io>
---
 .gitignore          |  1 +
 snap/snapcraft.yaml | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 snap/snapcraft.yaml

diff --git a/.gitignore b/.gitignore
index e961c5d..4b31e83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,4 @@ openfortivpn
 doc/*.1
 config.sub
 config.guess
+*.snap
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..5095ef9
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,25 @@
+---
+name: openfortivpn
+version: git
+base: core18
+summary: openfortivpn, a PPP+SSL VPN client
+description: |
+    Openfortivpn is a client for PPP+SSL VPN tunnel services.
+    It spawns a pppd process and operates the communication between
+    the gateway and this process.
+confinement: strict
+grade: stable
+
+apps:
+    openfortivpn:
+        command: openfortivpn
+        plugs: [network-bind]
+
+parts:
+    openfortivpn:
+        plugin: autotools
+        source: .
+        build-packages:
+            - build-essential
+            - pkg-config
+            - libssl-dev
-- 
GitLab