From: Hugo Villeneuve Date: Wed, 17 Dec 2025 21:48:51 +0000 (-0500) Subject: systemd: use systemd_system_unitdir X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=9aa1cbda977dbcf418ed35eb9b9ff628e0f7d558;p=yocto%2Fmeta-hvmpd.git systemd: use systemd_system_unitdir Signed-off-by: Hugo Villeneuve --- diff --git a/recipes-multimedia/hvmpd-manager/hvmpd-manager.bb b/recipes-multimedia/hvmpd-manager/hvmpd-manager.bb index 01d1090..47782f5 100644 --- a/recipes-multimedia/hvmpd-manager/hvmpd-manager.bb +++ b/recipes-multimedia/hvmpd-manager/hvmpd-manager.bb @@ -18,8 +18,8 @@ do_install() { install -d ${D}${sbindir} install -m 0755 ${S}/hvmpd.sh ${D}${sbindir} - install -d ${D}${systemd_unitdir}/system - install -m 0644 ${S}/hvmpd.service ${D}${systemd_unitdir}/system + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${S}/hvmpd.service ${D}${systemd_system_unitdir} } FILES:${PN} = " \ diff --git a/recipes-multimedia/musicpd/mpd_%.bbappend b/recipes-multimedia/musicpd/mpd_%.bbappend index 8fccf52..fb74473 100644 --- a/recipes-multimedia/musicpd/mpd_%.bbappend +++ b/recipes-multimedia/musicpd/mpd_%.bbappend @@ -45,7 +45,7 @@ do_install:append() { install -m 644 -o mpd -g audio ${UNPACKDIR}/*.m3u ${D}/${localstatedir}/lib/mpd/playlists/ # Disabling autostart of mpd.socket, in order to enable zeroconf: - rm ${D}${systemd_unitdir}/system/mpd.socket + rm ${D}${systemd_system_unitdir}/mpd.socket } # Disabling autostart of mpd.socket, in order to enable zeroconf: diff --git a/recipes-multimedia/shairport-sync/shairport-sync_git.bb b/recipes-multimedia/shairport-sync/shairport-sync_git.bb index 30e006a..d4f9677 100644 --- a/recipes-multimedia/shairport-sync/shairport-sync_git.bb +++ b/recipes-multimedia/shairport-sync/shairport-sync_git.bb @@ -37,7 +37,7 @@ do_install:append() { # Modify shairport-sync start arguments to always stop MPD before playing: sed -i -e "s@^\(ExecStart=.*\)@\1 -w --on-start=${bindir}/mpc-stop.sh@g" \ - ${D}${systemd_unitdir}/system/shairport-sync.service + ${D}${systemd_system_unitdir}/shairport-sync.service install -d ${D}${bindir} install -m 0755 ${UNPACKDIR}/mpc-stop.sh ${D}${bindir}