summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman.inc
diff options
context:
space:
mode:
authorYevhen Kyriukha <kirgene@gmail.com>2013-08-13 14:26:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-22 18:30:04 +0100
commit2d4b261dd3995f9942f5741e0908891a997b5263 (patch)
treea7238f37c5d63ab1e21c0daa2d8d6f744a94007e /meta/recipes-connectivity/connman/connman.inc
parent557d1c74bf7994f8cce1d9ae92dbb98098f03f93 (diff)
downloadpoky-2d4b261dd3995f9942f5741e0908891a997b5263.tar.gz
connman: fix systemd support for connman-* packages.
This patch fixes systemd's postinst/postrm script generation. (From OE-Core rev: 657c7724966fdbd1236cb003419f01c885bcd570) Signed-off-by: Yevhen Kyriukha <kirgene@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-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,"
56INITSCRIPT_NAME = "connman" 56INITSCRIPT_NAME = "connman"
57INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." 57INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
58 58
59python __anonymous () {
60 systemd_packages = "${PN}"
61 pkgconfig = d.getVar('PACKAGECONFIG', True)
62 if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split():
63 systemd_packages += " ${PN}-vpn"
64 d.setVar('SYSTEMD_PACKAGES', systemd_packages)
65}
66
59SYSTEMD_SERVICE_${PN} = "connman.service" 67SYSTEMD_SERVICE_${PN} = "connman.service"
60SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" 68SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
61SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup" 69SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"