summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-03-11 08:23:42 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-03-11 08:23:42 +0000
commitcbe42cf8374097e77db6189b95f984d9d90d4d67 (patch)
treede30298d12d86725f159101c74da12d65cfe2fd5 /media-sound/mserv
parentVersion bump. (diff)
downloadhistorical-cbe42cf8374097e77db6189b95f984d9d90d4d67.tar.gz
historical-cbe42cf8374097e77db6189b95f984d9d90d4d67.tar.bz2
historical-cbe42cf8374097e77db6189b95f984d9d90d4d67.zip
mserv is a jukebox server. Ebuild submitted by Stephen Martin <steve@deadlylaser.com> in bug #27902.
Diffstat (limited to 'media-sound/mserv')
-rw-r--r--media-sound/mserv/ChangeLog11
-rw-r--r--media-sound/mserv/Manifest11
-rw-r--r--media-sound/mserv/files/digest-mserv-0.351
-rw-r--r--media-sound/mserv/files/mserv-0.35-acl2
-rw-r--r--media-sound/mserv/files/mserv-0.35-confd7
-rw-r--r--media-sound/mserv/files/mserv-0.35-config49
-rw-r--r--media-sound/mserv/files/mserv-0.35-initd23
-rw-r--r--media-sound/mserv/files/mserv-0.35-mservplay.patch11
-rw-r--r--media-sound/mserv/files/mserv-0.35-paths.patch74
-rw-r--r--media-sound/mserv/files/mserv-0.35-webacl2
-rw-r--r--media-sound/mserv/metadata.xml5
-rw-r--r--media-sound/mserv/mserv-0.35.ebuild108
12 files changed, 304 insertions, 0 deletions
diff --git a/media-sound/mserv/ChangeLog b/media-sound/mserv/ChangeLog
new file mode 100644
index 000000000000..c5ede1c66ee0
--- /dev/null
+++ b/media-sound/mserv/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-sound/mserv
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mserv/ChangeLog,v 1.1 2004/03/11 08:23:42 eradicator Exp $
+
+*mserv-0.35 (10 Mar 2004)
+
+ 10 Mar 2004; Jeremy Huddleston <eradicator@gentoo.org> metadata.xml,
+ mserv-0.35.ebuild:
+ mserv is a jukebox server. Ebuild submitted by Stephen Martin
+ <steve@deadlylaser.com> in bug #27902.
+
diff --git a/media-sound/mserv/Manifest b/media-sound/mserv/Manifest
new file mode 100644
index 000000000000..22f93e900b40
--- /dev/null
+++ b/media-sound/mserv/Manifest
@@ -0,0 +1,11 @@
+MD5 e30cf6d53175a938a0ffb8a04d335d91 mserv-0.35.ebuild 2714
+MD5 3ceba03d3989c530f60d7bf532766f93 ChangeLog 445
+MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
+MD5 80c9282eed058c3239f45586473cbf70 files/mserv-0.35-mservplay.patch 430
+MD5 e4b81c74040c77c60a324f42646e960e files/mserv-0.35-config 1515
+MD5 a823115f64db37b88b25a3689b0f9e19 files/mserv-0.35-webacl 39
+MD5 bab25861d10f61d56534a40883052be3 files/mserv-0.35-paths.patch 2673
+MD5 85efb51a180ddf66f95a59ffbbb9f81a files/mserv-0.35-confd 230
+MD5 cccbdb1dae781d2e738fe46915c5cc49 files/mserv-0.35-initd 591
+MD5 d1973ea3781773cbbe8510ea648ddb19 files/digest-mserv-0.35 62
+MD5 d5465c51ab8fd155dab29a702c04897a files/mserv-0.35-acl 52
diff --git a/media-sound/mserv/files/digest-mserv-0.35 b/media-sound/mserv/files/digest-mserv-0.35
new file mode 100644
index 000000000000..66eeaf0b58ae
--- /dev/null
+++ b/media-sound/mserv/files/digest-mserv-0.35
@@ -0,0 +1 @@
+MD5 8ba12b7b015f1262f00166b3db7b05d3 mserv-0.35.tar.gz 280299
diff --git a/media-sound/mserv/files/mserv-0.35-acl b/media-sound/mserv/files/mserv-0.35-acl
new file mode 100644
index 000000000000..201913ef2177
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-acl
@@ -0,0 +1,2 @@
+root:a16aKMw/UDpfc:MASTER
+guest:ax/jGzB/YyIVk:GUEST
diff --git a/media-sound/mserv/files/mserv-0.35-confd b/media-sound/mserv/files/mserv-0.35-confd
new file mode 100644
index 000000000000..5d4feef5e05b
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-confd
@@ -0,0 +1,7 @@
+# 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
diff --git a/media-sound/mserv/files/mserv-0.35-config b/media-sound/mserv/files/mserv-0.35-config
new file mode 100644
index 000000000000..95afad8522d6
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-config
@@ -0,0 +1,49 @@
+# 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
+
diff --git a/media-sound/mserv/files/mserv-0.35-initd b/media-sound/mserv/files/mserv-0.35-initd
new file mode 100644
index 000000000000..fec0aadaf10b
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mserv/files/mserv-0.35-initd,v 1.1 2004/03/11 08:23:42 eradicator Exp $
+
+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 $?
+}
diff --git a/media-sound/mserv/files/mserv-0.35-mservplay.patch b/media-sound/mserv/files/mserv-0.35-mservplay.patch
new file mode 100644
index 000000000000..45beafe68551
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-mservplay.patch
@@ -0,0 +1,11 @@
+--- 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);
diff --git a/media-sound/mserv/files/mserv-0.35-paths.patch b/media-sound/mserv/files/mserv-0.35-paths.patch
new file mode 100644
index 000000000000..dca7560ddcb7
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-paths.patch
@@ -0,0 +1,74 @@
+--- 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') {
diff --git a/media-sound/mserv/files/mserv-0.35-webacl b/media-sound/mserv/files/mserv-0.35-webacl
new file mode 100644
index 000000000000..9e438c085d5c
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-webacl
@@ -0,0 +1,2 @@
+root:a16aKMw/UDpfc
+guest:ax/jGzB/YyIVk
diff --git a/media-sound/mserv/metadata.xml b/media-sound/mserv/metadata.xml
new file mode 100644
index 000000000000..e1774e3d9ad7
--- /dev/null
+++ b/media-sound/mserv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
diff --git a/media-sound/mserv/mserv-0.35.ebuild b/media-sound/mserv/mserv-0.35.ebuild
new file mode 100644
index 000000000000..69d3dd3296d9
--- /dev/null
+++ b/media-sound/mserv/mserv-0.35.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mserv/mserv-0.35.ebuild,v 1.1 2004/03/11 08:23:42 eradicator Exp $
+
+inherit webapp-apache eutils
+
+DESCRIPTION="Jukebox-style music server"
+HOMEPAGE="http://www.mserv.org"
+SRC_URI="mirror://sourceforge/mserv/${P}.tar.gz"
+RESTRICT="nomirror"
+LICENSE="mserv"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="apache2 oggvorbis"
+
+DEPEND="virtual/glibc"
+RDEPEND=">=dev-lang/perl-5.6.1
+ virtual/mpg123
+ media-sound/sox
+ net-www/apache
+ oggvorbis? ( media-sound/vorbis-tools )"
+
+S=${WORKDIR}/${P}
+
+webapp-detect
+
+pkg_setup() {
+ enewgroup mserv > /dev/null || die
+ enewuser mserv -1 /bin/false /dev/null mserv -G audio > /dev/null || die
+}
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+
+ # Adjust paths to match Gentoo
+ epatch ${FILESDIR}/${P}-paths.patch || die
+ # Mservplay uses stricmp - should be strcasecmp
+ epatch ${FILESDIR}/${P}-mservplay.patch || die
+}
+
+src_compile() {
+ econf || die
+ emake || die
+
+ # Optional suid wrapper
+ cd ${S}/support
+ gcc -I.. -I../mserv ${CFLAGS} mservplay.c -o mservplay || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dobin support/mservedit support/mservripcd support/mservplay
+ dodoc AUTHORS COPYING ChangeLog docs/quick-start.txt
+
+ # Web client
+ exeinto ${HTTPD_CGIBIN}/mserv
+ doexe webclient/*.cgi
+ insinto ${HTTPD_ROOT}/mserv
+ doins webclient/*.gif webclient/index.html
+
+ # 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
+ fperms 0600 /etc/mserv/acl
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/${P}-initd ${PN}
+
+ insinto /etc/conf.d
+ newins ${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
+ dodir /var/lib/mserv/trackinfo
+ fowners mserv:mserv /var/lib/mserv/trackinfo
+ touch ${D}/var/lib/mserv/trackinfo/.keep
+ fowners mserv:mserv /var/lib/mserv/trackinfo/.keep
+
+ # 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() {
+ einfo
+ einfo "The wrapper program 'mservplay' is disabled for"
+ einfo "security reasons. If you wish to use mservplay"
+ einfo "to pass a 'nice' value to mpg123, you must make"
+ einfo "/usr/bin/mservplay suid root."
+ einfo
+ einfo "The web client has been installed in"
+ einfo "${HTTPD_ROOT}/mserv."
+ ewarn
+ ewarn "Please edit /etc/mserv/config and set path_tracks"
+ ewarn "to the location of your music files."
+}