]> Untitled Git - yocto/meta-hvmpd.git/commitdiff
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>
Sat, 28 Mar 2026 20:54:03 +0000 (16:54 -0400)
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 01d10905289e25ff9949bbb0f7af11fbad7335ef..47782f50ea951bd34b985f530127212a0b0f666e 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 8fccf5234af27d350e17ad115b93207d8e2b2862..fb74473681766e3b3f3ea0f3dc5c9d6a40ae6a4b 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 30e006af67646cd5e961a168838c8b86dfb0fcf2..d4f967734369c857312d0a95d97bbd79169800fb 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}