[oe-commits] Koen Kooi : connman: enable service when using systemd
git version control
git at git.openembedded.org
Thu Jun 2 15:34:21 UTC 2011
Module: meta-openembedded.git
Branch: master
Commit: e69c7519399c06e82e25dcbfdd300e975393b00a
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=e69c7519399c06e82e25dcbfdd300e975393b00a
Author: Koen Kooi <koen at dominion.thruhere.net>
Date: Thu Jun 2 16:23:36 2011 +0200
connman: enable service when using systemd
and split out systemd files as a subpackage
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
meta-oe/recipes-connectivity/connman/connman.inc | 22 +++++++++++++++++++-
.../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 0a6360c..7dd30fc 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.* \
${libdir}/bonobo/servers \
${datadir}/dbus-1/system-services/*"
+PACKAGES =+ "${PN}-systemd"
# Package up systemd files
-FILES_${PN} += "${base_libdir}/systemd"
+FILES_${PN}-systemd += "${base_libdir}/systemd"
+
+pkg_postinst_connman-systemd() {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+
+ systemctl enable connman.service
+}
+
+pkg_postrm_connman-systemd() {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+
+ systemctl disable connman.service
+}
+
# Needed when using DNS proxy feature
RRECOMMENDS_${PN} += "dnsmasq-dbus"
diff --git a/meta-oe/recipes-connectivity/connman/connman_0.73.bb b/meta-oe/recipes-connectivity/connman/connman_0.73.bb
index 6b52c78..43b9976 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 @@
require connman.inc
-PR = "r2"
+PR = "r3"
EXTRA_OECONF += "\
--disable-gtk-doc \
More information about the Openembedded-commits
mailing list