From a7f5832c140e059bcd5bf00aede2ee9fa95f65be Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 4 Feb 2011 00:29:09 -0500 Subject: [PATCH] Added aur/umurmur --- aur/umurmur/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++ aur/umurmur/umurmur.1 | 32 ++++++++++++++++++++++++++++++ aur/umurmur/umurmur.conf.d | 5 +++++ aur/umurmur/umurmur.rc.d | 40 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 aur/umurmur/PKGBUILD create mode 100644 aur/umurmur/umurmur.1 create mode 100644 aur/umurmur/umurmur.conf.d create mode 100644 aur/umurmur/umurmur.rc.d diff --git a/aur/umurmur/PKGBUILD b/aur/umurmur/PKGBUILD new file mode 100644 index 000000000..db944ec22 --- /dev/null +++ b/aur/umurmur/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor : xav + +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 + +} + diff --git a/aur/umurmur/umurmur.1 b/aur/umurmur/umurmur.1 new file mode 100644 index 000000000..e124d7cd4 --- /dev/null +++ b/aur/umurmur/umurmur.1 @@ -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 . +Mumble and Murmurd was written by Thorvald Natvig . diff --git a/aur/umurmur/umurmur.conf.d b/aur/umurmur/umurmur.conf.d new file mode 100644 index 000000000..d22dfc8c8 --- /dev/null +++ b/aur/umurmur/umurmur.conf.d @@ -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" diff --git a/aur/umurmur/umurmur.rc.d b/aur/umurmur/umurmur.rc.d new file mode 100644 index 000000000..d8345e5a5 --- /dev/null +++ b/aur/umurmur/umurmur.rc.d @@ -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