Skip to contentSkip to conversation

connman: fix systemd support for connman-* packages.

PATCH Superseded Yevhen Kyriukha 2 participants 2 messages Aug 12, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 connman: fix systemd support for connman-* packages.

This patch fixes systemd's postinst/postrm script generation.

---
 meta/recipes-connectivity/connman/connman.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-connectivity/connman/connman.inc +1 -0
index 6b5ea0b..c5014b7 100644
@@ -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
#1 lore raw
Quoted 12 lines · Yevhen Kyriukha

This patch fixes systemd's postinst/postrm script generation.

---
  meta/recipes-connectivity/connman/connman.inc | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-connectivity/connman/connman.inc +0 -0
index 6b5ea0b..c5014b7 100644

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 -0
  SYSTEMD_SERVICE_${PN} = "connman.service"
  SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
  SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"