[gnome-build-meta/valentindavid/network-manager-vpns: 54/54] Add some VPN backends for NetworkManager




commit d12808ee23001f35ed72666d99e1e9d322de759b
Author: Valentin David <valentin david codethink co uk>
Date:   Tue Apr 27 11:18:34 2021 +0200

    Add some VPN backends for NetworkManager
    
    This adds backends for
    - openconnect
    - openvpn
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/1117>

 elements/vm/NetworkManager-openconnect.bst | 16 ++++++++++++++++
 elements/vm/NetworkManager-openvpn.bst     | 16 ++++++++++++++++
 elements/vm/common-deps.bst                |  3 +++
 elements/vm/openconnect.bst                | 16 ++++++++++++++++
 elements/vm/openvpn.bst                    | 14 ++++++++++++++
 elements/vm/vpnc-scripts.bst               | 13 +++++++++++++
 6 files changed, 78 insertions(+)
---
diff --git a/elements/vm/NetworkManager-openconnect.bst b/elements/vm/NetworkManager-openconnect.bst
new file mode 100644
index 00000000..cf8e95d7
--- /dev/null
+++ b/elements/vm/NetworkManager-openconnect.bst
@@ -0,0 +1,16 @@
+kind: autotools
+
+sources:
+- kind: tar
+  url: gnome_downloads:NetworkManager-openconnect/1.2/NetworkManager-openconnect-1.2.6.tar.xz
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
+- core-deps/intltool.bst
+
+depends:
+- sdk/gcr.bst
+- sdk/gtk+-3.bst
+- core-deps/NetworkManager.bst
+- vm/openconnect.bst
+
diff --git a/elements/vm/NetworkManager-openvpn.bst b/elements/vm/NetworkManager-openvpn.bst
new file mode 100644
index 00000000..1eb0c9da
--- /dev/null
+++ b/elements/vm/NetworkManager-openvpn.bst
@@ -0,0 +1,16 @@
+kind: autotools
+
+sources:
+- kind: tar
+  url: gnome_downloads:NetworkManager-openvpn/1.8/NetworkManager-openvpn-1.8.14.tar.xz
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
+- core-deps/intltool.bst
+
+depends:
+- sdk/gtk+-3.bst
+- sdk/libsecret.bst
+- core-deps/libnma.bst
+- core-deps/NetworkManager.bst
+- vm/openvpn.bst
diff --git a/elements/vm/common-deps.bst b/elements/vm/common-deps.bst
index b3b0be88..99721666 100644
--- a/elements/vm/common-deps.bst
+++ b/elements/vm/common-deps.bst
@@ -23,6 +23,9 @@ depends:
 - vm/uresourced.bst
 - vm/android-udev-rules.bst
 
+- vm/NetworkManager-openvpn.bst
+- vm/NetworkManager-openconnect.bst
+
 - freedesktop-sdk.bst:vm/config/sudo.bst
 - freedesktop-sdk.bst:vm/config/useradd-ostree.bst
 - freedesktop-sdk.bst:vm/mesa-default.bst
diff --git a/elements/vm/openconnect.bst b/elements/vm/openconnect.bst
new file mode 100644
index 00000000..ea86e315
--- /dev/null
+++ b/elements/vm/openconnect.bst
@@ -0,0 +1,16 @@
+kind: autotools
+
+sources:
+- kind: tar
+  url: ftp://ftp.infradead.org/pub/openconnect/openconnect-8.10.tar.gz
+
+variables:
+  conf-local: >-
+      --with-vpnc-script=/usr/share/vpnc-scripts
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
+
+depends:
+- freedesktop-sdk.bst:components/libxml2.bst
+- vm/vpnc-scripts.bst
diff --git a/elements/vm/openvpn.bst b/elements/vm/openvpn.bst
new file mode 100644
index 00000000..630e8082
--- /dev/null
+++ b/elements/vm/openvpn.bst
@@ -0,0 +1,14 @@
+kind: autotools
+
+sources:
+- kind: tar
+  url: https://swupdate.openvpn.org/community/releases/openvpn-2.5.1.tar.gz
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
+- freedesktop-sdk.bst:components/git-minimal.bst
+
+depends:
+- freedesktop-sdk.bst:components/lz4.bst
+- freedesktop-sdk.bst:components/lzo.bst
+- freedesktop-sdk.bst:components/linux-pam.bst
diff --git a/elements/vm/vpnc-scripts.bst b/elements/vm/vpnc-scripts.bst
new file mode 100644
index 00000000..d0107ad3
--- /dev/null
+++ b/elements/vm/vpnc-scripts.bst
@@ -0,0 +1,13 @@
+kind: manual
+
+sources:
+- kind: tar
+  url: ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-20210402.tar.gz
+
+config:
+  install-commands:
+  - |
+    install -Dm755 -t '%{install-root}%{datadir}/vpnc-scripts' vpnc-script*
+
+build-depends:
+- freedesktop-sdk.bst:bootstrap-import.bst


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]