summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Hrázký <lukkash@email.cz>2016-01-31 17:00:13 +0100
committerLukáš Hrázký <lukkash@email.cz>2016-01-31 17:05:22 +0100
commite1d2870055be9941cde0c153e4467bf68063351d (patch)
tree858680e8fb9d229d4442cd23e5fa5b75dcf64c94
parentdev-lang/falcon: Drop old (diff)
downloadgentoo-e1d2870055be9941cde0c153e4467bf68063351d.tar.gz
gentoo-e1d2870055be9941cde0c153e4467bf68063351d.tar.bz2
gentoo-e1d2870055be9941cde0c153e4467bf68063351d.zip
media-sound/mpd: fix the systemd user service
Under the user instance of systemd multi-user.target does not exist. Replace it with default.target.
-rw-r--r--media-sound/mpd/mpd-0.19.12.ebuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/media-sound/mpd/mpd-0.19.12.ebuild b/media-sound/mpd/mpd-0.19.12.ebuild
index 777cd2df38cb..bd945c127366 100644
--- a/media-sound/mpd/mpd-0.19.12.ebuild
+++ b/media-sound/mpd/mpd-0.19.12.ebuild
@@ -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":' \