summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorYevhen Kyriukha <kirgene@gmail.com>2013-08-13 14:26:46 +0300
committerSaul Wold <sgw@linux.intel.com>2013-08-22 09:15:35 -0700
commit657c7724966fdbd1236cb003419f01c885bcd570 (patch)
tree03e66c098d7728511814e4fb40415e7d850e88f3 /meta/recipes-connectivity
parent46b8009d668478c5ed3e8b64c65f1de2a4dc25b3 (diff)
downloadopenembedded-core-657c7724966fdbd1236cb003419f01c885bcd570.tar.gz
openembedded-core-657c7724966fdbd1236cb003419f01c885bcd570.tar.bz2
openembedded-core-657c7724966fdbd1236cb003419f01c885bcd570.zip
connman: fix systemd support for connman-* packages.
This patch fixes systemd's postinst/postrm script generation. Signed-off-by: Yevhen Kyriukha <kirgene@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/connman/connman.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index 6b5ea0b17b..37ce3ec7bb 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -56,6 +56,14 @@ PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls,"
INITSCRIPT_NAME = "connman"
INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
+python __anonymous () {
+ systemd_packages = "${PN}"
+ pkgconfig = d.getVar('PACKAGECONFIG', True)
+ if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split():
+ systemd_packages += " ${PN}-vpn"
+ d.setVar('SYSTEMD_PACKAGES', systemd_packages)
+}
+
SYSTEMD_SERVICE_${PN} = "connman.service"
SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"