diff mbox series

[meta-networking,v2] openfortivpn: add new recipe

Message ID TY2PR02MB3678782F00D00359FD526A17817A9@TY2PR02MB3678.apcprd02.prod.outlook.com
State Under Review
Headers show
Series [meta-networking,v2] openfortivpn: add new recipe | expand

Commit Message

Petr Gotthard May 13, 2023, 1:17 p.m. UTC
A client for PPP+SSL VPN tunnel services, compatible with Fortinet VPNs.
https://github.com/adrienverge/openfortivpn

Signed-off-by: Petr Gotthard <petr.gotthard@advantech.cz>
---
 .../openfortivpn/openfortivpn_1.20.3.bb       | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.20.3.bb

-- 
2.34.1
diff mbox series

Patch

diff --git a/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.20.3.bb b/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.20.3.bb
new file mode 100644
index 0000000000..bfd51f7f70
--- /dev/null
+++ b/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.20.3.bb
@@ -0,0 +1,26 @@ 
+SUMMARY = "Client for PPP+SSL VPN tunnel services"
+LICENSE = "GPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3d575262a651a6f1a17210ce41bf907d"
+
+SRC_URI = "git://github.com/adrienverge/openfortivpn.git;protocol=https;branch=master"
+SRCREV = "45cb8e0f9984f1d54b648e499bda637d96568908"
+
+DEPENDS = "openssl"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+
+PACKAGECONFIG[resolvconf] = "--with-resolvconf=${base_sbindir}/resolvconf --enable-resolvconf,--with-resolvconf=DISABLED,,"
+PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir,,"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig systemd
+
+EXTRA_OECONF = " \
+    --with-pppd=${sbindir}/pppd \
+    --disable-proc \
+"
+
+SYSTEMD_SERVICE:${PN} = "openfortivpn@.service"
+
+RDEPENDS:${PN} = "ppp"