media-sound/mpd: fix the systemd user service
authorLukáš Hrázký <lukkash@email.cz>
Sun, 31 Jan 2016 16:00:13 +0000 (17:00 +0100)
committerLukáš Hrázký <lukkash@email.cz>
Sun, 31 Jan 2016 16:05:22 +0000 (17:05 +0100)
Under the user instance of systemd multi-user.target does not exist.
Replace it with default.target.

media-sound/mpd/mpd-0.19.12.ebuild

index 777cd2df38cb6ae12345ddef68b25ddaa1845aa9..bd945c127366d45e02daf39a489b9ffa850f55f0 100644 (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":' \