summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-sound/mserv
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-sound/mserv')
-rw-r--r--media-sound/mserv/Manifest1
-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.xml8
-rw-r--r--media-sound/mserv/mserv-0.35-r1.ebuild108
10 files changed, 285 insertions, 0 deletions
diff --git a/media-sound/mserv/Manifest b/media-sound/mserv/Manifest
new file mode 100644
index 000000000000..a97af5ae8d47
--- /dev/null
+++ b/media-sound/mserv/Manifest
@@ -0,0 +1 @@
+DIST mserv-0.35.tar.gz 280299 SHA256 7072ffbea66fd17e1ee0ab81de57eac612cbcb25587931602db85536158dd442
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..b694107fe036
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Id$
+
+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..40df0e99544a
--- /dev/null
+++ b/media-sound/mserv/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sound</herd>
+ <upstream>
+ <remote-id type="sourceforge">mserv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/mserv/mserv-0.35-r1.ebuild b/media-sound/mserv/mserv-0.35-r1.ebuild
new file mode 100644
index 000000000000..6cb62d29c324
--- /dev/null
+++ b/media-sound/mserv/mserv-0.35-r1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}