systemd: use systemd_system_unitdir
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 17 Dec 2025 21:48:51 +0000 (16:48 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 23 Jan 2026 16:45:15 +0000 (11:45 -0500)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
recipes-multimedia/hvmpd-manager/hvmpd-manager.bb
recipes-multimedia/musicpd/mpd_%.bbappend
recipes-multimedia/shairport-sync/shairport-sync_git.bb

index 01d1090..47782f5 100644 (file)
@@ -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} = " \
index 8fccf52..fb74473 100644 (file)
@@ -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:
index 30e006a..d4f9677 100644 (file)
@@ -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}