summaryrefslogtreecommitdiff
path: root/media-sound/mserv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/mserv
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/mserv')
-rw-r--r--media-sound/mserv/Manifest12
-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-initd22
-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.xml11
-rw-r--r--media-sound/mserv/mserv-0.35-r1.ebuild107
10 files changed, 297 insertions, 0 deletions
diff --git a/media-sound/mserv/Manifest b/media-sound/mserv/Manifest
new file mode 100644
index 000000000000..b90cb8dddc1d
--- /dev/null
+++ b/media-sound/mserv/Manifest
@@ -0,0 +1,12 @@
+AUX mserv-0.35-acl 52 SHA256 6d72095bd3d88f924e155e62cc8155a575339a2d1b7d8b1035786c2fd1160d20 SHA512 2fbe26f0ccbe9d0ccc815d3430989fa7c38cb976289419c46fb7980e386258cd5ddb52214b4b0a11333bb6cbc8a2e29386efbba455839acbe844ad9b2371b2dc WHIRLPOOL a5957a2f7f13de25166870b8dd934c5e1bfdf65717b67e21de54da994acec4f209af297d1c6f59c1b3173d25f52480a7467ced4e351d3bb5a0e3617fb8821b2a
+AUX mserv-0.35-confd 230 SHA256 4c49734c89f53585fc83592229d6a3a2de40207f7ed2ebfb2ca19500d53b3435 SHA512 99e7f18d8a31a6636dd2c9517e9d0329698f4fa960b416c8ad23b30236bb36442fac3d0b870d938ea1229602b2116c081319dd1fe96a425da011cdd2effe5ead WHIRLPOOL 926bd0f50641f1984fd942d6d7025dded427d3a39fb5976b275906b04b8c3feea7862de7a2ebab6a04855adb3bb2c2225ceec2ffe16efd2fa27583286e02b82a
+AUX mserv-0.35-config 1515 SHA256 c41b3f651798a79da23f2f512c129103ae4b511bbd32c2ba012ab674e03de2f5 SHA512 a0593e3c99057ad0ea2f774405c010652b25484fa7d4352348d6188cd1fc330687a6e20b7cfb06e836f0f84e878398e4042fe30a93b28b836a4d4dba89b25ea3 WHIRLPOOL 1105441e91ce7894c4ddd525ccb78f00a1e8c06e460ed878502a9c022b4ae3df5089d3ecf656d7eb6256cd230db6475e9a2deea87dfdf428c9b16e303d31227b
+AUX mserv-0.35-initd 464 SHA256 e93e2964d900aaa0306b9c891a9cb3a43ded3b35cd189b680bd1774f0aa9f774 SHA512 4a6d95ea43a585372b4e0a6c80673a6d849a09a3649b706b0413ee6182ee10b891d0af32c423e524b845657226fec7b792ec3f1fc6c59c016417dce96610be98 WHIRLPOOL 2c06c4be978488b2aece20c220afb73dc531da5270b6cc24e47254a5edb6c89b38b24e129d58cd20f7e647e7f9718cc7fc59039ca97b3aaafe5385cac0f6949a
+AUX mserv-0.35-mservplay.patch 430 SHA256 b23e16ffd2bcd0924ee3b7f6b12ce932ded7f638956870c992584effa467ad60 SHA512 5cdda97f70608899229ec595edfed5eb163f1abed2fb50e169c970c954b3adf85b7433789958ff4d4a66e877724a9623d056244e6642a07c989c0111b9fc060d WHIRLPOOL 5142a2950024dfe12ab0f72f7b8d0f770641ddc8382a980dd77c63e93afdb00399347bdd9e0a29b0dd4f25946a284b47947e35da1c63a745c45d52e161269b0d
+AUX mserv-0.35-paths.patch 2673 SHA256 26f8acf367eb9da7bcfddbea2238120804b4ea9e020d3a94a04b51b92fd253d7 SHA512 4534aa9a5bd1ae36ec08c53cf5e37e35e2dada8986130065610a89b0d42be60a05d04ce521007f0a55975e042b2cb8f431df2060e7d9f8469ed70254c56c130d WHIRLPOOL 6ff862d5dfc11cfdc2b8466f8958cc2255b30e2fa82461dbfe47dc99473d5e451ab5f332a9f683db037e197bc42602b5cad94e49c3bc48ad6cc9143ef56a57fb
+AUX mserv-0.35-webacl 39 SHA256 3f84ac32ee5eca5b13565a915ba736620f788a7cb031dbf8741b44d99551faa8 SHA512 e0d6a549265bb4e5568ec4cfa2fd003799002e6772f6a8e966510e0f7c7c6f1b2d16cec8ef9961207bf7c4db6973ff954261bd3d89ad2fab47f5b5c183d3f452 WHIRLPOOL 54b39bae8aeb57ea8c66a199435c143c51efe40c8b3661c8e2714d7e532aff7c14ae13d0738e6f7bf06d91963fd8cd89136a722a5320471f7e328da3de005b2c
+DIST mserv-0.35.tar.gz 280299 SHA256 7072ffbea66fd17e1ee0ab81de57eac612cbcb25587931602db85536158dd442 SHA512 a79340fc6ea02cf14dd0c223cf0d9feb5805b9e88d3dc1f4c854edbd9b8fe98c60b89c10555aa4214e153b17452c088dfde7700a5357a2c1a43c22af5d44255f WHIRLPOOL 1064b88b5d90370d61ae8e540cdd3b1899d20645edcb595e7f695dcd9eb450f10fb1ab85b25192b0d401d8be9f46a6cef2155cc31e5c8de0eb7980669a007c87
+EBUILD mserv-0.35-r1.ebuild 2659 SHA256 fa9d58c6b83a126fbe7a2f47a3a3b8240d372f2f6a0c97c499202c0d48db1205 SHA512 2a279cba5a0acf457ded9e0f9fa8cc9179e9d0c2d153fa3f29f15dfc29cc36da6ac82956886d61acd0c7157f441fcd79c758ace1eb7304d0e353e5fd223a6375 WHIRLPOOL a61e05640821ab1344a4adbba6078ef2b2b2cda82db988162ab934ee5882ceb08cd5239eb817516fb4864163bb5f857e0f3d3a9407d05816693c4085cab986b7
+MISC ChangeLog 2756 SHA256 05dd2a1498f625bfa82142ef58f0405cc0b876959675aabd29b9c7eb0fcc3cb7 SHA512 de8a336fa4d844aeff363baa2d0717ea8803c48dfd1453d70c6cef3e47e5e9f1db770be7a41792c841698fd3eb6b3b296d5a82590995a8fa23905fae40b43ecd WHIRLPOOL bda84c656373649fad27b772603d1e6dd7bc743d008516e2fef8d3d219c343083305ada4fb457bd3d282620ad432cbf590928ea717ad9994153c748eccff921c
+MISC ChangeLog-2015 3372 SHA256 d2c4320758b51b163e02e3db04f447faddb29940726a84d2695f6e46cb42c199 SHA512 2a68cf514dd9b7b126db13c04c5c5078aabea9fce224213c440d7f4bc0e542471b2b3d962507c231084d9c110c14b1c2b57f0d170449f58834a3e86c70d3bd0a WHIRLPOOL 657a9afd42ce35a67f5a547f4b6509bf6d3872051bd3776a1711b9e69dde694f720e6a5a7a8fba08ce917a8d71725277e70e18f6d2627bf2893ebd7b0614d376
+MISC metadata.xml 328 SHA256 c6c85ab0793ea457b8b0178b144d14eb62591a1acd9624d1e01c1b117d50023b SHA512 56f37df3967c0d5572bd5811d03b2d0304a90aeb59f4e994dd21adb63b36eec8301cf4b4e1a1e9de81a2a29ac59a8fe33136a8d1a878385f77ec9b72325d91c0 WHIRLPOOL 8ae5e6ae7d8069f9b3731236eccf5b1c5790be3c37a10df4738cc954c7d197aba9b7c7f90e797eb02705371716550238d66876a11e41126af2cbb79c06c9488d
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..86a5a4049562
--- /dev/null
+++ b/media-sound/mserv/files/mserv-0.35-initd
@@ -0,0 +1,22 @@
+#!/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 $?
+}
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..f90a8229753f
--- /dev/null
+++ b/media-sound/mserv/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
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..414bc4fc39ed
--- /dev/null
+++ b/media-sound/mserv/mserv-0.35-r1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}