connman: fix systemd support for connman-* packages.
PATCH 1/1 connman: fix systemd support for connman-* packages.
This patch fixes systemd's postinst/postrm script generation.
Signed-off-by Yevhen Kyriukha <[email protected]>
--- meta/recipes-connectivity/connman/connman.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-connectivity/connman/connman.inc +1 -0
@@ -56,6 +56,7 @@ PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls," INITSCRIPT_NAME = "connman" INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." +SYSTEMD_PACKAGES = "${PN} ${PN}-vpn" SYSTEMD_SERVICE_${PN} = "connman.service" SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"
Signature · 1 line
1.8.1.2
Quoted 12 lines · Yevhen Kyriukha
This patch fixes systemd's postinst/postrm script generation.
Signed-off-by Yevhen Kyriukha <[email protected]>--- meta/recipes-connectivity/connman/connman.inc | 1 + 1 file changed, 1 insertion(+)meta/recipes-connectivity/connman/connman.inc +0
-0
meta/recipes-connectivity/connman/connman.inc PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls," · line 59
Quoted 4 lines
meta/recipes-connectivity/connman/connman.inc +1
-0@@ -56,6 +56,7 @@ PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls," INITSCRIPT_NAME = "connman" INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." +SYSTEMD_PACKAGES = "${PN} ${PN}-vpn"
This needs to be guarded with a check for the vpn in PACKAGECONFIG, otherwise a packaging error can occur since the service file is not available:
ERROR: Function failed: SYSTEMD_SERVICE_connman-vpn value connman-vpn.service does not exist
Please correct this.
Thanks
Sau!
Quoted 4 lines
meta/recipes-connectivity/connman/connman.inc +0
-0SYSTEMD_SERVICE_${PN} = "connman.service" SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"