diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/umurmur/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/umurmur/files')
-rw-r--r-- | media-sound/umurmur/files/umurmur.conf | 58 | ||||
-rw-r--r-- | media-sound/umurmur/files/umurmurd.confd | 3 | ||||
-rw-r--r-- | media-sound/umurmur/files/umurmurd.initd | 18 | ||||
-rw-r--r-- | media-sound/umurmur/files/umurmurd.service | 15 |
4 files changed, 94 insertions, 0 deletions
diff --git a/media-sound/umurmur/files/umurmur.conf b/media-sound/umurmur/files/umurmur.conf new file mode 100644 index 000000000000..cebcca28a583 --- /dev/null +++ b/media-sound/umurmur/files/umurmur.conf @@ -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"; diff --git a/media-sound/umurmur/files/umurmurd.confd b/media-sound/umurmur/files/umurmurd.confd new file mode 100644 index 000000000000..d83461ce725d --- /dev/null +++ b/media-sound/umurmur/files/umurmurd.confd @@ -0,0 +1,3 @@ +# Additional flags to be passed to umurmurd +UMURMURD_OPTS="-r" + diff --git a/media-sound/umurmur/files/umurmurd.initd b/media-sound/umurmur/files/umurmurd.initd new file mode 100644 index 000000000000..d0dd5517d626 --- /dev/null +++ b/media-sound/umurmur/files/umurmurd.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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%/*} +} diff --git a/media-sound/umurmur/files/umurmurd.service b/media-sound/umurmur/files/umurmurd.service new file mode 100644 index 000000000000..12ad2aec6459 --- /dev/null +++ b/media-sound/umurmur/files/umurmurd.service @@ -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 |