projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a926e53
)
media-sound/mpd: add a systemd user service
author
Lukáš Hrázký
<lukkash@email.cz>
Fri, 1 Jan 2016 16:29:17 +0000
(17:29 +0100)
committer
Lukáš Hrázký
<lukkash@email.cz>
Fri, 1 Jan 2016 16:29:17 +0000
(17:29 +0100)
This allows a user to run mpd through systemd locally, instead of a
system-wide global instance under the mpd user.
media-sound/mpd/mpd-0.19.11.ebuild
patch
|
blob
|
history
diff --git
a/media-sound/mpd/mpd-0.19.11.ebuild
b/media-sound/mpd/mpd-0.19.11.ebuild
index da43a94770b2244b7a309f6a780303ca4cd31ee7..ac380c618904199a814239e9bedd3440bf6550e4 100644
(file)
--- a/
media-sound/mpd/mpd-0.19.11.ebuild
+++ b/
media-sound/mpd/mpd-0.19.11.ebuild
@@
-223,6
+223,8
@@
src_install() {
newinitd "${FILESDIR}"/${PN}2.init ${PN}
+ systemd_newuserunit systemd/${PN}.service ${PN}.service
+
if use unicode; then
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
"${ED}"/etc/mpd.conf || die "sed failed"