mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/murmur: Updated for version 1.2.3 new maintainer.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
acc3b32857
commit
19484706bc
7 changed files with 128 additions and 49 deletions
|
@ -4,8 +4,24 @@ individual users. Each murmur process supports multiple virtual
|
||||||
servers, each with their own user base and channel list.
|
servers, each with their own user base and channel list.
|
||||||
Administration of murmur is done through D-Bus.
|
Administration of murmur is done through D-Bus.
|
||||||
|
|
||||||
To run murmur at boot, add the following to /etc/rc.d/rc.local:
|
NOTE: If you're upgrading from 1.1.4, the SlackBuild has changed:
|
||||||
|
/var/{lib,log,run}/mumble-server moved to /var/{lib,log,run}/murmur
|
||||||
|
|
||||||
if [ -x /etc/rc.d/rc.murmur ]; then
|
This script requires the system to have a murmur user and group:
|
||||||
/etc/rc.d/rc.murmur start
|
|
||||||
fi
|
# groupadd -g 261 murmur
|
||||||
|
# useradd -g murmur -u 261 -d /var/lib/murmur -s /bin/false murmur
|
||||||
|
|
||||||
|
To use a different user and/or group:
|
||||||
|
|
||||||
|
# MURMUR_USER=user MURMUR_GROUP=group ./murmur.SlackBuild
|
||||||
|
|
||||||
|
To run murmur at boot:
|
||||||
|
|
||||||
|
# chmod +x /etc/rc.d/rc.murmur
|
||||||
|
|
||||||
|
Add the following to /etc/rc.d/rc.local:
|
||||||
|
|
||||||
|
if [ -x /etc/rc.d/rc.murmur ]; then
|
||||||
|
/etc/rc.d/rc.murmur start
|
||||||
|
fi
|
||||||
|
|
|
@ -3,24 +3,26 @@
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
# If there's no config file by that name, mv it over:
|
|
||||||
if [ ! -r $OLD ]; then
|
if [ ! -r $OLD ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||||
rm $NEW
|
rm $NEW
|
||||||
fi
|
fi
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Keep same perms on rc.murmur.new:
|
preserve_perms() {
|
||||||
if [ -e etc/rc.d/rc.murmur ]; then
|
NEW="$1"
|
||||||
cp -a etc/rc.d/rc.murmur etc/rc.d/rc.murmur.new.incoming
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
cat etc/rc.d/rc.murmur.new > etc/rc.d/rc.murmur.new.incoming
|
if [ -e $OLD ]; then
|
||||||
mv etc/rc.d/rc.murmur.new.incoming etc/rc.d/rc.murmur.new
|
cp -a $OLD ${NEW}.incoming
|
||||||
else
|
cat $NEW > ${NEW}.incoming
|
||||||
# Install executable otherwise - irrelevant unless user starts in rc.local
|
mv ${NEW}.incoming $NEW
|
||||||
chmod 0755 etc/rc.d/rc.murmur.new
|
fi
|
||||||
fi
|
config $NEW
|
||||||
|
}
|
||||||
|
|
||||||
config etc/rc.d/rc.murmur.new
|
config etc/logrotate.d/murmur.new
|
||||||
config etc/murmur.ini.new
|
config etc/murmur.ini.new
|
||||||
|
|
||||||
|
preserve_perms etc/rc.d/rc.murmur.new
|
||||||
|
|
|
@ -4,16 +4,14 @@
|
||||||
|
|
||||||
PRGNAM=murmur
|
PRGNAM=murmur
|
||||||
SRCNAM=mumble
|
SRCNAM=mumble
|
||||||
VERSION=${VERSION:-1.1.4}
|
VERSION=${VERSION:-1.2.3}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -23,6 +21,23 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
MURMUR_GROUP=${MURMUR_GROUP:-murmur}
|
||||||
|
MURMUR_USER=${MURMUR_USER:-murmur}
|
||||||
|
|
||||||
|
if ! getent group $MURMUR_GROUP; then
|
||||||
|
echo "Group $MURMUR_GROUP does not exist. Create it with:"
|
||||||
|
echo " # groupadd -g 261 $MURMUR_GROUP"
|
||||||
|
echo""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! getent passwd $MURMUR_USER; then
|
||||||
|
echo "User $MURMUR_USER does not exist. Create it with:"
|
||||||
|
echo " # useradd -g $MURMUR_GROUP -u 261 -d /var/lib/$PRGNAM -s /bin/false $MURMUR_USER"
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
@ -53,32 +68,63 @@ find . \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
qmake \
|
qmake \
|
||||||
|
-recursive \
|
||||||
main.pro \
|
main.pro \
|
||||||
CONFIG+=no-client
|
CONFIG+=no-update \
|
||||||
|
CONFIG+=no-client \
|
||||||
|
CONFIG+=no-ice \
|
||||||
|
CONFIG+=no-bonjour
|
||||||
|
|
||||||
make
|
make release
|
||||||
|
|
||||||
mkdir -p $PKG/usr/bin \
|
mkdir -p \
|
||||||
$PKG/etc \
|
$PKG/etc/{logrotate.d,rc.d} \
|
||||||
$PKG/var/lib/mumble-server \
|
$PKG/usr/bin \
|
||||||
$PKG/var/run/mumble-server \
|
$PKG/usr/man/man1 \
|
||||||
$PKG/var/log/mumble-server
|
$PKG/var/{lib,log,run}/$PRGNAM
|
||||||
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 644 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new
|
||||||
install -m 0644 ./man/murmurd.1 $PKG/usr/man/man1
|
install -m 755 release/murmurd $PKG/usr/bin
|
||||||
gzip -9 $PKG/usr/man/man1/*
|
install -m 644 man/murmurd.1 $PKG/usr/man/man1
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e "s,database=.*,database=/var/lib/$PRGNAM/$PRGNAM.sqlite," \
|
||||||
|
-e "s,logfile=.*,logfile=/var/log/$PRGNAM/$PRGNAM.log," \
|
||||||
|
-e "s,pidfile=.*,pidfile=/var/run/$PRGNAM/$PRGNAM.pid," \
|
||||||
|
-e "s,uname=.*,uname=$MURMUR_USER," \
|
||||||
|
scripts/murmur.ini.system > $PKG/etc/$PRGNAM.ini.new
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-i "s,PIDFILE=.*,PIDFILE=/var/run/$PRGNAM/$PRGNAM.pid," \
|
||||||
|
$PKG/etc/rc.d/rc.$PRGNAM.new
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e "s,@LOGFILE@,/var/log/$PRGNAM/$PRGNAM.log," \
|
||||||
|
-e "s,@USER@,$MURMUR_USER," \
|
||||||
|
-e "s,@GROUP@,$MURMUR_GROUP," \
|
||||||
|
$CWD/$PRGNAM.logrotate > $PKG/etc/logrotate.d/$PRGNAM.new
|
||||||
|
|
||||||
|
chown root:$MURMUR_GROUP $PKG/etc/$PRGNAM.ini.new
|
||||||
|
chmod o-rwx $PKG/etc/murmur.ini.new
|
||||||
|
|
||||||
|
chown $MURMUR_USER:$MURMUR_GROUP $PKG/var/{lib,log,run}/$PRGNAM
|
||||||
|
chmod o-rwx $PKG/var/lib/$PRGNAM
|
||||||
|
|
||||||
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
DOCS="CHANGES INSTALL LICENSE README README.Linux $CWD/$PRGNAM.SlackBuild"
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
install -m 0644 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
CHANGES INSTALL LICENSE README README.Linux \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install $PKG/etc/rc.d
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
cat $CWD/rc.murmur > $PKG/etc/rc.d/rc.murmur.new
|
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="murmur"
|
PRGNAM="murmur"
|
||||||
VERSION="1.1.4"
|
VERSION="1.2.3"
|
||||||
HOMEPAGE="http://mumble.sourceforge.net/"
|
HOMEPAGE="http://mumble.sourceforge.net/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/mumble/mumble-1.1.4.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/mumble/mumble-1.2.3.tar.gz"
|
||||||
MD5SUM="06fdd23043fd987b2eb6b56913fac181"
|
MD5SUM="55804e3dfe98b16eeb40abca6c254625"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="adev"
|
MAINTAINER="James Geboski"
|
||||||
EMAIL="adev@linuxmail.org"
|
EMAIL="jgeboski@gmail.com"
|
||||||
APPROVED="David Somero,pprkut"
|
APPROVED="dsomero"
|
||||||
|
|
15
network/murmur/murmur.logrotate
Normal file
15
network/murmur/murmur.logrotate
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
@LOGFILE@ {
|
||||||
|
weekly
|
||||||
|
rotate 7
|
||||||
|
compress
|
||||||
|
create 660 @USER@ @GROUP@
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
if [ -x /etc/rc.d/rc.murmur ]; then
|
||||||
|
/etc/rc.d/rc.murmur restart
|
||||||
|
fi
|
||||||
|
endscript
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PIDFILE="/var/run/mumble-server/mumble-server.pid"
|
PIDFILE=
|
||||||
|
|
||||||
murmur_start() {
|
murmur_start() {
|
||||||
echo -n "Starting Murmur Server: "
|
echo -n "Starting Murmur Server: "
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
# make exactly 11 lines for the formatting to be correct. It's also
|
||||||
# customary to leave one space after the ':'.
|
# customary to leave one space after the ':'.
|
||||||
|
|
||||||
|-----handy-ruler-------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
murmur: murmur (low latency voip server)
|
murmur: murmur (low latency voip server)
|
||||||
murmur:
|
murmur:
|
||||||
murmur: Murmur is the VoIP server component for Mumble. Murmur is
|
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: installed in a system-wide fashion, but can also be run by
|
||||||
murmur: individual users. Each murmur process supports multiple virtual
|
murmur: individual users. Each murmur process supports multiple virtual
|
||||||
murmur: servers, each with their own user base and channel list.
|
murmur: servers, each with their own user base and channel list.
|
||||||
murmur: Administration of murmur is done through D-Bus.
|
murmur: Administration of murmur is done through D-Bus.
|
||||||
murmur:
|
murmur:
|
||||||
murmur: Homepage: http://mumble.sourceforge.net/
|
murmur: Homepage: http://mumble.sourceforge.net/
|
||||||
murmur:
|
murmur:
|
||||||
murmur:
|
murmur:
|
||||||
|
|
Loading…
Reference in a new issue