Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/edna/files/, profiles/, media-sound/edna/
Date: Fri, 28 Aug 2020 06:55:02
Message-Id: 1598597673.32f22b5061c59a63ac3bc641661eea759fe03b77.asturm@gentoo
1 commit: 32f22b5061c59a63ac3bc641661eea759fe03b77
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 18:30:10 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 06:54:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f22b50
7
8 media-sound/edna: Remove last-rited package
9
10 Closes: https://bugs.gentoo.org/735404
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-sound/edna/Manifest | 1 -
14 media-sound/edna/edna-0.6.ebuild | 68 -------------------
15 media-sound/edna/files/edna-0.6-SystemExit.patch | 11 ----
16 media-sound/edna/files/edna-0.6-daemon.patch | 67 -------------------
17 media-sound/edna/files/edna-0.6-flac.patch | 79 ----------------------
18 media-sound/edna/files/edna-0.6-syslog.patch | 83 ------------------------
19 media-sound/edna/files/edna.gentoo | 31 ---------
20 media-sound/edna/metadata.xml | 14 ----
21 profiles/package.mask | 5 --
22 9 files changed, 359 deletions(-)
23
24 diff --git a/media-sound/edna/Manifest b/media-sound/edna/Manifest
25 deleted file mode 100644
26 index 6d15bdcf28f..00000000000
27 --- a/media-sound/edna/Manifest
28 +++ /dev/null
29 @@ -1 +0,0 @@
30 -DIST edna-0.6.tar.gz 50303 BLAKE2B 754017434722f5f6b0be508785b137ae1051a7566c39922b46732177b8cb61ceb509577bf167c7fb1a19f6cdb81cb45469009134d0dc18f8bf7c900326be18dd SHA512 d48786829c127b0a1e24116524b8b95a91990c8952882ef00d7761fc6c1dd9b4b0037af2b176dbfd066b6d80670bad7a0c724af984b24c6b4bde93c884c3b76b
31
32 diff --git a/media-sound/edna/edna-0.6.ebuild b/media-sound/edna/edna-0.6.ebuild
33 deleted file mode 100644
34 index 3136909a43b..00000000000
35 --- a/media-sound/edna/edna-0.6.ebuild
36 +++ /dev/null
37 @@ -1,68 +0,0 @@
38 -# Copyright 1999-2020 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=5
42 -
43 -PYTHON_COMPAT=( python2_7 )
44 -
45 -inherit eutils multilib user python-r1
46 -
47 -DESCRIPTION="Greg Stein's python streaming audio server for desktop or LAN use"
48 -HOMEPAGE="http://edna.sourceforge.net/"
49 -SRC_URI="mirror://sourceforge/edna/${P}.tar.gz"
50 -
51 -LICENSE="GPL-2"
52 -SLOT="0"
53 -KEYWORDS="~alpha amd64 hppa ~mips ppc ppc64 sparc x86"
54 -IUSE="flac ogg"
55 -
56 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
57 -
58 -RDEPEND="${PYTHON_DEPS}
59 - flac? ( media-libs/mutagen[${PYTHON_USEDEP}] )
60 - ogg? ( dev-python/pyogg[${PYTHON_USEDEP}] )"
61 -DEPEND="${RDEPEND}"
62 -
63 -src_prepare() {
64 - epatch \
65 - "${FILESDIR}/${P}"-SystemExit.patch \
66 - "${FILESDIR}/${P}"-flac.patch \
67 - "${FILESDIR}/${P}"-daemon.patch \
68 - "${FILESDIR}/${P}"-syslog.patch
69 -}
70 -
71 -src_install() {
72 - newinitd "${FILESDIR}"/edna.gentoo edna
73 -
74 - python_foreach_impl python_newscript edna.py edna
75 -
76 - python_scriptinto /usr/$(get_libdir)/edna
77 - python_foreach_impl python_domodule ezt.py MP3Info.py
78 -
79 - python_foreach_impl python_optimize
80 -
81 - insinto /usr/$(get_libdir)/edna
82 - doins -r templates resources
83 -
84 - insinto /etc/edna
85 - doins edna.conf
86 -
87 - dosym /usr/$(get_libdir)/edna/resources /etc/edna/resources
88 - dosym /usr/$(get_libdir)/edna/templates /etc/edna/templates
89 -
90 - dodoc README ChangeLog
91 - dohtml -r www/*
92 -}
93 -
94 -pkg_postinst() {
95 - enewgroup edna
96 - enewuser edna -1 -1 -1 edna
97 -
98 - elog "Edit edna.conf to taste before starting (multiple source"
99 - elog "directories are allowed). Test edna from a shell prompt"
100 - elog "until you have it configured properly, then add edna to"
101 - elog "the default runlevel when you're ready. Add the USE flag"
102 - elog "vorbis if you want edna to serve ogg files."
103 - elog "See edna.conf and the html docs for more info, and set"
104 - elog "PYTHONPATH=/usr/lib/edna to run from a shell prompt."
105 -}
106
107 diff --git a/media-sound/edna/files/edna-0.6-SystemExit.patch b/media-sound/edna/files/edna-0.6-SystemExit.patch
108 deleted file mode 100644
109 index 78aec6f3176..00000000000
110 --- a/media-sound/edna/files/edna-0.6-SystemExit.patch
111 +++ /dev/null
112 @@ -1,11 +0,0 @@
113 ---- edna.py.orig 2007-01-27 15:31:00.000000000 +0000
114 -+++ edna.py 2007-01-27 16:03:30.000000000 +0000
115 -@@ -1159,7 +1159,7 @@
116 -
117 - if os.path.isfile(fname) != 1:
118 - print "edna: %s:No such file" %fname
119 -- raise systemExit
120 -+ raise SystemExit
121 -
122 - if daemon_mode:
123 - daemonize('/dev/null', '/var/log/edna.log', '/var/log/edna.log', '/var/run/edna.pid')
124
125 diff --git a/media-sound/edna/files/edna-0.6-daemon.patch b/media-sound/edna/files/edna-0.6-daemon.patch
126 deleted file mode 100644
127 index e003689956a..00000000000
128 --- a/media-sound/edna/files/edna-0.6-daemon.patch
129 +++ /dev/null
130 @@ -1,67 +0,0 @@
131 ---- edna.py.orig 2007-01-27 18:49:16.000000000 +0000
132 -+++ edna.py 2007-01-27 18:47:19.000000000 +0000
133 -@@ -36,7 +36,9 @@
134 - import string
135 - import os
136 - import cgi
137 -+import ctypes
138 - import urllib
139 -+import pwd
140 - import socket
141 - import re
142 - import stat
143 -@@ -1149,7 +1151,7 @@
144 - print ' if config-file is not specified, then edna.conf is used'
145 - sys.exit(0)
146 -
147 --def daemonize(stdin='/dev/null', stdout='/dev/null', stderr='/dev/null',pname=''):
148 -+def daemonize(stdin='/dev/null', stdout='/dev/null', stderr='/dev/null', pname='', uid = None):
149 - '''This forks the current process into a daemon.
150 - The stdin, stdout, and stderr arguments are file names that
151 - will be opened and be used to replace the standard file descriptors
152 -@@ -1159,6 +1161,11 @@
153 - if it shares a file with stdout then interleaved output
154 - may not appear in the order that you expect.
155 - '''
156 -+ # Rename process in /proc/<pid>/stat from python to edna
157 -+ # (helps start-stop-daemon find us)
158 -+ libc = ctypes.CDLL('/lib/libc.so.6')
159 -+ libc.prctl(15, 'edna\0', 0, 0, 0)
160 -+
161 - # Do first fork.
162 - try:
163 - pid = os.fork()
164 -@@ -1186,6 +1193,8 @@
165 - sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror) )
166 - sys.exit(1)
167 - # Now I am a daemon!
168 -+ # If specified change the process owner
169 -+ if uid: os.setuid(uid)
170 - # Redirect standard file descriptors.
171 - si = open(stdin, 'r')
172 - so = open(stdout, 'a+')
173 -@@ -1198,9 +1207,16 @@
174 - if __name__ == '__main__':
175 - fname = 'edna.conf'
176 - daemon_mode=0
177 -+ uid = os.getuid()
178 -+ pidfile = '/var/run/edna.pid'
179 - for a in sys.argv[1:]:
180 - if a == "--daemon":
181 - daemon_mode=1
182 -+ elif a.startswith("--user"):
183 -+ uname = a.split("=")[1].strip()
184 -+ uid = pwd.getpwnam(uname)[2]
185 -+ elif a.startswith("--pidfile"):
186 -+ pidfile = a.split("=")[1].strip()
187 - elif a == "--help" or a == "-h" or string.find(a, '--')==0:
188 - usage()
189 - else:
190 -@@ -1211,6 +1227,6 @@
191 - raise SystemExit
192 -
193 - if daemon_mode:
194 -- daemonize('/dev/null', '/var/log/edna.log', '/var/log/edna.log', '/var/run/edna.pid')
195 -+ daemonize(uid = uid, pname = pidfile)
196 -
197 - run_server(fname)
198
199 diff --git a/media-sound/edna/files/edna-0.6-flac.patch b/media-sound/edna/files/edna-0.6-flac.patch
200 deleted file mode 100644
201 index b22687d2fb0..00000000000
202 --- a/media-sound/edna/files/edna-0.6-flac.patch
203 +++ /dev/null
204 @@ -1,79 +0,0 @@
205 ---- edna.py.orig 2007-01-31 19:25:14.000000000 +0000
206 -+++ edna.py 2007-01-31 20:55:09.000000000 +0000
207 -@@ -64,6 +64,12 @@
208 - oggSupport = 'no'
209 -
210 - try:
211 -+ from mutagen.flac import FLAC
212 -+ flacSupport = True
213 -+except ImportError:
214 -+ flacSupport = False
215 -+
216 -+try:
217 - import cStringIO
218 - StringIO = cStringIO
219 - except ImportError:
220 -@@ -920,6 +926,9 @@
221 - if ext == '.ogg':
222 - info = OggInfo(fullpath)
223 - self.__dict__.update(info.__dict__)
224 -+ elif ext == '.flac':
225 -+ info = FlacInfo(fullpath)
226 -+ self.__dict__.update(info.__dict__)
227 - else:
228 - info = MP3Info.MP3Info(open(fullpath, 'rb'))
229 - self.__dict__.update(info.__dict__)
230 -@@ -1001,6 +1010,45 @@
231 - self.transcoded = val
232 - self.valid = 1
233 -
234 -+class FlacInfo:
235 -+ def __init__(self, name):
236 -+ # Setup the defaults
237 -+ self.valid = 0
238 -+ self.total_time = 0
239 -+ self.samplerate = 'unknown'
240 -+ self.bitrate = 'unknown'
241 -+ self.mode = ''
242 -+ self.mode_extension = ''
243 -+
244 -+ if not flacSupport: return
245 -+
246 -+ mflac = FLAC(name)
247 -+ streaminfo = mflac.metadata_blocks[0]
248 -+
249 -+ self.samplerate = streaminfo.sample_rate
250 -+ self.total_time = streaminfo.length
251 -+ self.bitrate =int(round((streaminfo.bits_per_sample * streaminfo.total_samples) / streaminfo.length))
252 -+ self.filesize = os.path.getsize(name) / (1024 ** 2)
253 -+
254 -+ for key, val in mflac.tags:
255 -+ if key == 'TITLE':
256 -+ self.title = val
257 -+ elif key == 'ARTIST':
258 -+ self.artist = val
259 -+ elif key == 'ALBUM':
260 -+ self.album = val
261 -+ elif key == 'DATE':
262 -+ self.year = val
263 -+ elif key == 'GENRE':
264 -+ self.genre = val
265 -+ elif key == 'VENDOR':
266 -+ self.vendor = val
267 -+ elif key == 'TRACKNUMBER':
268 -+ self.track = val
269 -+ elif key == 'DESCRIPTION':
270 -+ self.comment = val
271 -+
272 -+ self.valid = 1
273 -
274 - def _usable_file(fname):
275 - return fname[0] != '.'
276 -@@ -1044,6 +1092,7 @@
277 - '.avi' : 'video/x-msvideo',
278 - '.mpg' : 'video/mpeg',
279 - '.ogg' : 'application/x-ogg',
280 -+ '.flac' : 'audio/x-flac',
281 - '.m4a' : 'audio/mp4',
282 - '.mp4' : 'video/mp4',
283 - }
284
285 diff --git a/media-sound/edna/files/edna-0.6-syslog.patch b/media-sound/edna/files/edna-0.6-syslog.patch
286 deleted file mode 100644
287 index 4ff0bbf8bdb..00000000000
288 --- a/media-sound/edna/files/edna-0.6-syslog.patch
289 +++ /dev/null
290 @@ -1,83 +0,0 @@
291 ---- edna.py.orig 2007-01-27 18:53:24.000000000 +0000
292 -+++ edna.py 2007-01-27 18:58:38.000000000 +0000
293 -@@ -42,6 +42,7 @@
294 - import socket
295 - import re
296 - import stat
297 -+import syslog
298 - import random
299 - import time
300 - import struct
301 -@@ -144,6 +145,12 @@
302 - self.log = open(log, 'a')
303 - except IOError:
304 - pass
305 -+ else:
306 -+ try:
307 -+ syslog.openlog('edna')
308 -+ self.log = True
309 -+ except:
310 -+ pass
311 -
312 - template_path = config.get('server', 'template-dir')
313 - template_file = config.get('server', 'template')
314 -@@ -254,7 +261,7 @@
315 - (config.get('server', 'binding-hostname'), self.port),
316 - EdnaRequestHandler)
317 - except socket.error, value:
318 -- self.log_message( "edna: bind(): %s" % str(value[1]) )
319 -+ self.log_message( "bind(): %s" % str(value[1]) )
320 - raise SystemExit
321 -
322 - def server_bind(self):
323 -@@ -290,12 +297,17 @@
324 - return 0
325 -
326 - def log_message(self, msg):
327 -- if self.log:
328 -- try:
329 -- self.log.write(msg + '\n')
330 -- self.log.flush()
331 -- except IOError:
332 -- pass
333 -+ if self.log == True:
334 -+ try:
335 -+ syslog.syslog(msg)
336 -+ except:
337 -+ pass
338 -+ elif self.log:
339 -+ try:
340 -+ self.log.write('edna: ' + msg + '\n')
341 -+ self.log.flush()
342 -+ except IOError:
343 -+ pass
344 -
345 - def debug_message(self, msg):
346 - if debug_level<1:
347 -@@ -1125,21 +1137,21 @@
348 -
349 - svr = Server(fname)
350 - if oggSupport == 'yes':
351 -- svr.log_message('edna: Ogg Vorbis support enabled')
352 -+ svr.log_message('Ogg Vorbis support enabled')
353 - else:
354 -- svr.log_message('edna: Ogg Vorbis support disabled, to enable it you will need to install the "pyogg" and the "pyvorbis" modules')
355 -+ svr.log_message('Ogg Vorbis support disabled, to enable it you will need to install the "pyogg" and the "pyvorbis" modules')
356 -
357 -- svr.log_message("edna: serving on port %d..." % svr.port)
358 -+ svr.log_message("serving on port %d..." % svr.port)
359 - try:
360 - while running:
361 - # print 'waiting ... '
362 - if config_needed:
363 -- svr.log_message('edna: Reloading config %s' % fname)
364 -+ svr.log_message('Reloading config %s' % fname)
365 - svr.server_close()
366 - svr = Server(fname)
367 - config_needed = None
368 - svr.handle_request()
369 -- svr.log_message ("edna: exiting")
370 -+ svr.log_message ("exiting")
371 - sys.exit(0)
372 - except KeyboardInterrupt:
373 - print "\nCaught ctr-c, taking down the server"
374
375 diff --git a/media-sound/edna/files/edna.gentoo b/media-sound/edna/files/edna.gentoo
376 deleted file mode 100644
377 index add215faca7..00000000000
378 --- a/media-sound/edna/files/edna.gentoo
379 +++ /dev/null
380 @@ -1,31 +0,0 @@
381 -#!/sbin/openrc-run
382 -#
383 -# Startup script for the edna mp3 mini server
384 -#
385 -# description: edna is a mini mp3 webserver
386 -# processname: python
387 -# pidfile: /var/run/ednad.pid
388 -# config:
389 -
390 -PYTHONPATH=/usr/lib/edna
391 -EDNA=/usr/bin/edna
392 -EDNACONF=/etc/edna/edna.conf
393 -PIDFILE=/var/run/edna.pid
394 -USER=edna
395 -
396 -depend() {
397 - need local
398 -}
399 -
400 -start() {
401 - ebegin "Starting edna mp3 server"
402 - start-stop-daemon --env PYTHONPATH=$PYTHONPATH \
403 - --start --exec $EDNA -- --daemon --user=$USER --pidfile=$PIDFILE $EDNACONF
404 - eend $?
405 -}
406 -
407 -stop() {
408 - ebegin "Stopping ednad"
409 - start-stop-daemon --quiet --stop --pidfile $PIDFILE
410 - eend $?
411 -}
412
413 diff --git a/media-sound/edna/metadata.xml b/media-sound/edna/metadata.xml
414 deleted file mode 100644
415 index 34878382b07..00000000000
416 --- a/media-sound/edna/metadata.xml
417 +++ /dev/null
418 @@ -1,14 +0,0 @@
419 -<?xml version="1.0" encoding="UTF-8"?>
420 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
421 -<pkgmetadata>
422 - <maintainer type="project">
423 - <email>sound@g.o</email>
424 - <name>Gentoo Sound project</name>
425 - </maintainer>
426 - <longdescription>
427 - Edna is Greg Stein's http streaming audio server for mp3 and ogg files.
428 -</longdescription>
429 - <upstream>
430 - <remote-id type="sourceforge">edna</remote-id>
431 - </upstream>
432 -</pkgmetadata>
433
434 diff --git a/profiles/package.mask b/profiles/package.mask
435 index 86481af9a21..b61e55429e5 100644
436 --- a/profiles/package.mask
437 +++ b/profiles/package.mask
438 @@ -774,11 +774,6 @@ app-arch/cfv
439 # Ancient unresolved bugs #453918, #505076. Removal in 30 days.
440 app-admin/conkyforecast
441
442 -# Andreas Sturmlechner <asturm@g.o> (2020-07-29)
443 -# Py2-only, last release in 2006, no one else is packaging this.
444 -# Removal in 30 days.
445 -media-sound/edna
446 -
447 # Andrey Utkin <andrey_utkin@g.o> (2020-07-28)
448 # Not used by other packages anymore.
449 # Removal in 30 days.