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 | d973eff646a17b0be40da29eb7c1b8336385ba06 (patch) | |
tree | 8146c321af3b61efaa2ae5dda0d20362a913cac9 /media-sound | |
parent | simplification of the port (no need for gentoo-diffs for install and pid), ad... (diff) | |
download | gentoo-2-d973eff646a17b0be40da29eb7c1b8336385ba06.tar.gz gentoo-2-d973eff646a17b0be40da29eb7c1b8336385ba06.tar.bz2 gentoo-2-d973eff646a17b0be40da29eb7c1b8336385ba06.zip |
simplification of the port (no need for gentoo-diffs for install and pid), add a gnump3d user to the system, version bump
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/gnump3d/ChangeLog | 9 | ||||
-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 |
5 files changed, 91 insertions, 3 deletions
diff --git a/media-sound/gnump3d/ChangeLog b/media-sound/gnump3d/ChangeLog index f890a23af87d..72e56159771a 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.11 2003/06/25 09:52:03 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/ChangeLog,v 1.12 2003/11/24 08:05:24 mkennedy Exp $ + +*gnump3d-2.6 (24 Nov 2003) + + 24 Nov 2003; <mkennedy@gentoo.org> gnump3d-2.6.ebuild, + files/gnump3d-2.6-initd: + simplification of the port (no need for gentoo-diffs for install and pid), add + a gnump3d user to the system, version bump *gnump3d-2.4 (25 Jun 2003) 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 +} |