Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
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} = " \
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:
# 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}