projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee2af5a
)
media-sound/mpd: fix the systemd user service
author
Lukáš Hrázký
<lukkash@email.cz>
Sun, 31 Jan 2016 16:00:13 +0000
(17:00 +0100)
committer
Lukáš 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
patch
|
blob
|
history
diff --git
a/media-sound/mpd/mpd-0.19.12.ebuild
b/media-sound/mpd/mpd-0.19.12.ebuild
index 777cd2df38cb6ae12345ddef68b25ddaa1845aa9..bd945c127366d45e02daf39a489b9ffa850f55f0 100644
(file)
--- 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":' \