summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman
diff options
context:
space:
mode:
authorRadu Moisan <radu.moisan@intel.com>2013-02-08 22:43:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-11 14:46:11 +0000
commit7c8160ccbe17d6e10bd7a09b91843182a89b9055 (patch)
treec1fc78c66a8755171886b7d4d1b9655e976cb876 /meta/recipes-connectivity/connman
parent3936cef145b698f6c116661d1b7902ba56796ea3 (diff)
downloadpoky-7c8160ccbe17d6e10bd7a09b91843182a89b9055.tar.gz
connman: Enabling with systemd
(From OE-Core rev: 352b3e3663fc4ccab2d8240176f4b085db726e82) Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman')
-rw-r--r--meta/recipes-connectivity/connman/connman.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index 5c9aa6de06..b61e2afd26 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -40,11 +40,14 @@ EXTRA_OECONF += "\
40 --disable-polkit \ 40 --disable-polkit \
41 --disable-client \ 41 --disable-client \
42 --enable-fake \ 42 --enable-fake \
43 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '', d)} \
43" 44"
44 45
45INITSCRIPT_NAME = "connman" 46INITSCRIPT_NAME = "connman"
46INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." 47INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
47 48
49SYSTEMD_SERVICE_${PN} = "connman.service"
50
48# IMPORTANT: because xuser is shared with rootless X, please make sure the 51# IMPORTANT: because xuser is shared with rootless X, please make sure the
49# USERADD_PARAM is in sync with the one in xserver-nodm-init.bb 52# USERADD_PARAM is in sync with the one in xserver-nodm-init.bb
50USERADD_PACKAGES = "${PN}" 53USERADD_PACKAGES = "${PN}"
@@ -52,7 +55,7 @@ USERADD_PARAM_${PN} = "--create-home \
52 --groups video,tty,audio \ 55 --groups video,tty,audio \
53 --user-group xuser" 56 --user-group xuser"
54 57
55inherit autotools gtk-doc pkgconfig update-rc.d useradd 58inherit autotools gtk-doc pkgconfig systemd update-rc.d useradd
56 59
57# This allows *everyone* to access ConnMan over DBus, without any access 60# This allows *everyone* to access ConnMan over DBus, without any access
58# control. Really the at_console flag should work, which would mean that 61# control. Really the at_console flag should work, which would mean that
@@ -62,8 +65,10 @@ do_compile_append() {
62} 65}
63 66
64do_install_append() { 67do_install_append() {
65 install -d ${D}${sysconfdir}/init.d 68 if ${@base_contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
66 install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman 69 install -d ${D}${sysconfdir}/init.d
70 install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman
71 fi
67 72
68 install -d ${D}${bindir} 73 install -d ${D}${bindir}
69 install -m 0755 ${S}/tools/*-test ${D}${bindir} 74 install -m 0755 ${S}/tools/*-test ${D}${bindir}