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:
Patrice Clement
2016-03-07 20:48:01 +00:00

View File

@@ -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":' \