From 13e59e550ddf9202c104e47f05c06362a3e45701 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Sat, 20 Jan 2007 17:17:03 +0000 Subject: [PATCH] New ebuild, mumble server (murmur) wrt bug #155517. Package-Manager: portage-2.1.2 --- media-sound/murmur/ChangeLog | 10 ++++ media-sound/murmur/files/digest-murmur-0.9.4 | 3 ++ media-sound/murmur/files/murmur.confd | 12 +++++ media-sound/murmur/files/murmur.rc | 27 ++++++++++ media-sound/murmur/metadata.xml | 11 +++++ media-sound/murmur/murmur-0.9.4.ebuild | 52 ++++++++++++++++++++ 6 files changed, 115 insertions(+) create mode 100644 media-sound/murmur/ChangeLog create mode 100644 media-sound/murmur/files/digest-murmur-0.9.4 create mode 100644 media-sound/murmur/files/murmur.confd create mode 100644 media-sound/murmur/files/murmur.rc create mode 100644 media-sound/murmur/metadata.xml create mode 100644 media-sound/murmur/murmur-0.9.4.ebuild diff --git a/media-sound/murmur/ChangeLog b/media-sound/murmur/ChangeLog new file mode 100644 index 000000000000..013faba28471 --- /dev/null +++ b/media-sound/murmur/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-sound/murmur +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/ChangeLog,v 1.1 2007/01/20 17:17:03 drizzt Exp $ + +*murmur-0.9.4 (20 Jan 2007) + + 20 Jan 2007; Timothy Redaelli +files/murmur.confd, + +files/murmur.rc, +metadata.xml, +murmur-0.9.4.ebuild: + New ebuild, mumble server (murmur) wrt bug #155517. + diff --git a/media-sound/murmur/files/digest-murmur-0.9.4 b/media-sound/murmur/files/digest-murmur-0.9.4 new file mode 100644 index 000000000000..ebe934a2e016 --- /dev/null +++ b/media-sound/murmur/files/digest-murmur-0.9.4 @@ -0,0 +1,3 @@ +MD5 22b08db6e4757134ba27a93d145d647b mumble-0.9.4.tar.bz2 250137 +RMD160 96fe8968d888a4b491fe35894a4da46bc39c3765 mumble-0.9.4.tar.bz2 250137 +SHA256 cf02411ad244dbe6537f4bdfe64b0accc6dcb668d47e4b371c08572052b6259d mumble-0.9.4.tar.bz2 250137 diff --git a/media-sound/murmur/files/murmur.confd b/media-sound/murmur/files/murmur.confd new file mode 100644 index 000000000000..361059149f08 --- /dev/null +++ b/media-sound/murmur/files/murmur.confd @@ -0,0 +1,12 @@ +# where to look for config files +MURMUR_CONFDIR=/etc/murmur + +# were to log +MURMUR_LOGFILE=/var/log/murmur.log + +# run as this user +MURMUR_USER=murmur + +# HOME directory of MURMUR_USER +# needs to be set for start-stop-daemon! +MURMUR_HOMEDIR=/var/lib/murmur diff --git a/media-sound/murmur/files/murmur.rc b/media-sound/murmur/files/murmur.rc new file mode 100644 index 000000000000..9b0748af3119 --- /dev/null +++ b/media-sound/murmur/files/murmur.rc @@ -0,0 +1,27 @@ +#!/sbin/runscript + +depend() { + need net + need localmount + after bootmisc +} + +start() { + ebegin "Starting Murmur voice chat server" + start-stop-daemon --start --make-pidfile --pidfile /var/run/murmur.pid \ + --chuid $MURMUR_USER --env HOME=$MURMUR_HOMEDIR \ + --exec /usr/bin/murmur -- -ini $MURMUR_CONFDIR/murmur.ini &> $MURMUR_LOGFILE & + eend $? +} + +stop() { + ebegin "Stopping Murmur voice chat server" + start-stop-daemon --stop --exec /usr/bin/murmur \ + --pidfile /var/run/murmur.pid + eend $? + #rm /var/run/murmur.pid +} + +#restart() { +# #(Commands necessary to restart the service) +#} diff --git a/media-sound/murmur/metadata.xml b/media-sound/murmur/metadata.xml new file mode 100644 index 000000000000..74ac835bd3ee --- /dev/null +++ b/media-sound/murmur/metadata.xml @@ -0,0 +1,11 @@ + + + +voip + +drizzt@gentoo.org + + +Mumble is a low-latency, high quality voice chat software primarily intended for use while gaming. + + diff --git a/media-sound/murmur/murmur-0.9.4.ebuild b/media-sound/murmur/murmur-0.9.4.ebuild new file mode 100644 index 000000000000..0355bab42715 --- /dev/null +++ b/media-sound/murmur/murmur-0.9.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/murmur-0.9.4.ebuild,v 1.1 2007/01/20 17:17:03 drizzt Exp $ + +inherit eutils toolchain-funcs + +MY_P=mumble-${PV} + +DESCRIPTION="voice chat software for gaming written in Qt4 (server)" +HOMEPAGE="http://mumble.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="dev-libs/boost + =x11-libs/qt-4* + media-libs/speex + media-libs/alsa-lib + x11-libs/libXevie" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + if ! built_with_use =x11-libs/qt-4* sqlite ; then + echo + ewarn "You need to build Qt4 with the sqlite use flag" + echo + die "Your Qt4 has no sqlite support" + fi +} + +src_compile() { + qmake murmur.pro || die "qmake failed" + emake CC="$(tc-getCC) ${CFLAGS}" \ + CXX="$(tc-getCXX) ${CXXFLAGS}" \ + LINK="$(tc-getCXX)" \ + LFLAGS="${LDFLAGS}" || die "emake failed" +} + +src_install() { + dodoc README CHANGES || die "installing docs failed" + dobin murmur || die "installing failed" + insinto /etc/murmur + doins murmur.ini + newinitd "${FILESDIR}"/murmur.rc murmur + newconfd "${FILESDIR}"/murmur.confd murmur +} -- 2.26.2