diff mbox series

[meta-networking] strongswan: add PACKAGECONFIG for the NetworkManager module

Message ID TY2PR02MB367818CCB1135690DB7D395181749@TY2PR02MB3678.apcprd02.prod.outlook.com
State Under Review
Headers show
Series [meta-networking] strongswan: add PACKAGECONFIG for the NetworkManager module | expand

Commit Message

Petr Gotthard May 11, 2023, 4:32 p.m. UTC
Disabled by default. When enabled, a package 'strongswan-nm' gets created.
The package naming follows Debian/Ubuntu.

Signed-off-by: Petr Gotthard <petr.gotthard@advantech.cz>
---
 .../recipes-support/strongswan/strongswan_5.9.10.bb          | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.34.1
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.9.10.bb b/meta-networking/recipes-support/strongswan/strongswan_5.9.10.bb
index 9caa248fb2..aecd321398 100644
--- a/meta-networking/recipes-support/strongswan/strongswan_5.9.10.bb
+++ b/meta-networking/recipes-support/strongswan/strongswan_5.9.10.bb
@@ -38,6 +38,7 @@  PACKAGECONFIG[eap-mschapv2] = "--enable-eap-mschapv2,--disable-eap-mschapv2,,${P
 PACKAGECONFIG[gmp] = "--enable-gmp,--disable-gmp,gmp,${PN}-plugin-gmp"
 PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap,${PN}-plugin-ldap"
 PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5,${PN}-plugin-mysql"
+PACKAGECONFIG[nm] = "--enable-nm,--disable-nm,networkmanager,${PN}-nm"
 PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl,${PN}-plugin-openssl"
 PACKAGECONFIG[soup] = "--enable-soup,--disable-soup,libsoup-2.4,${PN}-plugin-soup"
 PACKAGECONFIG[sqlite3] = "--enable-sqlite,--disable-sqlite,sqlite3,${PN}-plugin-sqlite"
@@ -101,6 +102,10 @@  ALLOW_EMPTY:${PN}-imcvs = "1"
 FILES:${PN}-imcvs = "${libdir}/ipsec/imcvs/*.so"
 FILES:${PN}-imcvs-dbg += "${libdir}/ipsec/imcvs/.debug"
 
+PACKAGES =+ "${PN}-nm ${PN}-nm-dbg"
+FILES:${PN}-nm = "${libexecdir}/ipsec/charon-nm ${datadir}/dbus-1/system.d/nm-strongswan-service.conf"
+FILES:${PN}-nm-dbg = "${libexecdir}/ipsec/.debug/charon-nm"
+
 PACKAGES_DYNAMIC += "^${PN}-plugin-.*$"
 NOAUTOPACKAGEDEBUG = "1"