1 |
commit: 8c676221dd9e86c40278972ef9057d10cd024011 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 4 16:33:20 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 4 16:33:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c676221 |
7 |
|
8 |
media-sound/mpd: Drop old |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
media-sound/mpd/Manifest | 1 - |
14 |
media-sound/mpd/files/mpd-0.20.21.logrotate | 9 - |
15 |
media-sound/mpd/files/mpd-0.20.4.init | 32 ---- |
16 |
media-sound/mpd/mpd-0.20.21-r1.ebuild | 270 ---------------------------- |
17 |
4 files changed, 312 deletions(-) |
18 |
|
19 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
20 |
index 7d91ef5b0ab..c76b3209bf9 100644 |
21 |
--- a/media-sound/mpd/Manifest |
22 |
+++ b/media-sound/mpd/Manifest |
23 |
@@ -1,4 +1,3 @@ |
24 |
-DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6 |
25 |
DIST mpd-0.21.4.tar.xz 663648 BLAKE2B c9226d2b02b1035091d3af535c269aec3fead779bf17d95b858706affb84089ca85250452884ed5ee96008724735abf80cdfa4d2de14d9928748284d753a4638 SHA512 454fde206f98f89a58ac773037963ac895ee6ce3e7d1032c49b980a3bfbbb69782a62900a5c09e4b39f24b2d1bcd380d7b520935563dd3b8d02f701389389ca7 |
26 |
DIST mpd-0.21.5.tar.xz 667624 BLAKE2B d4de4c55306a42caf4f79ee469db2037c0217563d50d7a4ed349d0c2c61cab1c6e519da96f552f38692bedf18ffbdb2032ae0a3314a05b2f2461c2da526f85e5 SHA512 b3a938f43cd554e0e761890ca7ea910e21b8f98f54f5bfceb0efcbef4df46db0d110d1bbc24a233021b463e3424d6246c1013f5a6ebdfc85a418008d49ced7a4 |
27 |
DIST mpd-0.21.6.tar.xz 669272 BLAKE2B ffd50c35e431791503e5d0137abdb93beb42cf48f7638ac0f394d8c4198ce96f915220c92d078ce99cfe7c9866f8e35e58106b801a6d83cdf0a121442f12976a SHA512 20e752a8db2f8ae0b2419b35018557c37a64c6baff25666ba35fce89cfd354e4df5064c25685791f3fcca7ba9e6e6acef0e4653c0c0ffafde2847085dc51b3fa |
28 |
|
29 |
diff --git a/media-sound/mpd/files/mpd-0.20.21.logrotate b/media-sound/mpd/files/mpd-0.20.21.logrotate |
30 |
deleted file mode 100644 |
31 |
index 55694c4531c..00000000000 |
32 |
--- a/media-sound/mpd/files/mpd-0.20.21.logrotate |
33 |
+++ /dev/null |
34 |
@@ -1,9 +0,0 @@ |
35 |
-/var/lib/mpd/log { |
36 |
- missingok |
37 |
- weekly |
38 |
- delaycompress |
39 |
- compress |
40 |
- postrotate |
41 |
- /etc/init.d/mpd reload |
42 |
- endscript |
43 |
-} |
44 |
|
45 |
diff --git a/media-sound/mpd/files/mpd-0.20.4.init b/media-sound/mpd/files/mpd-0.20.4.init |
46 |
deleted file mode 100644 |
47 |
index 0a4c61677bc..00000000000 |
48 |
--- a/media-sound/mpd/files/mpd-0.20.4.init |
49 |
+++ /dev/null |
50 |
@@ -1,32 +0,0 @@ |
51 |
-#!/sbin/openrc-run |
52 |
-# Copyright 1999-2018 Gentoo Foundation |
53 |
-# Distributed under the terms of the GNU General Public License v2 |
54 |
- |
55 |
-: CFGFILE=${CFGFILE:=/etc/mpd.conf} |
56 |
- |
57 |
-depend() { |
58 |
- need localmount |
59 |
- use net netmount nfsmount alsasound esound pulseaudio |
60 |
- config ${CFGFILE} |
61 |
-} |
62 |
- |
63 |
-get_config() { |
64 |
- x=$1 |
65 |
- test -e ${CFGFILE} || return 1 |
66 |
- sed -n \ |
67 |
- -e '/^[ \t]*'${x}'/{s:^[ \t]*'${x}'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; p }' \ |
68 |
- ${CFGFILE} |
69 |
-} |
70 |
- |
71 |
-extra_started_commands='reload' |
72 |
-command=/usr/bin/mpd |
73 |
-command_args=${CFGFILE} |
74 |
-required_files=${CFGFILE} |
75 |
-pidfile=$(get_config pid_file) |
76 |
-description="Music Player Daemon" |
77 |
- |
78 |
-reload() { |
79 |
- ebegin "Reloading ${SVCNAME}" |
80 |
- kill -HUP `cat ${pidfile}` |
81 |
- eend $? |
82 |
-} |
83 |
|
84 |
diff --git a/media-sound/mpd/mpd-0.20.21-r1.ebuild b/media-sound/mpd/mpd-0.20.21-r1.ebuild |
85 |
deleted file mode 100644 |
86 |
index a4f1962c0a1..00000000000 |
87 |
--- a/media-sound/mpd/mpd-0.20.21-r1.ebuild |
88 |
+++ /dev/null |
89 |
@@ -1,270 +0,0 @@ |
90 |
-# Copyright 1999-2018 Gentoo Authors |
91 |
-# Distributed under the terms of the GNU General Public License v2 |
92 |
- |
93 |
-EAPI=6 |
94 |
- |
95 |
-inherit autotools flag-o-matic linux-info systemd user |
96 |
- |
97 |
-DESCRIPTION="The Music Player Daemon (mpd)" |
98 |
-HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
99 |
-SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
100 |
- |
101 |
-LICENSE="GPL-2" |
102 |
-SLOT="0" |
103 |
-KEYWORDS="alpha amd64 ~arm ~hppa ~ppc ~ppc64 ~sh x86 ~x86-fbsd ~x64-macos" |
104 |
-IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad |
105 |
- +fifo +ffmpeg flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack |
106 |
- lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug |
107 |
- mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder |
108 |
- samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame |
109 |
- unicode upnp vorbis wavpack wildmidi zeroconf zip zlib webdav" |
110 |
- |
111 |
-OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
112 |
-DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod |
113 |
- modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi" |
114 |
-ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
115 |
- |
116 |
-REQUIRED_USE=" |
117 |
- || ( ${OUTPUT_PLUGINS} ) |
118 |
- || ( ${DECODER_PLUGINS} ) |
119 |
- network? ( || ( ${ENCODER_PLUGINS} ) ) |
120 |
- recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
121 |
- opus? ( ogg ) |
122 |
- upnp? ( expat ) |
123 |
- webdav? ( curl expat ) |
124 |
-" |
125 |
- |
126 |
-COMMON_DEPEND=" |
127 |
- adplug? ( media-libs/adplug ) |
128 |
- alsa? ( |
129 |
- media-libs/alsa-lib |
130 |
- media-sound/alsa-utils |
131 |
- ) |
132 |
- ao? ( media-libs/libao[alsa?,pulseaudio?] ) |
133 |
- audiofile? ( media-libs/audiofile ) |
134 |
- bzip2? ( app-arch/bzip2 ) |
135 |
- cdio? ( |
136 |
- dev-libs/libcdio:= |
137 |
- dev-libs/libcdio-paranoia |
138 |
- ) |
139 |
- curl? ( net-misc/curl ) |
140 |
- expat? ( dev-libs/expat ) |
141 |
- faad? ( media-libs/faad2 ) |
142 |
- ffmpeg? ( |
143 |
- libav? ( media-video/libav:0= ) |
144 |
- !libav? ( media-video/ffmpeg:0= ) |
145 |
- ) |
146 |
- flac? ( media-libs/flac[ogg?] ) |
147 |
- fluidsynth? ( media-sound/fluidsynth ) |
148 |
- gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) |
149 |
- icu? ( dev-libs/icu:= ) |
150 |
- id3tag? ( media-libs/libid3tag ) |
151 |
- jack? ( virtual/jack ) |
152 |
- lame? ( network? ( media-sound/lame ) ) |
153 |
- libmpdclient? ( media-libs/libmpdclient ) |
154 |
- libsamplerate? ( media-libs/libsamplerate ) |
155 |
- libsoxr? ( media-libs/soxr ) |
156 |
- mad? ( media-libs/libmad ) |
157 |
- mikmod? ( media-libs/libmikmod:0 ) |
158 |
- mms? ( media-libs/libmms ) |
159 |
- modplug? ( media-libs/libmodplug ) |
160 |
- mpg123? ( >=media-sound/mpg123-1.12.2 ) |
161 |
- musepack? ( media-sound/musepack-tools ) |
162 |
- network? ( |
163 |
- >=media-libs/libshout-2 |
164 |
- !lame? ( !vorbis? ( media-libs/libvorbis ) ) |
165 |
- ) |
166 |
- nfs? ( net-fs/libnfs ) |
167 |
- ogg? ( media-libs/libogg ) |
168 |
- openal? ( media-libs/openal ) |
169 |
- opus? ( media-libs/opus ) |
170 |
- pulseaudio? ( media-sound/pulseaudio ) |
171 |
- samba? ( >=net-fs/samba-4.0.25 ) |
172 |
- sid? ( || ( |
173 |
- media-libs/libsidplay:2 |
174 |
- media-libs/libsidplayfp |
175 |
- ) ) |
176 |
- sndfile? ( media-libs/libsndfile ) |
177 |
- soundcloud? ( >=dev-libs/yajl-2:= ) |
178 |
- sqlite? ( dev-db/sqlite:3 ) |
179 |
- systemd? ( sys-apps/systemd ) |
180 |
- tcpd? ( sys-apps/tcp-wrappers ) |
181 |
- twolame? ( media-sound/twolame ) |
182 |
- upnp? ( net-libs/libupnp:0= ) |
183 |
- vorbis? ( media-libs/libvorbis ) |
184 |
- wavpack? ( media-sound/wavpack ) |
185 |
- wildmidi? ( media-sound/wildmidi ) |
186 |
- zeroconf? ( net-dns/avahi[dbus] ) |
187 |
- zip? ( dev-libs/zziplib ) |
188 |
- zlib? ( sys-libs/zlib )" |
189 |
-DEPEND="${COMMON_DEPEND} |
190 |
- dev-libs/boost |
191 |
- virtual/pkgconfig" |
192 |
-RDEPEND="${COMMON_DEPEND} |
193 |
- !<sys-cluster/mpich2-1.4_rc2 |
194 |
- selinux? ( sec-policy/selinux-mpd ) |
195 |
-" |
196 |
- |
197 |
-PATCHES=( |
198 |
- "${FILESDIR}"/${PN}-0.18.conf.patch |
199 |
-) |
200 |
- |
201 |
-pkg_setup() { |
202 |
- use network || ewarn "Icecast and Shoutcast streaming needs networking." |
203 |
- use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
204 |
- |
205 |
- enewuser mpd "" "" "/var/lib/mpd" audio |
206 |
- |
207 |
- if use eventfd; then |
208 |
- CONFIG_CHECK+=" ~EVENTFD" |
209 |
- ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
210 |
- fi |
211 |
- if use signalfd; then |
212 |
- CONFIG_CHECK+=" ~SIGNALFD" |
213 |
- ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
214 |
- fi |
215 |
- if use inotify; then |
216 |
- CONFIG_CHECK+=" ~INOTIFY_USER" |
217 |
- ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
218 |
- fi |
219 |
- if use eventfd || use signalfd || use inotify; then |
220 |
- linux-info_pkg_setup |
221 |
- fi |
222 |
- |
223 |
- elog "If you will be starting mpd via /etc/init.d/mpd, please make |
224 |
- sure that MPD's pid_file is _set_." |
225 |
-} |
226 |
- |
227 |
-src_prepare() { |
228 |
- cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
229 |
- default |
230 |
- eautoreconf |
231 |
-} |
232 |
- |
233 |
-src_configure() { |
234 |
- local myeconfargs=( |
235 |
- --enable-database --disable-roar --disable-documentation |
236 |
- --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder |
237 |
- --disable-solaris-output --enable-tcp --enable-un --disable-werror |
238 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} |
239 |
- ) |
240 |
- |
241 |
- if use network; then |
242 |
- myeconfargs+=( |
243 |
- --enable-shout |
244 |
- $(use_enable vorbis vorbis-encoder) |
245 |
- --enable-httpd-output |
246 |
- $(use_enable lame lame-encoder) |
247 |
- $(use_enable twolame twolame-encoder) |
248 |
- $(use_enable audiofile wave-encoder) |
249 |
- ) |
250 |
- else |
251 |
- myeconfargs+=( |
252 |
- --disable-shout |
253 |
- --disable-vorbis-encoder |
254 |
- --disable-httpd-output |
255 |
- --disable-lame-encoder |
256 |
- --disable-twolame-encoder |
257 |
- --disable-wave-encoder |
258 |
- ) |
259 |
- fi |
260 |
- |
261 |
- if use samba || use upnp; then |
262 |
- myeconfargs+=( --enable-neighbor-plugins ) |
263 |
- fi |
264 |
- |
265 |
- append-lfs-flags |
266 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
267 |
- |
268 |
- myeconfargs+=( |
269 |
- $(use_enable eventfd) |
270 |
- $(use_enable signalfd) |
271 |
- $(use_enable libmpdclient) |
272 |
- $(use_enable expat) |
273 |
- $(use_enable upnp) |
274 |
- $(use_enable adplug) |
275 |
- $(use_enable alsa) |
276 |
- $(use_enable ao) |
277 |
- $(use_enable audiofile) |
278 |
- $(use_enable zlib) |
279 |
- $(use_enable bzip2) |
280 |
- $(use_enable cdio cdio-paranoia) |
281 |
- $(use_enable curl) |
282 |
- $(use_enable samba smbclient) |
283 |
- $(use_enable nfs) |
284 |
- $(use_enable debug) |
285 |
- $(use_enable ffmpeg) |
286 |
- $(use_enable fifo) |
287 |
- $(use_enable flac) |
288 |
- $(use_enable fluidsynth) |
289 |
- $(use_enable gme) |
290 |
- $(use_enable id3tag id3) |
291 |
- $(use_enable inotify) |
292 |
- $(use_enable ipv6) |
293 |
- $(use_enable cdio iso9660) |
294 |
- $(use_enable jack) |
295 |
- $(use_enable soundcloud) |
296 |
- $(use_enable tcpd libwrap) |
297 |
- $(use_enable libsamplerate lsr) |
298 |
- $(use_enable libsoxr soxr) |
299 |
- $(use_enable mad) |
300 |
- $(use_enable mikmod) |
301 |
- $(use_enable mms) |
302 |
- $(use_enable modplug) |
303 |
- $(use_enable musepack mpc) |
304 |
- $(use_enable mpg123) |
305 |
- $(use_enable openal) |
306 |
- $(use_enable opus) |
307 |
- $(use_enable oss) |
308 |
- $(use_enable pipe pipe-output) |
309 |
- $(use_enable pulseaudio pulse) |
310 |
- $(use_enable recorder recorder-output) |
311 |
- $(use_enable sid sidplay) |
312 |
- $(use_enable sndfile sndfile) |
313 |
- $(use_enable sqlite) |
314 |
- $(use_enable systemd systemd_daemon) |
315 |
- $(use_enable vorbis) |
316 |
- $(use_enable wavpack) |
317 |
- $(use_enable wildmidi) |
318 |
- $(use_enable zip zzip) |
319 |
- $(use_enable icu) |
320 |
- $(use_enable webdav) |
321 |
- $(use_enable faad aac) |
322 |
- $(use_with zeroconf zeroconf avahi) |
323 |
- --with-boost="${EPREFIX}"/usr |
324 |
- --with-systemdsystemunitdir=$(systemd_get_systemunitdir) |
325 |
- --with-systemduserunitdir=$(systemd_get_userunitdir) |
326 |
- ) |
327 |
- |
328 |
- econf "${myeconfargs[@]}" |
329 |
-} |
330 |
- |
331 |
-src_install() { |
332 |
- default |
333 |
- |
334 |
- insinto /etc |
335 |
- newins doc/mpdconf.dist mpd.conf |
336 |
- |
337 |
- newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN} |
338 |
- |
339 |
- if use unicode; then |
340 |
- sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
341 |
- "${ED}"/etc/mpd.conf || die "sed failed" |
342 |
- fi |
343 |
- |
344 |
- insinto /etc/logrotate.d |
345 |
- newins "${FILESDIR}"/${PN}-0.20.21.logrotate ${PN} |
346 |
- |
347 |
- use prefix || diropts -m0755 -o mpd -g audio |
348 |
- dodir /var/lib/mpd |
349 |
- keepdir /var/lib/mpd |
350 |
- dodir /var/lib/mpd/music |
351 |
- keepdir /var/lib/mpd/music |
352 |
- dodir /var/lib/mpd/playlists |
353 |
- keepdir /var/lib/mpd/playlists |
354 |
-} |
355 |
- |
356 |
-pkg_postinst() { |
357 |
- # also change the homedir if the user has existed before |
358 |
- usermod -d "/var/lib/mpd" mpd |
359 |
-} |