mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
Merge github#758: media-sound/mpd: fix the systemd user service
Pull-Request: https://github.com/gentoo/gentoo/pull/758 See-Also: https://github.com/gentoo/gentoo/pull/587 Reporter: Lukáš Hrázký <lukkash@email.cz> Acked-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
@@ -224,6 +224,8 @@ src_install() {
|
||||
newinitd "${FILESDIR}"/${PN}2.init ${PN}
|
||||
|
||||
systemd_newuserunit systemd/${PN}.service ${PN}.service
|
||||
sed -i '/WantedBy=/c WantedBy=default.target' \
|
||||
"${ED}"/usr/lib/systemd/user/mpd.service || die "sed failed"
|
||||
|
||||
if use unicode; then
|
||||
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
|
||||
|
||||
Reference in New Issue
Block a user