Lines 11-17
Link Here
|
11 |
|
11 |
|
12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
14 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x64-macos ~x86 ~x86-fbsd" |
15 |
IUSE="aac +alsa ao audiofile bzip2 cdio cue +curl debug +fifo +ffmpeg flac |
15 |
IUSE="aac +alsa ao audiofile bzip2 cdio cue +curl debug +fifo +ffmpeg flac |
16 |
fluidsynth profile +id3tag inotify ipv6 jack lame lastfmradio mms libsamplerate |
16 |
fluidsynth profile +id3tag inotify ipv6 jack lame lastfmradio mms libsamplerate |
17 |
+mad mikmod modplug mpg123 musepack +network ogg openal oss pipe pulseaudio sid |
17 |
+mad mikmod modplug mpg123 musepack +network ogg openal oss pipe pulseaudio sid |
Lines 68-74
Link Here
|
68 |
use network || ewarn "Icecast and Shoutcast streaming needs networking." |
68 |
use network || ewarn "Icecast and Shoutcast streaming needs networking." |
69 |
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
69 |
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
70 |
|
70 |
|
71 |
enewuser mpd "" "" "/var/lib/mpd" audio |
71 |
use prefix || enewuser mpd "" "" "/var/lib/mpd" audio |
72 |
|
72 |
|
73 |
if use inotify; then |
73 |
if use inotify; then |
74 |
CONFIG_CHECK="~INOTIFY_USER" |
74 |
CONFIG_CHECK="~INOTIFY_USER" |
Lines 161-170
Link Here
|
161 |
|
161 |
|
162 |
if use unicode; then |
162 |
if use unicode; then |
163 |
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
163 |
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
164 |
"${D}"/etc/mpd.conf || die "sed failed" |
164 |
"${ED}"/etc/mpd.conf || die "sed failed" |
165 |
fi |
165 |
fi |
166 |
|
166 |
|
167 |
diropts -m0755 -o mpd -g audio |
167 |
use prefix || diropts -m0755 -o mpd -g audio |
168 |
dodir /var/lib/mpd |
168 |
dodir /var/lib/mpd |
169 |
keepdir /var/lib/mpd |
169 |
keepdir /var/lib/mpd |
170 |
dodir /var/lib/mpd/music |
170 |
dodir /var/lib/mpd/music |
Lines 178-182
Link Here
|
178 |
elog "sure that MPD's pid_file is unset." |
178 |
elog "sure that MPD's pid_file is unset." |
179 |
|
179 |
|
180 |
# also change the homedir if the user has existed before |
180 |
# also change the homedir if the user has existed before |
181 |
usermod -d "/var/lib/mpd" mpd |
181 |
use prefix || usermod -d "/var/lib/mpd" mpd |
182 |
} |
182 |
} |