mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-sound/mserv: drop last-rited pkg
Signed-off-by: Aaron Bauman <bman@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST mserv-0.35.tar.gz 280299 BLAKE2B eb4ffe612b4373b1b381286b3f5e865393ac2a5a77c2026bace2fbde0caf8407c9750fb0d88d855cc56875df988ed7b54b91b67166e1cc890d8c0b6e4bb1ceec SHA512 a79340fc6ea02cf14dd0c223cf0d9feb5805b9e88d3dc1f4c854edbd9b8fe98c60b89c10555aa4214e153b17452c088dfde7700a5357a2c1a43c22af5d44255f
|
||||
@@ -1,2 +0,0 @@
|
||||
root:a16aKMw/UDpfc:MASTER
|
||||
guest:ax/jGzB/YyIVk:GUEST
|
||||
@@ -1,7 +0,0 @@
|
||||
# Set the port mserv listens on. By default, this is 4444, but
|
||||
# Maya's document server uses this port also.
|
||||
#
|
||||
# If you change it here, make sure you change it in:
|
||||
# /var/www/localhost/cgi-bin/mserv/mserv.cgi as well.
|
||||
|
||||
PORT=4444
|
||||
@@ -1,49 +0,0 @@
|
||||
# Mserv configuration file for 0.33 and later
|
||||
|
||||
# File locations, / at start is absolute, otherwise relative to mserv root
|
||||
path_acl=/etc/mserv/acl
|
||||
path_webacl=/etc/mserv/webacl
|
||||
path_logfile=/var/log/mserv.log
|
||||
path_tracks=/usr/local/share/tracks
|
||||
path_trackinfo=/var/lib/mserv/trackinfo
|
||||
path_playout=/var/spool/mserv/player.out
|
||||
path_idea=idea
|
||||
path_mixer=/dev/mixer
|
||||
path_language=/usr/share/english.lang
|
||||
|
||||
# Define player invokation methods
|
||||
# mservplay is our special wrapper, the first parameter is a 'nice' level
|
||||
# play is part of sox
|
||||
prog_mpg123=/usr/bin/mpg123 -b 1024
|
||||
prog_freeamp=/usr/bin/freeamp -ui mpg123
|
||||
prog_mservplay=/usr/bin/mservplay 0 mpg123 -b 1024
|
||||
prog_play=/usr/bin/play
|
||||
prog_ogg123=/usr/bin/ogg123
|
||||
|
||||
# Set players for each file extension we want to support, unknown extensions
|
||||
# are ignored by mserv
|
||||
player_mp3=prog_mpg123
|
||||
player_wav=prog_play
|
||||
player_au=prog_play
|
||||
player_ogg=prog_ogg
|
||||
|
||||
# Set default random mode, either on or off. You must still tell mserv to
|
||||
# start playing (PLAY).
|
||||
random=off
|
||||
|
||||
# Set whether or not you would like play to start as soon as mserv has loaded.
|
||||
play=off
|
||||
|
||||
# Set default random factor, 0.5 is completely random, 0.6 is less random
|
||||
# and takes into account your ratings, 0.4 plays your worst tunes. 0.99 max.
|
||||
factor=0.60
|
||||
|
||||
# Set default filter, leave blank for off. Example: "!classical" to
|
||||
# not play classical genre, or "year>=1980&year<1990" to only play
|
||||
# 80's songs.
|
||||
filter=
|
||||
|
||||
# Set gap between songs, in seconds. 0 to start the next song as quick as
|
||||
# possible.
|
||||
gap=1
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after apache
|
||||
after apache2
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Mserv"
|
||||
start-stop-daemon --start -o -b --chuid mserv --exec /usr/bin/mserv -- \
|
||||
-r /var/spool/mserv -c /etc/mserv/config -p ${PORT}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Mserv"
|
||||
start-stop-daemon --stop -o -q --exec /usr/bin/mserv
|
||||
eend $?
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
--- mserv-0.35.orig/support/mservplay.c 2003-08-28 20:10:17.000000000 -0700
|
||||
+++ mserv-0.35/support/mservplay.c 2003-08-29 15:16:13.000000000 -0700
|
||||
@@ -43,7 +43,7 @@
|
||||
fprintf(stderr, "%s: setuid: %s\n", argv[0], strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
- if (stricmp(argv[2], "mpg123")) {
|
||||
+ if (strcasecmp(argv[2], "mpg123")) {
|
||||
fprintf(stderr, "%s: Unrecognised player type, must be 'mpg123'",
|
||||
argv[0]);
|
||||
exit(1);
|
||||
@@ -1,74 +0,0 @@
|
||||
--- mserv-0.35.orig/mserv/defconf.c 2003-08-28 20:10:17.000000000 -0700
|
||||
+++ mserv-0.35/mserv/defconf.c 2003-08-28 23:04:14.000000000 -0700
|
||||
@@ -16,11 +16,11 @@
|
||||
# Define player invokation methods\n\
|
||||
# mservplay is our special wrapper, the first parameter is a 'nice' level\n\
|
||||
# play is part of sox\n\
|
||||
-prog_mpg123=/usr/local/bin/mpg123 -b 1024\n\
|
||||
-prog_freeamp=/usr/local/bin/freeamp -ui mpg123\n\
|
||||
-prog_mservplay=/usr/local/bin/mservplay 0 mpg123 -b 1024\n\
|
||||
-prog_play=/usr/local/bin/play\n\
|
||||
-prog_ogg123=/usr/local/bin/ogg123\n\
|
||||
+prog_mpg123=/usr/bin/mpg123 -b 1024\n\
|
||||
+prog_freeamp=/usr/bin/freeamp -ui mpg123\n\
|
||||
+prog_mservplay=/usr/bin/mservplay 0 mpg123 -b 1024\n\
|
||||
+prog_play=/usr/bin/play\n\
|
||||
+prog_ogg123=/usr/bin/ogg123\n\
|
||||
\n\
|
||||
# Set players for each file extension we want to support, unknown extensions\n\
|
||||
# are ignored by mserv\n\
|
||||
--- mserv-0.35.orig/webclient/index.html 2003-08-28 20:10:17.000000000 -0700
|
||||
+++ mserv-0.35/webclient/index.html 2003-08-29 17:02:10.000000000 -0700
|
||||
@@ -9,7 +9,7 @@
|
||||
<tr><td>
|
||||
<center>
|
||||
<table>
|
||||
-<form method=post action="main.cgi">
|
||||
+<form method=post action="/cgi-bin/mserv/main.cgi">
|
||||
<tr>
|
||||
<td>User</td>
|
||||
<td><input type=text name=user size=10 maxsize=10></td>
|
||||
@@ -23,6 +23,6 @@
|
||||
</center>
|
||||
</td></tr>
|
||||
</table>
|
||||
-<p><a href="main.cgi">GUEST ACCESS</a></p>
|
||||
+<p><a href="/cgi-bin/mserv/main.cgi">GUEST ACCESS</a></p>
|
||||
</center>
|
||||
</html>
|
||||
--- mserv-0.35.orig/webclient/margin.cgi 2003-08-28 20:10:17.000000000 -0700
|
||||
+++ mserv-0.35/webclient/margin.cgi 2003-08-30 16:14:27.000000000 -0700
|
||||
@@ -15,11 +15,11 @@
|
||||
<head>
|
||||
<title>Mserv web interface - margin</title>
|
||||
</head>
|
||||
-<body bgcolor="#ffffff" background="back.gif">
|
||||
+<body bgcolor="#ffffff" background="/mserv/back.gif">
|
||||
<p align=center><center>
|
||||
<table>
|
||||
<tr><td>
|
||||
-<p align=center><img src="mserv7.gif" alt="Mserv"></p>
|
||||
+<p align=center><img src="/mserv/mserv7.gif" alt="Mserv"></p>
|
||||
<p><font size="2"><a target=main href="mserv.cgi?user=$user&pass=$pass&page=status">Status</a>
|
||||
<br><a target=main href="mserv.cgi?user=$user&pass=$pass&page=albums">Albums</a>
|
||||
<br><a target=main href="mserv.cgi?user=$user&pass=$pass&page=queue">Queue</a>
|
||||
--- mserv-0.35.orig/webclient/mserv.cgi 2003-08-28 20:10:17.000000000 -0700
|
||||
+++ mserv-0.35/webclient/mserv.cgi 2003-08-30 16:14:47.000000000 -0700
|
||||
@@ -3,7 +3,7 @@
|
||||
$guestuser = 'guest';
|
||||
$guestpass = 'guest';
|
||||
$host = 'localhost:4444';
|
||||
-$mservcmd = '/usr/local/bin/mservcmd';
|
||||
+$mservcmd = '/usr/bin/mservcmd';
|
||||
|
||||
use POSIX;
|
||||
use CGI;
|
||||
@@ -34,7 +34,7 @@
|
||||
<head>
|
||||
<title>Mserv</title>
|
||||
</head>
|
||||
-<body bgcolor="#ffffff" background="back.gif">
|
||||
+<body bgcolor="#ffffff" background="/mserv/back.gif">
|
||||
EOF
|
||||
|
||||
if ($page eq 'status') {
|
||||
@@ -1,2 +0,0 @@
|
||||
root:a16aKMw/UDpfc
|
||||
guest:ax/jGzB/YyIVk
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sound@gentoo.org</email>
|
||||
<name>Gentoo Sound project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">mserv</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
inherit depend.apache webapp eutils toolchain-funcs user
|
||||
|
||||
DESCRIPTION="Jukebox-style music server"
|
||||
HOMEPAGE="http://www.mserv.org"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
LICENSE="mserv"
|
||||
|
||||
KEYWORDS="amd64 ~ppc sparc x86"
|
||||
IUSE="vorbis"
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=">=dev-lang/perl-5.6.1
|
||||
media-sound/mpg123
|
||||
media-sound/sox
|
||||
vorbis? ( media-sound/vorbis-tools )"
|
||||
DEPEND=""
|
||||
|
||||
need_apache
|
||||
|
||||
pkg_setup() {
|
||||
webapp_pkg_setup
|
||||
enewgroup mserv
|
||||
enewuser mserv -1 -1 /dev/null mserv,audio
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# Adjust paths to match Gentoo
|
||||
epatch "${FILESDIR}"/${P}-paths.patch
|
||||
# Mservplay uses stricmp - should be strcasecmp
|
||||
epatch "${FILESDIR}"/${P}-mservplay.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
econf
|
||||
emake || die "emake failed"
|
||||
|
||||
# Optional suid wrapper
|
||||
cd "${S}"/support
|
||||
$(tc-getCC) -I.. -I../mserv ${CFLAGS} ${LDFLAGS} mservplay.c -o mservplay || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
webapp_src_preinst
|
||||
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
dobin support/mservedit support/mservripcd support/mservplay
|
||||
dodoc AUTHORS ChangeLog docs/quick-start.txt
|
||||
|
||||
# Web client
|
||||
dodir ${MY_CGIBINDIR}/${PN}
|
||||
cp webclient/*.cgi "${D}"/${MY_CGIBINDIR}/${PN}
|
||||
cp webclient/*.gif webclient/index.html "${D}"/${MY_HTDOCSDIR}
|
||||
|
||||
webapp_src_install
|
||||
|
||||
# Configuration files
|
||||
insopts -o mserv -g mserv -m0644
|
||||
insinto /etc/mserv
|
||||
fowners mserv:mserv /etc/mserv
|
||||
newins "${FILESDIR}"/${P}-config config
|
||||
newins "${FILESDIR}"/${P}-webacl webacl
|
||||
newins "${FILESDIR}"/${P}-acl acl
|
||||
insinto ${MY_HOSTROOTDIR}/${PN}
|
||||
fowners mserv:mserv ${MY_HOSTROOTDIR}/${PN}
|
||||
newins "${FILESDIR}"/${P}-config config
|
||||
newins "${FILESDIR}"/${P}-webacl webacl
|
||||
newins "${FILESDIR}"/${P}-acl acl
|
||||
fperms 0600 ${MY_HOSTROOTDIR}/${PN}/acl
|
||||
|
||||
newinitd "${FILESDIR}"/${P}-initd ${PN}
|
||||
newconfd "${FILESDIR}"/${P}-confd ${PN}
|
||||
|
||||
# Log file
|
||||
dodir /var/log
|
||||
touch "${D}"var/log/mserv.log
|
||||
fowners mserv:mserv /var/log/mserv.log
|
||||
|
||||
# Track and album info
|
||||
keepdir /var/lib/mserv/trackinfo
|
||||
fowners mserv:mserv /var/lib/mserv/trackinfo
|
||||
|
||||
# Current track output
|
||||
dodir /var/spool/mserv
|
||||
touch "${D}"var/spool/mserv/player.out
|
||||
fowners mserv:mserv /var/spool/mserv /var/spool/mserv/player.out
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "The wrapper program 'mservplay' is disabled for"
|
||||
elog "security reasons. If you wish to use mservplay"
|
||||
elog "to pass a 'nice' value to mpg123, you must make"
|
||||
elog "/usr/bin/mservplay suid root."
|
||||
ewarn
|
||||
ewarn "Please edit /etc/mserv/config and set path_tracks"
|
||||
ewarn "to the location of your music files."
|
||||
webapp_pkg_postinst
|
||||
}
|
||||
@@ -340,12 +340,6 @@ www-servers/thin
|
||||
# clamav-milter completely broken, #697688
|
||||
~app-antivirus/clamav-0.102.0
|
||||
|
||||
# David Seifert <soap@gentoo.org> (2019-10-17)
|
||||
# Dead upstream, EAPI 0, low quality ebuild,
|
||||
# hasn't been touched in ages
|
||||
# Removal in 30 days. Bug #697274.
|
||||
media-sound/mserv
|
||||
|
||||
# Mikle Kolyada <zlogene@gentoo.org> (2019-10-16)
|
||||
# not needed due to openpam removal. Please
|
||||
# update your packages running emerge with the
|
||||
|
||||
Reference in New Issue
Block a user