Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpd/
Date: Mon, 07 Mar 2016 21:04:39
Message-Id: 1454256322.e1d2870055be9941cde0c153e4467bf68063351d.monsieurp@gentoo
1 commit: e1d2870055be9941cde0c153e4467bf68063351d
2 Author: Lukáš Hrázký <lukkash <AT> email <DOT> cz>
3 AuthorDate: Sun Jan 31 16:00:13 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 31 16:05:22 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1d28700
7
8 media-sound/mpd: fix the systemd user service
9
10 Under the user instance of systemd multi-user.target does not exist.
11 Replace it with default.target.
12
13 media-sound/mpd/mpd-0.19.12.ebuild | 2 ++
14 1 file changed, 2 insertions(+)
15
16 diff --git a/media-sound/mpd/mpd-0.19.12.ebuild b/media-sound/mpd/mpd-0.19.12.ebuild
17 index 777cd2d..bd945c1 100644
18 --- a/media-sound/mpd/mpd-0.19.12.ebuild
19 +++ b/media-sound/mpd/mpd-0.19.12.ebuild
20 @@ -224,6 +224,8 @@ src_install() {
21 newinitd "${FILESDIR}"/${PN}2.init ${PN}
22
23 systemd_newuserunit systemd/${PN}.service ${PN}.service
24 + sed -i '/WantedBy=/c WantedBy=default.target' \
25 + "${ED}"/usr/lib/systemd/user/mpd.service || die "sed failed"
26
27 if use unicode; then
28 sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \