1 |
commit: c236ebf46354938ed9f2e9d7f076b491eda4e2de |
2 |
Author: Lukáš Hrázký <lukkash <AT> email <DOT> cz> |
3 |
AuthorDate: Fri Jan 1 16:29:17 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 16:29:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c236ebf4 |
7 |
|
8 |
media-sound/mpd: add a systemd user service |
9 |
|
10 |
This allows a user to run mpd through systemd locally, instead of a |
11 |
system-wide global instance under the mpd user. |
12 |
|
13 |
media-sound/mpd/mpd-0.19.11.ebuild | 2 ++ |
14 |
1 file changed, 2 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/mpd/mpd-0.19.11.ebuild b/media-sound/mpd/mpd-0.19.11.ebuild |
17 |
index da43a94..ac380c6 100644 |
18 |
--- a/media-sound/mpd/mpd-0.19.11.ebuild |
19 |
+++ b/media-sound/mpd/mpd-0.19.11.ebuild |
20 |
@@ -223,6 +223,8 @@ src_install() { |
21 |
|
22 |
newinitd "${FILESDIR}"/${PN}2.init ${PN} |
23 |
|
24 |
+ systemd_newuserunit systemd/${PN}.service ${PN}.service |
25 |
+ |
26 |
if use unicode; then |
27 |
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
28 |
"${ED}"/etc/mpd.conf || die "sed failed" |