network/murmur: Added to 12.1 repository

This commit is contained in:
adev 2010-05-11 22:54:57 +02:00 committed by David Somero
parent 5a528e0685
commit edc1cb3d46
6 changed files with 176 additions and 0 deletions

13
network/murmur/README Normal file
View file

@ -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).

26
network/murmur/doinst.sh Normal file
View file

@ -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

View file

@ -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

View file

@ -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"

41
network/murmur/rc.murmur Normal file
View file

@ -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

19
network/murmur/slack-desc Normal file
View file

@ -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: