Commit c09a8f93 authored by Michael Mason's avatar Michael Mason

unstable/gnump3d Initial Commit

parent dd0595e5
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=gnump3d
pkgver=3.0
pkgrel=0
pkgdesc="A streaming server for MP3, OGG vorbis and other streamable files"
url="http://www.gnump3d.org/"
license="GPL-2"
depends="perl"
makedepends=""
install=
subpackages="$pkgname-doc"
source="http://savannah.gnu.org/download/gnump3d/$pkgname-$pkgver.tar.gz
gnump3d.confd
gnump3d.initd"
build() {
cd "$srcdir"/$pkgname-$pkgver
make PREFIX="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
mv "$pkgdir"/usr/local "$pkgdir"-doc/
}
md5sums="d2b665c3267253cc8cae29659131b9b4 gnump3d-3.0.tar.gz
59f0286d4c943226a67ab7b7787547c6 gnump3d.confd
5202488dff1c7e6c6788fb00fb32f071 gnump3d.initd"
# Set this to 0 to stop the init script from indexing your mp3s.
# It takes the longest on the first time, but after that, it only does
# updates.
DO_INDEX=1
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.4 2008/06/03 14:52:33 beandog Exp $
opts="start stop index"
depend() {
need net
after netmount nfsmount
}
start() {
ebegin "Starting gnump3d"
if [ ${DO_INDEX} -eq 1 ]; then
ebegin "Updating index of music files (may take a while for the first time)"
/usr/bin/gnump3d-index
eend $?
fi
start-stop-daemon --start --quiet --exec /usr/bin/gnump3d2 --make-pidfile \
--pidfile /var/run/gnump3d.pid --background -- --quiet
eend $?
}
stop() {
ebegin "Stopping gnump3d"
start-stop-daemon --stop --quiet --pidfile /var/run/gnump3d.pid
eend $?
}
index() {
ebegin "Indexing music files"
/usr/bin/gnump3d-index
eend $?
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment