X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl%2Frecipes-connectivity%2Frygel%2Frygel_%25.bbappend;h=7cfb9c063780636a54ad4b0e4afe021ff544f3a8;hb=refs%2Fchanges%2F81%2F4281%2F2;hp=9363c3cdccce927b50d54a0a7da0471843247d29;hpb=6e80fd4f6bdbd49a658ca07a15f0aabff9953dad;p=AGL%2Fmeta-agl.git diff --git a/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend b/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend index 9363c3cdc..7cfb9c063 100644 --- a/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend +++ b/meta-agl/recipes-connectivity/rygel/rygel_%.bbappend @@ -5,4 +5,18 @@ 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 + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "" +SYSTEMD_SERVICE_${PN} += "rygel.service" + +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_unitdir}/system/rygel.service + fi +}