X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl%2Frecipes-connectivity%2Frygel%2Frygel_%25.bbappend;h=3dcb854f5fc1033c359adfb735d8cc1a43d92a4a;hb=019682fca4a5a9754276dff79d5c2ab859e0cc40;hp=56ccbd936d2a0dc5d1e1a521e6ad2d126e922e21;hpb=7d7c7b0edc3d8d806250a015f7fbf58418f04395;p=AGL%2Fmeta-agl.git diff --git a/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend b/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend index 56ccbd936..3dcb854f5 100644 --- a/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend +++ b/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend @@ -1,2 +1,28 @@ -# Disable everything but the media-export plugin -PACKAGECONFIG = "media-export" +# Disable everything but the media-export plugin, add the lms plugin +PACKAGECONFIG = "media-export lms" +PACKAGECONFIG[lms] = "--enable-lms-plugin,--disable-lms-plugin,sqlite3" + +# LightMediaScanner plugin patches +SRC_URI += "file://0001-Add-LightMediaScanner-plugin.patch \ + file://0002-lms-add-C-source-files.patch \ + file://rygel.service \ + " + +inherit systemd + +do_install_append() { + # Install rygel systemd service + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -p -D ${WORKDIR}/rygel.service ${D}${systemd_user_unitdir}/rygel.service + + # Execute these manually on behalf of systemctl script (from systemd-systemctl-native.bb) + # because it does not support systemd's user mode. + mkdir -p ${D}/etc/systemd/user/default.target.wants/ + ln -sf ${systemd_user_unitdir}/lightmediascanner.service ${D}/etc/systemd/user/dbus-org.gnome.Rygel1.service + ln -sf ${systemd_user_unitdir}/lightmediascanner.service ${D}/etc/systemd/user/default.target.wants/rygel.service + fi +} + +FILES_${PN} += " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_user_unitdir}/rygel.service', '', d)} \ + "