New ebuild, mumble server (murmur) wrt bug #155517.
authorTimothy Redaelli <drizzt@gentoo.org>
Sat, 20 Jan 2007 17:17:03 +0000 (17:17 +0000)
committerTimothy Redaelli <drizzt@gentoo.org>
Sat, 20 Jan 2007 17:17:03 +0000 (17:17 +0000)
Package-Manager: portage-2.1.2

media-sound/murmur/ChangeLog [new file with mode: 0644]
media-sound/murmur/files/digest-murmur-0.9.4 [new file with mode: 0644]
media-sound/murmur/files/murmur.confd [new file with mode: 0644]
media-sound/murmur/files/murmur.rc [new file with mode: 0644]
media-sound/murmur/metadata.xml [new file with mode: 0644]
media-sound/murmur/murmur-0.9.4.ebuild [new file with mode: 0644]

diff --git a/media-sound/murmur/ChangeLog b/media-sound/murmur/ChangeLog
new file mode 100644 (file)
index 0000000..013faba
--- /dev/null
@@ -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 <drizzt@gentoo.org> +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 (file)
index 0000000..ebe934a
--- /dev/null
@@ -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 (file)
index 0000000..3610591
--- /dev/null
@@ -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 (file)
index 0000000..9b0748a
--- /dev/null
@@ -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 (file)
index 0000000..74ac835
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+<email>drizzt@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+Mumble is a low-latency, high quality voice chat software primarily intended for use while gaming.
+</longdescription>
+</pkgmetadata>
diff --git a/media-sound/murmur/murmur-0.9.4.ebuild b/media-sound/murmur/murmur-0.9.4.ebuild
new file mode 100644 (file)
index 0000000..0355bab
--- /dev/null
@@ -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
+}