summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn J. Ellis <jje@gentoo.org>2003-05-10 06:09:54 +0000
committerJohn J. Ellis <jje@gentoo.org>2003-05-10 06:09:54 +0000
commit93c846713bf64abea96378f8ff0256879dbce6ab (patch)
tree9f277b6ac7638b8939ec27c16d4b0ecc598a55aa /media-sound
parentUpdated ebuild. Closes #15721 (~x86 masked) (diff)
downloadgentoo-2-93c846713bf64abea96378f8ff0256879dbce6ab.tar.gz
gentoo-2-93c846713bf64abea96378f8ff0256879dbce6ab.tar.bz2
gentoo-2-93c846713bf64abea96378f8ff0256879dbce6ab.zip
Updated ebuild. Closes #15721 (~x86 masked)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/gnump3d/ChangeLog9
-rw-r--r--media-sound/gnump3d/Manifest4
-rw-r--r--media-sound/gnump3d/files/digest-gnump3d-2.2-r11
-rw-r--r--media-sound/gnump3d/files/gnump3d-2.2-gentoo.diff62
-rw-r--r--media-sound/gnump3d/files/gnump3d-2.2-initd20
-rw-r--r--media-sound/gnump3d/gnump3d-2.2-r1.ebuild53
6 files changed, 146 insertions, 3 deletions
diff --git a/media-sound/gnump3d/ChangeLog b/media-sound/gnump3d/ChangeLog
index 8704991a9bc2..a08c78662913 100644
--- a/media-sound/gnump3d/ChangeLog
+++ b/media-sound/gnump3d/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-sound/gnump3d
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/ChangeLog,v 1.9 2003/04/18 18:27:53 malverian Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/ChangeLog,v 1.10 2003/05/10 06:09:42 jje Exp $
+
+*gnump3d-2.2-r1 (10 May 2003)
+
+ 10 May 2003; jje <jje@gentoo.org> gnump3d-2.2-r1.ebuild:
+ Updated ebuild with init script.
+
+ Submitted by: Jyrki Muukkonen
*gnump3d-2.2 (09 Mar 2003)
diff --git a/media-sound/gnump3d/Manifest b/media-sound/gnump3d/Manifest
index e88f0b16c3c0..7eeb83deeec2 100644
--- a/media-sound/gnump3d/Manifest
+++ b/media-sound/gnump3d/Manifest
@@ -1,8 +1,8 @@
-MD5 39acb810fd6552c55770d2d242dd159f ChangeLog 1584
+MD5 1e6672c5a91e196edca262fd22243bd4 ChangeLog 1579
MD5 b834a3556fab57689814993ff7d5c31e gnump3d-0.9.9.4.ebuild 1181
MD5 7912d4643757872dd94feb1b4db78bd7 gnump3d-2.2.ebuild 1144
MD5 8f41800bb8d64c16fbf86868ba070cd6 gnump3d-1.0.ebuild 1413
-MD5 67cdb91cd8a8d73c1b637d1204d1d727 gnump3d-2.2-r1.ebuild 1098
+MD5 fc911f45e4e256f48ed29a1aebc2cee5 gnump3d-2.2-r1.ebuild 1199
MD5 88a7d8bd4d3497fa0746c27a8028981f files/digest-gnump3d-0.9.9.4 67
MD5 2a8a844e5947e1cbb8a977c47c259834 files/digest-gnump3d-1.0 64
MD5 4cd80c2edb14b3d0c90f74cd0a925c16 files/doc-Makefile-gentoo.patch 439
diff --git a/media-sound/gnump3d/files/digest-gnump3d-2.2-r1 b/media-sound/gnump3d/files/digest-gnump3d-2.2-r1
new file mode 100644
index 000000000000..532498c73dc0
--- /dev/null
+++ b/media-sound/gnump3d/files/digest-gnump3d-2.2-r1
@@ -0,0 +1 @@
+MD5 10849cbaaa2c4a1589ec69b30fd04e47 gnump3d-2.2.tar.gz 173740
diff --git a/media-sound/gnump3d/files/gnump3d-2.2-gentoo.diff b/media-sound/gnump3d/files/gnump3d-2.2-gentoo.diff
new file mode 100644
index 000000000000..51b9f2e16261
--- /dev/null
+++ b/media-sound/gnump3d/files/gnump3d-2.2-gentoo.diff
@@ -0,0 +1,62 @@
+diff -ru gnump3d-2.2-orig/Makefile gnump3d-2.2/Makefile
+--- gnump3d-2.2-orig/Makefile 2003-02-04 11:25:13.000000000 +0200
++++ gnump3d-2.2/Makefile 2003-02-22 04:07:20.000000000 +0200
+@@ -26,12 +26,10 @@
+ install -d $(PREFIX)/share/gnump3d
+ install -d $(PREFIX)/bin
+ install -d $(PREFIX)/man/man1
+- install -d /var/log/gnump3d
+- install -d /etc/gnump3d
+ cp lib/gnump3d/*.pm $(LIBDIR)/gnump3d
+ cp lib/gnump3d/plugins/*.pm $(LIBDIR)/gnump3d/plugins
+ cp bin/gnump3d2 $(PREFIX)/bin/
+- -ln -s $(PREFIX)/bin/gnump3d2 $(PREFIX)/bin/gnump3d
++ -ln -s gnump3d2 $(PREFIX)/bin/gnump3d
+ cp bin/gnump3d-top $(PREFIX)/bin
+ cp man/gnump3d-top.1 $(PREFIX)/man/man1
+ cp man/gnump3d.1 $(PREFIX)/man/man1
+@@ -39,8 +37,6 @@
+ cp -R templates/* $(PREFIX)/share/gnump3d
+ chmod -R a+r $(PREFIX)/share/gnump3d/
+ chmod +rx $(PREFIX)/share/gnump3d/*/
+- if [ ! -e /etc/gnump3d/gnump3d.conf ]; then cp etc/gnump3d.conf /etc/gnump3d ; fi
+- cp etc/mime.types /etc/gnump3d
+
+ uninstall:
+ rm -f $(PREFIX)/bin/gnump3d-top
+diff -ru gnump3d-2.2-orig/bin/gnump3d2 gnump3d-2.2/bin/gnump3d2
+--- gnump3d-2.2-orig/bin/gnump3d2 2003-02-04 11:25:13.000000000 +0200
++++ gnump3d-2.2/bin/gnump3d2 2003-02-22 03:43:12.000000000 +0200
+@@ -280,6 +280,11 @@
+ if ( ( not $DEBUG ) and ( $BACKGROUND ) )
+ {
+ fork() && exit;
++ # 2003-02-22 Jyrki Muukkonen
++ # we need a pidfile for /etc/init.d/gnump3d script
++ open( PIDFILE, ">/var/run/gnump3d.pid" );
++ print PIDFILE $PID;
++ close( PIDFILE );
+ }
+
+
+diff -ru gnump3d-2.2-orig/etc/gnump3d.conf gnump3d-2.2/etc/gnump3d.conf
+--- gnump3d-2.2-orig/etc/gnump3d.conf 2003-02-04 11:25:13.000000000 +0200
++++ gnump3d-2.2/etc/gnump3d.conf 2003-02-22 02:34:42.000000000 +0200
+@@ -93,7 +93,7 @@
+ # If you're on a multi-user system its probably a good idea to
+ # make the audio files readable to other users anyway...
+ #
+-root = /home/mp3
++# root = /home/mp3
+
+
+ #
+@@ -611,7 +611,7 @@
+ #
+ # plugin_directory = /usr/lib/perl5/gnump3d/plugins
+ #
+-
++plugin_directory = /usr/lib/perl5/5.8.0/gnump3d/plugins
+
+ #
+ # By default all the plugins which are shipped with this server are
diff --git a/media-sound/gnump3d/files/gnump3d-2.2-initd b/media-sound/gnump3d/files/gnump3d-2.2-initd
new file mode 100644
index 000000000000..8f8b8a460227
--- /dev/null
+++ b/media-sound/gnump3d/files/gnump3d-2.2-initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting gnump3d"
+ start-stop-daemon --start --quiet --exec /usr/bin/gnump3d2 -- --background --quiet
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping gnump3d"
+ start-stop-daemon --stop --quiet --pidfile /var/run/gnump3d.pid
+ eend $?
+}
+
diff --git a/media-sound/gnump3d/gnump3d-2.2-r1.ebuild b/media-sound/gnump3d/gnump3d-2.2-r1.ebuild
new file mode 100644
index 000000000000..818e23af24db
--- /dev/null
+++ b/media-sound/gnump3d/gnump3d-2.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/gnump3d-2.2-r1.ebuild,v 1.1 2003/05/10 06:09:42 jje Exp $
+
+DESCRIPTION="A streaming server for MP3, OGG vorbis and other streamable files"
+SRC_URI="mirror://sourceforge/gnump3d/${P}.tar.gz"
+HOMEPAGE="http://gnump3d.sourceforge.net/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+RDEPEND=">=dev-lang/perl-5.8.0"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_install() {
+ make \
+ LIBDIR=${D}`perl bin/getlibdir` \
+ PREFIX=${D}/usr \
+ install || die
+
+ # init.d
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/gnump3d-2.2-initd gnump3d
+
+ # just to be sure..
+ dosym usr/bin/gnump3d2 gnump3d
+
+ # make directories
+ DIROPTIONS="--owner=nobody" dodir /var/log/gnump3d
+ dodir /etc/gnump3d
+
+ # copy config files
+ insinto /etc/gnump3d
+ doins etc/*
+
+ # docs
+ dodoc AUTHORS COPYING ChangeLog INSTALL README TODO
+}
+
+pkg_postinst() {
+ einfo
+ einfo "The default directory for shared mp3s is /home/mp3"
+ einfo "Please edit your /etc/gnump3d/gnump3d.conf before"
+ einfo "running /etc/init.d/gnump3d start"
+ einfo
+}
+