mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
aur/umurmur to 0.2.7-1
This commit is contained in:
parent
75a4d4c0fb
commit
1ffc1eb35f
4 changed files with 110 additions and 0 deletions
33
aur/umurmur/PKGBUILD
Normal file
33
aur/umurmur/PKGBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Contributor : xav <xav at ethertricks dot net>
|
||||
|
||||
plugrel=1
|
||||
|
||||
pkgname=umurmur
|
||||
pkgver=0.2.7
|
||||
pkgrel=1
|
||||
pkgdesc="A minimalistic Mumble server"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://code.google.com/p/umurmur/"
|
||||
license=('GPL')
|
||||
depends=('openssl' 'libconfig' 'protobuf-c')
|
||||
source=(http://umurmur.googlecode.com/files/${pkgname}-${pkgver}.tar.gz \
|
||||
umurmur.rc.d \
|
||||
umurmur.conf.d \
|
||||
umurmur.1)
|
||||
sha1sums=('f602f5257a52ca9a6812abc5ee0baa47d5ca4c37'
|
||||
'c4f91846a6ee16437452c024652d2f5eca0c0c2a'
|
||||
'21749181b742154a3be984caa5e29ab62410e9cf'
|
||||
'07e1f5082faced4610ef97af2aacd52f583b9a5f')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
./configure --prefix=/usr --mandir=/usr/share/man --with-ssl=openssl
|
||||
make || return 1
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
|
||||
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
|
||||
|
||||
}
|
||||
|
32
aur/umurmur/umurmur.1
Normal file
32
aur/umurmur/umurmur.1
Normal 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>.
|
5
aur/umurmur/umurmur.conf.d
Normal file
5
aur/umurmur/umurmur.conf.d
Normal 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
40
aur/umurmur/umurmur.rc.d
Normal 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/bin/umurmurd)
|
||||
case "$1" in
|
||||
start)
|
||||
stat_busy "Starting umurmur"
|
||||
[ -z "$PID" ] && /usr/bin/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
|
Loading…
Reference in a new issue