diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-02 16:23:36 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-02 16:26:04 +0200 |
| commit | e69c7519399c06e82e25dcbfdd300e975393b00a (patch) | |
| tree | 48380fbacc72e1a17417b1f09895d81aa1a3efed /meta-oe/recipes-connectivity/connman | |
| parent | d56c046902e224faaa038d3882927a64316cb39b (diff) | |
| download | meta-openembedded-e69c7519399c06e82e25dcbfdd300e975393b00a.tar.gz | |
connman: enable service when using systemd
and split out systemd files as a subpackage
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-connectivity/connman')
| -rw-r--r-- | meta-oe/recipes-connectivity/connman/connman.inc | 22 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/connman/connman_0.73.bb | 2 |
2 files changed, 22 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/connman/connman.inc b/meta-oe/recipes-connectivity/connman/connman.inc index 0a6360c79f..7dd30fc211 100644 --- a/meta-oe/recipes-connectivity/connman/connman.inc +++ b/meta-oe/recipes-connectivity/connman/connman.inc | |||
| @@ -72,8 +72,28 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | |||
| 72 | ${libdir}/bonobo/servers \ | 72 | ${libdir}/bonobo/servers \ |
| 73 | ${datadir}/dbus-1/system-services/*" | 73 | ${datadir}/dbus-1/system-services/*" |
| 74 | 74 | ||
| 75 | PACKAGES =+ "${PN}-systemd" | ||
| 75 | # Package up systemd files | 76 | # Package up systemd files |
| 76 | FILES_${PN} += "${base_libdir}/systemd" | 77 | FILES_${PN}-systemd += "${base_libdir}/systemd" |
| 78 | |||
| 79 | pkg_postinst_connman-systemd() { | ||
| 80 | # can't do this offline | ||
| 81 | if [ "x$D" != "x" ]; then | ||
| 82 | exit 1 | ||
| 83 | fi | ||
| 84 | |||
| 85 | systemctl enable connman.service | ||
| 86 | } | ||
| 87 | |||
| 88 | pkg_postrm_connman-systemd() { | ||
| 89 | # can't do this offline | ||
| 90 | if [ "x$D" != "x" ]; then | ||
| 91 | exit 1 | ||
| 92 | fi | ||
| 93 | |||
| 94 | systemctl disable connman.service | ||
| 95 | } | ||
| 96 | |||
| 77 | # Needed when using DNS proxy feature | 97 | # Needed when using DNS proxy feature |
| 78 | RRECOMMENDS_${PN} += "dnsmasq-dbus" | 98 | RRECOMMENDS_${PN} += "dnsmasq-dbus" |
| 79 | 99 | ||
diff --git a/meta-oe/recipes-connectivity/connman/connman_0.73.bb b/meta-oe/recipes-connectivity/connman/connman_0.73.bb index 6b52c7895b..43b9976022 100644 --- a/meta-oe/recipes-connectivity/connman/connman_0.73.bb +++ b/meta-oe/recipes-connectivity/connman/connman_0.73.bb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | require connman.inc | 1 | require connman.inc |
| 2 | PR = "r2" | 2 | PR = "r3" |
| 3 | 3 | ||
| 4 | EXTRA_OECONF += "\ | 4 | EXTRA_OECONF += "\ |
| 5 | --disable-gtk-doc \ | 5 | --disable-gtk-doc \ |
