Merge branch 'master' of github.com:plugapps/plugapps

This commit is contained in:
Mike Staszel 2011-02-04 11:20:08 -06:00
commit 3d6c9250e6
4 changed files with 113 additions and 0 deletions

36
aur/umurmur/PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Contributor : xav <xav at ethertricks dot net>
plugrel=1
pkgname=umurmur
pkgver=0.2.5
pkgrel=1
pkgdesc="A minimalistic Mumble server"
arch=('i686' 'x86_64')
url="http://code.google.com/p/umurmur/"
license=('GPL')
depends=('openssl' 'libconfig')
source=(http://umurmur.googlecode.com/files/${pkgname}-${pkgver}.tar.gz \
umurmur.rc.d \
umurmur.conf.d \
umurmur.1)
sha1sums=('43e53eabeebd05261ea71a5ead4fa567b53131a1'
'76376e94182d607a7b803d73038b5f7bda6745dd'
'21749181b742154a3be984caa5e29ab62410e9cf'
'07e1f5082faced4610ef97af2aacd52f583b9a5f')
build() {
cd ${srcdir}/${pkgname}-${pkgver}/src
sed -i 's/^#\( EXTRA_LDFLAGS:=-lcrypto -lssl\)/\1/' Makefile
unset LDFLAGS
make || return 1
install -Dm755 umurmurd ${pkgdir}/usr/sbin/umurmurd
install -Dm644 ../umurmur.conf.example ${pkgdir}/etc/umurmur/umurmur.conf
install -Dm755 ${startdir}/umurmur.rc.d ${pkgdir}/etc/rc.d/umurmur
install -Dm644 ${startdir}/umurmur.conf.d ${pkgdir}/etc/conf.d/umurmur
install -Dm644 ${startdir}/umurmur.1 ${pkgdir}/usr/share/man/man1/umurmur.1
}

32
aur/umurmur/umurmur.1 Normal file
View file

@ -0,0 +1,32 @@
.TH umurmur 1 "2010 July 17"
.SH NAME
uMurmur \- minimalistic Mumble VoIP server.
.SH SYNOPSIS
.B umurmurd
.RI [ options ]
.SH DESCRIPTION
uMurmur is a minimalistic Mumble server primarily targeted to run on routers with an open OS like OpenWRT. The server part of Mumble is called Murmur, hence the name uMurmur.
.SH OPTIONS
.TP
.B \-h, \-\-help
Show a summary of the options.
.TP
.BI \-c \ "configfile"
Specify which configuration file to use.
.TP
.BI \-p \ "pidfile"
Write uMurmur PID to this file.
.TP
.BI \-d
Run in the foreground (do not fork).
.br
This is very usefull for debugging.
.TP
.BI \-r
Run with realtime priority.
.SH SEE ALSO
.BR mumble (1),
.br
.SH AUTHOR
Written by Martin Johansson <martin@fatbob.nu>.
Mumble and Murmurd was written by Thorvald Natvig <slicer@users.sourceforge.net>.

View file

@ -0,0 +1,5 @@
#
# Arguments to be passed to the uMurmur daemon
#
UMURMUR_ARGS="-c /etc/umurmur/umurmur.conf -p /var/run/umurmur.pid -r"

40
aur/umurmur/umurmur.rc.d Normal file
View file

@ -0,0 +1,40 @@
#!/bin/bash
CONF=/etc/conf.d/umurmur
. /etc/rc.conf
. /etc/rc.d/functions
[ -f $CONF ] && . $CONF
PID=$(pidof -o %PPID /usr/sbin/umurmurd)
case "$1" in
start)
stat_busy "Starting umurmur"
[ -z "$PID" ] && /usr/sbin/umurmurd $UMURMUR_ARGS
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon umurmur
stat_done
fi
;;
stop)
stat_busy "Stopping umurmur"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon umurmur
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0