diff options
author | Matthew Kennedy <mkennedy@gentoo.org> | 2003-11-24 08:05:30 +0000 |
---|---|---|
committer | Matthew Kennedy <mkennedy@gentoo.org> | 2003-11-24 08:05:30 +0000 |
commit | 5177f1d0b1091742c5153c98c3d3ff2b06e36b9d (patch) | |
tree | b83bfcbe4b2642eb88784cd1d54870605bab90de | |
parent | simplification of the port (no need for gentoo-diffs for install and pid), ad... (diff) | |
download | historical-5177f1d0b1091742c5153c98c3d3ff2b06e36b9d.tar.gz historical-5177f1d0b1091742c5153c98c3d3ff2b06e36b9d.tar.bz2 historical-5177f1d0b1091742c5153c98c3d3ff2b06e36b9d.zip |
simplification of the port (no need for gentoo-diffs for install and pid), add a gnump3d user to the system, version bump
-rw-r--r-- | media-sound/gnump3d/Manifest | 5 | ||||
-rw-r--r-- | media-sound/gnump3d/files/digest-gnump3d-2.6 | 1 | ||||
-rw-r--r-- | media-sound/gnump3d/files/gnump3d-2.6-initd | 27 | ||||
-rw-r--r-- | media-sound/gnump3d/gnump3d-2.6.ebuild | 52 |
4 files changed, 83 insertions, 2 deletions
diff --git a/media-sound/gnump3d/Manifest b/media-sound/gnump3d/Manifest index f16fdef2af49..ab5d9f77f11b 100644 --- a/media-sound/gnump3d/Manifest +++ b/media-sound/gnump3d/Manifest @@ -1,10 +1,10 @@ -MD5 2c79b627491d392022a05e83f1ed1029 ChangeLog 1716 +MD5 37ebd2a390cc47aaa1c375ecfdf5de95 ChangeLog 1959 MD5 85505fe663f39961d7333b0c60f1c198 gnump3d-0.9.9.4.ebuild 1181 MD5 8f41800bb8d64c16fbf86868ba070cd6 gnump3d-1.0.ebuild 1413 MD5 b78ab59ccf6de5d26835f3c57588abbd gnump3d-2.2-r1.ebuild 1201 MD5 c8c7fa528802ad31b5b33f644f30272d gnump3d-2.2.ebuild 1135 MD5 5ec031d87f9cffce2f2062a36da4cc9c gnump3d-2.4.ebuild 1192 -MD5 7b3afb7dbaf8528e3875cd8933a97c15 gnump3d-2.6.ebuild 1199 +MD5 28bfc409f8467e2347fc37aa438e8084 gnump3d-2.6.ebuild 1693 MD5 88a7d8bd4d3497fa0746c27a8028981f files/digest-gnump3d-0.9.9.4 67 MD5 2a8a844e5947e1cbb8a977c47c259834 files/digest-gnump3d-1.0 64 MD5 ed2b7457b2cfbdbc3f20a448938c725a files/digest-gnump3d-2.2 63 @@ -21,3 +21,4 @@ MD5 1f3dcc89b8046daf546044127a4927bc files/gnump3d-2.4-initd 414 MD5 5322bda842b45879eacae850ac48caa2 files/gnump3d.rc6 388 MD5 1cc59e977b80559a3ca4360188e824c7 files/mp3d.conf-gentoo.patch 581 MD5 d2ff0d8a3c4427010cc3c015d1f6b744 files/digest-gnump3d-2.6 64 +MD5 43fb2eda5c6215d101dbed06dea6a13b files/gnump3d-2.6-initd 573 diff --git a/media-sound/gnump3d/files/digest-gnump3d-2.6 b/media-sound/gnump3d/files/digest-gnump3d-2.6 new file mode 100644 index 000000000000..13e935bf4619 --- /dev/null +++ b/media-sound/gnump3d/files/digest-gnump3d-2.6 @@ -0,0 +1 @@ +MD5 30c361ca60c4f01a81dc5b86fd949e6f gnump3d-2.6.tar.bz2 190567 diff --git a/media-sound/gnump3d/files/gnump3d-2.6-initd b/media-sound/gnump3d/files/gnump3d-2.6-initd new file mode 100644 index 000000000000..ff175d4aeee5 --- /dev/null +++ b/media-sound/gnump3d/files/gnump3d-2.6-initd @@ -0,0 +1,27 @@ +#!/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 --make-pidfile \ + --background --pidfile /var/run/gnump3d.pid \ + --exec /usr/bin/gnump3d2 -- --quiet + eend $? +} + +stop() { + ebegin "Stopping gnump3d" + start-stop-daemon --stop --quiet --pidfile /var/run/gnump3d.pid + eend $? +} + +# Local Variables: *** +# mode: shell-script *** +# indent-tabs-mode: t *** +# tab-width: 4 *** +# End: *** diff --git a/media-sound/gnump3d/gnump3d-2.6.ebuild b/media-sound/gnump3d/gnump3d-2.6.ebuild new file mode 100644 index 000000000000..cbb313ddae39 --- /dev/null +++ b/media-sound/gnump3d/gnump3d-2.6.ebuild @@ -0,0 +1,52 @@ +# 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.6.ebuild,v 1.1 2003/11/24 08:05:25 mkennedy Exp $ + +DESCRIPTION="A streaming server for MP3, OGG vorbis and other streamable files" +SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tar.bz2" +HOMEPAGE="http://gnump3d.sourceforge.net/" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +RDEPEND=">=dev-lang/perl-5.8.0" + +src_install() { + local LIBDIR=/usr/lib/gnump3d + insinto ${LIBDIR}/gnump3d; doins lib/gnump3d/*.pm + insinto ${LIBDIR}/gnump3d/plugins; doins lib/gnump3d/plugins/*.pm + insinto ${LIBDIR}/gnump3d/lang; doins lib/gnump3d/lang/*.pm + dobin bin/gnump3d2 bin/gnump3d-top bin/gnump3d-index + dosym /usr/bin/gnump3d2 /usr/bin/gnump3d + doman man/*.1 + dodir /usr/share/gnump3d; cp -R templates/* ${D}/usr/share/gnump3d/ + insinto /etc/gnump3d + doins etc/mime.types + sed -e "s,PLUGINDIR,${LIBDIR},g" \ + -e 's,^user *= *\(.*\)$,user = gnump3d,g' \ + etc/gnump3d.conf >${D}/etc/gnump3d/gnump3d.conf + + dodoc AUTHORS ChangeLog README COPYING TODO + + exeinto /etc/init.d + newexe ${FILESDIR}/gnump3d-${PV}-initd gnump3d + dodir /etc/env.d + cat >${D}/etc/env.d/50gnump3d <<EOF +PERL5LIB="${LIBDIR}" +EOF + dodir /var/log/gnump3d + dodir /var/cache/gnump3d/serving + touch ${D}/var/cache/gnump3d/serving/.keep +} + +pkg_postinst() { + enewuser gnump3d '' '' '' nogroup + chown -R gnump3d /var/log/gnump3d + chown -R gnump3d /var/cache/gnump3d + while read line; do einfo "${line}"; done <<EOF + +The default directory for shared mp3s is /home/mp3. Please edit your +/etc/gnump3d/gnump3d.conf before running /etc/init.d/gnump3d start + +EOF +} |