connman: enable service when using systemd

and split out systemd files as a subpackage

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-06-02 16:23:36 +02:00
parent d56c046902
commit e69c751939
2 changed files with 22 additions and 2 deletions
@@ -72,8 +72,28 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \
${libdir}/bonobo/servers \ ${libdir}/bonobo/servers \
${datadir}/dbus-1/system-services/*" ${datadir}/dbus-1/system-services/*"
PACKAGES =+ "${PN}-systemd"
# Package up systemd files # 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 # Needed when using DNS proxy feature
RRECOMMENDS_${PN} += "dnsmasq-dbus" RRECOMMENDS_${PN} += "dnsmasq-dbus"
@@ -1,5 +1,5 @@
require connman.inc require connman.inc
PR = "r2" PR = "r3"
EXTRA_OECONF += "\ EXTRA_OECONF += "\
--disable-gtk-doc \ --disable-gtk-doc \