systemd: We do not want to run the dbus-daemon, do not install the service

We have no other dbus users, do not install the dbus.service and dbus.socket
by default. It only leads to wasting a bit of ram.
This commit is contained in:
Holger Hans Peter Freyther 2012-09-16 15:41:21 +08:00 committed by Holger Hans Peter Freyther
parent e1acffbebc
commit f4bf38e765
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
PRINC="12"
# Disable depedency on dbus
RDEPENDS_${PN} = ""
# TODO: disable systemd-logind as it needs dbus
SYSTEMD_DISABLED_NATIVE_SERVICES = " \
systemd-logind \
"
pkg_postinst_${PN}_append () {
cd $D${sysconfdir}/init.d
echo "Disabling the following native services: "
OPTS=""
if [ -n "$D" ]; then
OPTS="--root=$D"
fi
for i in ${SYSTEMD_DISABLED_NATIVE_SERVICES} ; do
if [ \( -e $i -o $i.sh \) -a ! -e $D${sysconfdir}/systemd/system/$i.service ] ; then
echo -n "$i: " ; systemctl ${OPTS} mask $i.service
fi
done ; echo
}

View File

@ -0,0 +1 @@
require recipes-fixes/${PN}/${PN}_sysmocom.inc