summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authoradev <adev@linuxmail.org>2010-05-11 22:54:57 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:54:57 +0200
commitedc1cb3d4676b663d0029f7cce6a41f89ae8ecd8 (patch)
treed3de34126dc722abf9a539b951316acf5e9f98ab /network
parent5a528e0685af880fe1d51e2db68cab4a49e7a186 (diff)
downloadslackbuilds-edc1cb3d4676b663d0029f7cce6a41f89ae8ecd8.tar.gz
network/murmur: Added to 12.1 repository
Diffstat (limited to 'network')
-rw-r--r--network/murmur/README13
-rw-r--r--network/murmur/doinst.sh26
-rw-r--r--network/murmur/murmur.SlackBuild69
-rw-r--r--network/murmur/murmur.info8
-rw-r--r--network/murmur/rc.murmur41
-rw-r--r--network/murmur/slack-desc19
6 files changed, 176 insertions, 0 deletions
diff --git a/network/murmur/README b/network/murmur/README
new file mode 100644
index 0000000000..a040fdd8b1
--- /dev/null
+++ b/network/murmur/README
@@ -0,0 +1,13 @@
+Murmur is the VoIP server component for Mumble. Murmur is
+installed in a system-wide fashion, but can also be run by
+individual users. Each murmur process supports multiple virtual
+servers, each with their own user base and channel list.
+Administration of murmur is done through D-Bus.
+
+To run murmur at boot, add the following to /etc/rc.d/rc.local:
+
+if [ -x /etc/rc.d/rc.murmur ]; then
+ /etc/rc.d/rc.murmur start
+fi
+
+Murmur requires qt4 (available on SlackBuilds.org).
diff --git a/network/murmur/doinst.sh b/network/murmur/doinst.sh
new file mode 100644
index 0000000000..4632adfb54
--- /dev/null
+++ b/network/murmur/doinst.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+# Keep same perms on rc.murmur.new:
+if [ -e etc/rc.d/rc.murmur ]; then
+ cp -a etc/rc.d/rc.murmur etc/rc.d/rc.murmur.new.incoming
+ cat etc/rc.d/rc.murmur.new > etc/rc.d/rc.murmur.new.incoming
+ mv etc/rc.d/rc.murmur.new.incoming etc/rc.d/rc.murmur.new
+else
+ # Install executable otherwise - irrelevant unless user starts in rc.local
+ chmod 0755 etc/rc.d/rc.murmur.new
+fi
+
+config etc/rc.d/rc.murmur.new
+config etc/murmur.ini.new
diff --git a/network/murmur/murmur.SlackBuild b/network/murmur/murmur.SlackBuild
new file mode 100644
index 0000000000..d618f0fb80
--- /dev/null
+++ b/network/murmur/murmur.SlackBuild
@@ -0,0 +1,69 @@
+#!/bin/bash
+
+# Slackware build script for murmur
+
+PRGNAM=murmur
+SRCNAM=mumble
+VERSION=${VERSION:-1.1.4}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+qmake-qt4 \
+ main.pro \
+ CONFIG+=no-client
+
+make
+
+mkdir -p $PKG/usr/bin \
+ $PKG/etc \
+ $PKG/var/lib/mumble-server \
+ $PKG/var/run/mumble-server \
+ $PKG/var/log/mumble-server
+install -m 0755 ./release/murmurd $PKG/usr/bin
+install -m 0644 ./scripts/murmur.ini.system $PKG/etc/murmur.ini.new
+strip --strip-unneeded $PKG/usr/bin/* 2>/dev/null || true
+
+mkdir -p $PKG/usr/man/man1
+install -m 0644 ./man/murmurd.1 $PKG/usr/man/man1
+gzip -9 $PKG/usr/man/man1/*
+
+DOCS="CHANGES INSTALL LICENSE README README.Linux $CWD/$PRGNAM.SlackBuild"
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+install -m 0644 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+
+mkdir -p $PKG/install $PKG/etc/rc.d
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/rc.murmur > $PKG/etc/rc.d/rc.murmur.new
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/murmur/murmur.info b/network/murmur/murmur.info
new file mode 100644
index 0000000000..4a39c7325c
--- /dev/null
+++ b/network/murmur/murmur.info
@@ -0,0 +1,8 @@
+PRGNAM="murmur"
+VERSION="1.1.4"
+HOMEPAGE="http://mumble.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/mumble/mumble-1.1.4.tar.gz"
+MD5SUM="06fdd23043fd987b2eb6b56913fac181"
+MAINTAINER="adev"
+EMAIL="adev@linuxmail.org"
+APPROVED="David Somero"
diff --git a/network/murmur/rc.murmur b/network/murmur/rc.murmur
new file mode 100644
index 0000000000..8c2b159872
--- /dev/null
+++ b/network/murmur/rc.murmur
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+PIDFILE="/var/run/mumble-server/mumble-server.pid"
+
+murmur_start() {
+ echo -n "Starting Murmur Server: "
+ if [ ! -f $PIDFILE ]; then
+ /usr/bin/murmurd -ini /etc/murmur.ini & > /dev/null 2>&1
+ echo "OK"
+ else
+ echo -n "Removing stale lock.. "
+ /bin/rm -f $PIDFILE
+ /usr/bin/murmurd -ini /etc/murmur.ini & > /dev/null 2>&1
+ echo "OK"
+ fi
+}
+
+murmur_stop() {
+ echo -n "Stopping Murmur: "
+ if [ -f $PIDFILE ]; then
+ /bin/kill $(/bin/cat $PIDFILE)
+ /bin/rm -f $PIDFILE
+ echo "OK"
+ else
+ echo "Not Running"
+ fi
+}
+
+case "$1" in
+ start)
+ murmur_start
+ ;;
+ stop)
+ murmur_stop
+ ;;
+ restart)
+ murmur_stop && (/bin/sleep 1 && murmur_start)
+ ;;
+ *)
+ echo "Usage: rc.murmur {start|stop|restart}"
+esac
diff --git a/network/murmur/slack-desc b/network/murmur/slack-desc
new file mode 100644
index 0000000000..ead230892a
--- /dev/null
+++ b/network/murmur/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler-------------------------------------------------|
+murmur: murmur (low latency voip server)
+murmur:
+murmur: Murmur is the VoIP server component for Mumble. Murmur is
+murmur: installed in a system-wide fashion, but can also be run by
+murmur: individual users. Each murmur process supports multiple virtual
+murmur: servers, each with their own user base and channel list.
+murmur: Administration of murmur is done through D-Bus.
+murmur:
+murmur: Homepage: http://mumble.sourceforge.net/
+murmur:
+murmur: