From d5b57d8505fa1f556d987f3ec119124ab7e0eb81 Mon Sep 17 00:00:00 2001 From: Petr Gotthard Date: Thu, 11 May 2023 16:32:51 +0000 Subject: [PATCH] strongswan: add PACKAGECONFIG for the NetworkManager module Disabled by default. When enabled, a package 'strongswan-nm' gets created. The package naming follows Debian/Ubuntu. Signed-off-by: Petr Gotthard Signed-off-by: Khem Raj --- .../recipes-support/strongswan/strongswan_5.9.10.bb | 5 +++++ 1 file changed, 5 insertions(+) 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"