diff options
author | Yevhen Kyriukha <kirgene@gmail.com> | 2013-08-13 14:26:46 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-22 18:30:04 +0100 |
commit | 2d4b261dd3995f9942f5741e0908891a997b5263 (patch) | |
tree | a7238f37c5d63ab1e21c0daa2d8d6f744a94007e | |
parent | 557d1c74bf7994f8cce1d9ae92dbb98098f03f93 (diff) | |
download | ast2050-yocto-poky-2d4b261dd3995f9942f5741e0908891a997b5263.zip ast2050-yocto-poky-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>
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index 6b5ea0b..37ce3ec 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" |