forked from hasufell/hasufell-repository
voip/umurmur: initial import of version 0.2.16
This commit is contained in:
parent
13a0f9b54f
commit
95f03dc606
0
metadata/accounts/groups/umurmur.conf
Normal file
0
metadata/accounts/groups/umurmur.conf
Normal file
4
metadata/accounts/users/umurmur.conf
Normal file
4
metadata/accounts/users/umurmur.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
gecos = User for umurmur
|
||||||
|
home = /dev/null
|
||||||
|
shell = /sbin/nologin
|
||||||
|
primary_group = umurmur
|
@ -13,6 +13,7 @@ net-www
|
|||||||
sci-mathematics
|
sci-mathematics
|
||||||
sci-physics
|
sci-physics
|
||||||
sys-apps
|
sys-apps
|
||||||
|
voip
|
||||||
x11-apps
|
x11-apps
|
||||||
x11-themes
|
x11-themes
|
||||||
x11-wm
|
x11-wm
|
||||||
|
15
packages/voip/umurmur/files/systemd/umurmurd.service
Normal file
15
packages/voip/umurmur/files/systemd/umurmurd.service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=A minimalistic Mumble server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=murmur
|
||||||
|
Group=murmur
|
||||||
|
PIDFile=/run/umurmurd.pid
|
||||||
|
ExecStartPre=/usr/bin/umurmurd -t -c /etc/umurmur/umurmur.conf
|
||||||
|
ExecStart=/usr/bin/umurmurd -d -r -p /run/umurmurd.pid -c /etc/umurmur/umurmur.conf
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
58
packages/voip/umurmur/files/umurmur.conf
Normal file
58
packages/voip/umurmur/files/umurmur.conf
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# This configuration is based on the official example configuration. More information can be found
|
||||||
|
# at http://code.google.com/p/umurmur/wiki/Configuring02x
|
||||||
|
|
||||||
|
max_bandwidth = 48000;
|
||||||
|
welcometext = "Welcome to uMurmur!";
|
||||||
|
certificate = "/etc/umurmur/cert.crt";
|
||||||
|
private_key = "/etc/umurmur/key.key";
|
||||||
|
password = "";
|
||||||
|
max_users = 10;
|
||||||
|
|
||||||
|
# Specify port and/or address to bind to. Typically not needed.
|
||||||
|
# Default is '*' for address and 64738 for port.
|
||||||
|
# Can also be specified on the command line, which takes precedence if
|
||||||
|
# both are specified.
|
||||||
|
# bindport = 64738;
|
||||||
|
# bindaddr = "192.168.1.1";
|
||||||
|
|
||||||
|
# Specify this for privilege dropping. If username is specified but not
|
||||||
|
# the groupname, the user's login group is used.
|
||||||
|
username = "murmur";
|
||||||
|
groupname = "murmur";
|
||||||
|
|
||||||
|
# Root channel must always be defined first.
|
||||||
|
# If a channel has a parent, the parent must be defined before the child channel(s).
|
||||||
|
channels = ( {
|
||||||
|
name = "Root";
|
||||||
|
parent = "";
|
||||||
|
description = "The Root of all channels";
|
||||||
|
noenter = true;
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Lobby";
|
||||||
|
parent = "Root";
|
||||||
|
description = "Lobby channel";
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Red team";
|
||||||
|
parent = "Lobby";
|
||||||
|
description = "The Red team channel";
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Blue team";
|
||||||
|
parent = "Lobby";
|
||||||
|
description = "The Blue team channel";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
# Channel links configuration.
|
||||||
|
channel_links = ( {
|
||||||
|
source = "Lobby";
|
||||||
|
destination = "Red team";
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source = "Lobby";
|
||||||
|
destination = "Blue team";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
default_channel = "Lobby";
|
3
packages/voip/umurmur/files/umurmurd.confd
Normal file
3
packages/voip/umurmur/files/umurmurd.confd
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Additional flags to be passed to umurmurd
|
||||||
|
UMURMURD_OPTS="-r"
|
||||||
|
|
19
packages/voip/umurmur/files/umurmurd.initd
Normal file
19
packages/voip/umurmur/files/umurmurd.initd
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/sbin/runscript
|
||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-sound/umurmur/files/umurmurd.initd,v 1.1 2013/06/20 09:10:29 polynomial-c Exp $
|
||||||
|
|
||||||
|
description="umurmurd - A minimalistic mumble server"
|
||||||
|
pidfile="/run/umurmurd/umurmurd.pid"
|
||||||
|
command="/usr/bin/umurmurd"
|
||||||
|
command_args="-c /etc/umurmur/umurmur.conf -p ${pidfile} ${UMURMURD_OPTS}"
|
||||||
|
start_stop_daemon_args="-p ${pidfile} -w 100"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
use logger
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
checkpath -d -o murmur ${pidfile%/*}
|
||||||
|
}
|
58
packages/voip/umurmur/umurmur-0.2.16.exheres-0
Normal file
58
packages/voip/umurmur/umurmur-0.2.16.exheres-0
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
|
||||||
|
require systemd-service
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
DESCRIPTION="Minimalistic Murmur (Mumble server)"
|
||||||
|
HOMEPAGE="https://github.com/fatbob313/umurmur"
|
||||||
|
DOWNLOADS="https://github.com/fatbob313/${PN}/archive/${PV}.tar.gz -> ${PNV}.tar.gz"
|
||||||
|
|
||||||
|
LICENCES="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
|
||||||
|
MYOPTIONS="
|
||||||
|
( providers: libressl openssl ) [[
|
||||||
|
number-selected = exactly-one
|
||||||
|
]]
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
dev-libs/protobuf-c
|
||||||
|
dev-libs/libconfig
|
||||||
|
providers:libressl? ( dev-libs/libressl:= )
|
||||||
|
providers:openssl? ( dev-libs/openssl )
|
||||||
|
run:
|
||||||
|
group/umurmur
|
||||||
|
user/umurmur
|
||||||
|
"
|
||||||
|
|
||||||
|
|
||||||
|
DEFAULT_SRC_CONFIGURE_PARAMS=(
|
||||||
|
--with-ssl=openssl
|
||||||
|
)
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
insinto /etc/init.d
|
||||||
|
newins "${FILES}"/umurmurd.initd umurmurd
|
||||||
|
insinto /etc/conf.d
|
||||||
|
newins "${FILES}"/umurmurd.confd umurmurd
|
||||||
|
install_systemd_files
|
||||||
|
|
||||||
|
local confdir="/etc/umurmur"
|
||||||
|
insinto "${confdir}"
|
||||||
|
doins "${FILES}"/umurmur.conf
|
||||||
|
|
||||||
|
# Some permissions are adjusted as the config may contain a server
|
||||||
|
# password, and /etc/umurmur will typically contain the cert and the
|
||||||
|
# key used to sign it, which are read after priveleges are dropped.
|
||||||
|
chmod 0750 "${IMAGE%/}/${confdir}"
|
||||||
|
chown -R root:umurmur "${IMAGE%/}/${confdir}"
|
||||||
|
chmod 0640 "${IMAGE%/}/${confdir}"/umurmur.conf
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user