diff options
author | Kenton Groombridge <concord@gentoo.org> | 2022-06-29 18:57:53 -0400 |
---|---|---|
committer | Kenton Groombridge <concord@gentoo.org> | 2022-06-29 20:19:05 -0400 |
commit | 6a3f36ffcfc61182f7f9ac6e82a7e942e81e82df (patch) | |
tree | a3f8e03d898f1dbdaf38a04cacbb092f6ff56556 /net-voip | |
parent | net-voip/murmur: rename media-sound/murmur (diff) | |
download | gentoo-6a3f36ffcfc61182f7f9ac6e82a7e942e81e82df.tar.gz gentoo-6a3f36ffcfc61182f7f9ac6e82a7e942e81e82df.tar.bz2 gentoo-6a3f36ffcfc61182f7f9ac6e82a7e942e81e82df.zip |
net-voip/umurmur: rename media-sound/umurmur
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'net-voip')
-rw-r--r-- | net-voip/umurmur/Manifest | 3 | ||||
-rw-r--r-- | net-voip/umurmur/files/umurmur-0.2.20-openssl3.patch | 11 | ||||
-rw-r--r-- | net-voip/umurmur/files/umurmur.conf | 58 | ||||
-rw-r--r-- | net-voip/umurmur/files/umurmurd.confd | 3 | ||||
-rw-r--r-- | net-voip/umurmur/files/umurmurd.initd | 18 | ||||
-rw-r--r-- | net-voip/umurmur/files/umurmurd.service | 15 | ||||
-rw-r--r-- | net-voip/umurmur/metadata.xml | 26 | ||||
-rw-r--r-- | net-voip/umurmur/umurmur-0.2.17-r4.ebuild | 111 | ||||
-rw-r--r-- | net-voip/umurmur/umurmur-0.2.19.ebuild | 110 | ||||
-rw-r--r-- | net-voip/umurmur/umurmur-0.2.20.ebuild | 114 | ||||
-rw-r--r-- | net-voip/umurmur/umurmur-9999.ebuild | 110 |
11 files changed, 579 insertions, 0 deletions
diff --git a/net-voip/umurmur/Manifest b/net-voip/umurmur/Manifest new file mode 100644 index 000000000000..88c773110841 --- /dev/null +++ b/net-voip/umurmur/Manifest @@ -0,0 +1,3 @@ +DIST umurmur-0.2.17.tar.gz 93786 BLAKE2B 92fc7d63dc0eed228c3fbcb0d18861cd49967f44378d980e856f8fb24fe7abc3429a4ca8e811eda6096727b76780724c909c46c04975b5edef70d848b7511618 SHA512 a496a51fd7815ad117f5aee17bb78cbd319c584ad60ab8aebbfd8ddf7b1760f443f2337bc74be1e0d5af17d3c3df2ae6c9060eca576cf1e6ed4c6cb0825e9c15 +DIST umurmur-0.2.19.tar.gz 93117 BLAKE2B 54d6fe6e67f51f24d6c9f0125fa330292004cd5df71791c40ece6aa7c2938bce98ca981e873a1e2b43598f99ea57c687963fd7cd8708400f5f2ce00ab11386eb SHA512 4a10c41d8396d6bd2b195578ff6a29e69a105f8830daf85141217f768cc2c4ea6204a2b3b65599d07d76c841090750db4ad6264c4e9d7e5afa7f1b4cf27bc768 +DIST umurmur-0.2.20.tar.gz 93152 BLAKE2B 7850d0f3a5c35db1f5ed2b2eea7725d288901eb7e49b9bf2f715963a102c6c6345ed90fd066d80a2666137918c73a58dd2c954321b69d0ce59f686e1c6d01e5a SHA512 0913f5ba84b30fec4ae6a1521c442ff8c48121bbbca5de9082e04e41b36434fadb5f81cb2ea0bd0a8c63f6e541d15eeda3637667d8cc7113d38935ded320cef4 diff --git a/net-voip/umurmur/files/umurmur-0.2.20-openssl3.patch b/net-voip/umurmur/files/umurmur-0.2.20-openssl3.patch new file mode 100644 index 000000000000..ad7cc1177874 --- /dev/null +++ b/net-voip/umurmur/files/umurmur-0.2.20-openssl3.patch @@ -0,0 +1,11 @@ +--- umurmur-0.2.20/src/ssli_openssl.c ++++ umurmur-0.2.20/src/ssli_openssl.c +@@ -142,8 +142,6 @@ + + Log_info("Generating new server certificate."); + +- CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); +- + x509 = X509_new(); + if (!x509) + goto err_out; diff --git a/net-voip/umurmur/files/umurmur.conf b/net-voip/umurmur/files/umurmur.conf new file mode 100644 index 000000000000..cebcca28a583 --- /dev/null +++ b/net-voip/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/net-voip/umurmur/files/umurmurd.confd b/net-voip/umurmur/files/umurmurd.confd new file mode 100644 index 000000000000..d83461ce725d --- /dev/null +++ b/net-voip/umurmur/files/umurmurd.confd @@ -0,0 +1,3 @@ +# Additional flags to be passed to umurmurd +UMURMURD_OPTS="-r" + diff --git a/net-voip/umurmur/files/umurmurd.initd b/net-voip/umurmur/files/umurmurd.initd new file mode 100644 index 000000000000..d0dd5517d626 --- /dev/null +++ b/net-voip/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/net-voip/umurmur/files/umurmurd.service b/net-voip/umurmur/files/umurmurd.service new file mode 100644 index 000000000000..12ad2aec6459 --- /dev/null +++ b/net-voip/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 diff --git a/net-voip/umurmur/metadata.xml b/net-voip/umurmur/metadata.xml new file mode 100644 index 000000000000..f3ecd2642bfb --- /dev/null +++ b/net-voip/umurmur/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + 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. + </longdescription> + <use> + <flag name="mbedtls">Use <pkg>net-libs/mbedtls</pkg> as TLS provider</flag> + <flag name="shm">Enable shared memory support</flag> + </use> + <upstream> + <maintainer status="active"> + <email>fatbob.snack@gmail.com</email> + <name>Martin Johansson</name> + </maintainer> + <bugs-to>https://code.google.com/p/umurmur/issues/list</bugs-to> + <changelog> + https://code.google.com/p/umurmur/wiki/Changelog</changelog> + <doc lang="en">https://code.google.com/p/umurmur/w/list</doc> + <remote-id type="google-code">umurmur</remote-id> + <remote-id type="github">umurmur/umurmur</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-voip/umurmur/umurmur-0.2.17-r4.ebuild b/net-voip/umurmur/umurmur-0.2.17-r4.ebuild new file mode 100644 index 000000000000..c61a58654320 --- /dev/null +++ b/net-voip/umurmur/umurmur-0.2.17-r4.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd readme.gentoo-r1 + +DESCRIPTION="Minimalistic Murmur (Mumble server)" +HOMEPAGE="https://github.com/umurmur/umurmur" +if [[ "${PV}" == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/umurmur/umurmur.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~arm x86" +fi +LICENSE="BSD" +SLOT="0" +IUSE="gnutls mbedtls shm" + +# ssl-provider precendence: gnutls, mbedtls +# and openssl if none specified +DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2:= + dev-libs/libconfig:= + gnutls? ( + dev-libs/nettle:= + >=net-libs/gnutls-3.0.0:= + ) + !gnutls? ( + mbedtls? ( net-libs/mbedtls:= ) + !mbedtls? ( dev-libs/openssl:0= ) + ) +" + +RDEPEND="${DEPEND} + acct-group/murmur + acct-user/murmur +" + +DOC_CONTENTS=" + A configuration file has been installed at /etc/umurmur/umurmur.conf - you + may want to review it. See also\n + https://github.com/umurmur/umurmur/wiki/Configuration " + +S="${WORKDIR}/${P/_}" + +get_ssl_impl() { + local ssl_provider=() + + use gnutls && ssl_provider+=( gnutls ) + use mbedtls && ssl_provider+=( mbedtls ) + + if ! use gnutls && ! use mbedtls; then + ssl_provider+=( openssl ) + fi + echo ${ssl_provider[@]} +} + +pkg_pretend() { + local ssl_provider=( $(get_ssl_impl) ) + + if [[ ${#ssl_provider[@]} -gt 1 ]] ; then + ewarn "More than one ssl provider selected (${ssl_provider[@]})" + ewarn "defaulting to ${ssl_provider[0]}." + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local ssl_provider=( $(get_ssl_impl) ) + + local myeconfargs=( + --with-ssl="${ssl_provider[@]}" + $(use_enable shm shmapi) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + local confdir + + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/umurmurd.initd umurmurd + newconfd "${FILESDIR}"/umurmurd.confd umurmurd + systemd_dounit "${FILESDIR}"/umurmurd.service + + dodoc AUTHORS ChangeLog + newdoc README.md README + + confdir="/etc/umurmur" + insinto "${confdir}" + doins "${FILESDIR}"/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. + fperms 0750 "${confdir}" + fowners -R root:murmur "${confdir}" + fperms 0640 "${confdir}"/umurmur.conf + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/net-voip/umurmur/umurmur-0.2.19.ebuild b/net-voip/umurmur/umurmur-0.2.19.ebuild new file mode 100644 index 000000000000..68da6bed82ba --- /dev/null +++ b/net-voip/umurmur/umurmur-0.2.19.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd readme.gentoo-r1 + +DESCRIPTION="Minimalistic Murmur (Mumble server)" +HOMEPAGE="https://github.com/umurmur/umurmur" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/umurmur/umurmur.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi +LICENSE="BSD" +SLOT="0" +IUSE="gnutls mbedtls shm" + +# ssl-provider precendence: gnutls, mbedtls and openssl if none specified +DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2:= + dev-libs/libconfig:= + gnutls? ( + dev-libs/nettle:= + >=net-libs/gnutls-3.0.0:= + ) + !gnutls? ( + mbedtls? ( net-libs/mbedtls:= ) + !mbedtls? ( dev-libs/openssl:0= ) + ) +" + +RDEPEND="${DEPEND} + acct-group/murmur + acct-user/murmur +" + +DOC_CONTENTS=" + A configuration file has been installed at /etc/umurmur/umurmur.conf - you + may want to review it. See also\n + https://github.com/umurmur/umurmur/wiki/Configuration " + +S="${WORKDIR}/${P/_}" + +get_ssl_impl() { + local ssl_provider=() + + use gnutls && ssl_provider+=( gnutls ) + use mbedtls && ssl_provider+=( mbedtls ) + + if ! use gnutls && ! use mbedtls ; then + ssl_provider+=( openssl ) + fi + echo ${ssl_provider[@]} +} + +pkg_pretend() { + local ssl_provider=( $(get_ssl_impl) ) + + if [[ ${#ssl_provider[@]} -gt 1 ]] ; then + ewarn "More than one ssl provider selected (${ssl_provider[@]})" + ewarn "defaulting to ${ssl_provider[0]}." + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local ssl_provider=( $(get_ssl_impl) ) + + local myeconfargs=( + --with-ssl="${ssl_provider[0]}" + $(use_enable shm shmapi) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + local confdir + + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/umurmurd.initd umurmurd + newconfd "${FILESDIR}"/umurmurd.confd umurmurd + systemd_dounit "${FILESDIR}"/umurmurd.service + + dodoc AUTHORS ChangeLog + newdoc README.md README + + confdir="/etc/umurmur" + insinto "${confdir}" + doins "${FILESDIR}"/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. + fperms 0750 "${confdir}" + fowners -R root:murmur "${confdir}" + fperms 0640 "${confdir}"/umurmur.conf + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/net-voip/umurmur/umurmur-0.2.20.ebuild b/net-voip/umurmur/umurmur-0.2.20.ebuild new file mode 100644 index 000000000000..677e6fa4f97a --- /dev/null +++ b/net-voip/umurmur/umurmur-0.2.20.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd readme.gentoo-r1 + +DESCRIPTION="Minimalistic Murmur (Mumble server)" +HOMEPAGE="https://github.com/umurmur/umurmur" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/umurmur/umurmur.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi +LICENSE="BSD" +SLOT="0" +IUSE="gnutls mbedtls shm" + +# ssl-provider precendence: gnutls, mbedtls and openssl if none specified +DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2:= + dev-libs/libconfig:= + gnutls? ( + dev-libs/nettle:= + >=net-libs/gnutls-3.0.0:= + ) + !gnutls? ( + mbedtls? ( net-libs/mbedtls:= ) + !mbedtls? ( dev-libs/openssl:0= ) + ) +" + +RDEPEND="${DEPEND} + acct-group/murmur + acct-user/murmur +" + +DOC_CONTENTS=" + A configuration file has been installed at /etc/umurmur/umurmur.conf - you + may want to review it. See also\n + https://github.com/umurmur/umurmur/wiki/Configuration " + +PATCHES=( + "${FILESDIR}/${PN}-0.2.20-openssl3.patch" #806154 +) + +S="${WORKDIR}/${P/_}" + +get_ssl_impl() { + local ssl_provider=() + + use gnutls && ssl_provider+=( gnutls ) + use mbedtls && ssl_provider+=( mbedtls ) + + if ! use gnutls && ! use mbedtls ; then + ssl_provider+=( openssl ) + fi + echo ${ssl_provider[@]} +} + +pkg_pretend() { + local ssl_provider=( $(get_ssl_impl) ) + + if [[ ${#ssl_provider[@]} -gt 1 ]] ; then + ewarn "More than one ssl provider selected (${ssl_provider[@]})" + ewarn "defaulting to ${ssl_provider[0]}." + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local ssl_provider=( $(get_ssl_impl) ) + + local myeconfargs=( + --with-ssl="${ssl_provider[0]}" + $(use_enable shm shmapi) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + local confdir + + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/umurmurd.initd umurmurd + newconfd "${FILESDIR}"/umurmurd.confd umurmurd + systemd_dounit "${FILESDIR}"/umurmurd.service + + dodoc AUTHORS ChangeLog + newdoc README.md README + + confdir="/etc/umurmur" + insinto "${confdir}" + doins "${FILESDIR}"/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. + fperms 0750 "${confdir}" + fowners -R root:murmur "${confdir}" + fperms 0640 "${confdir}"/umurmur.conf + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/net-voip/umurmur/umurmur-9999.ebuild b/net-voip/umurmur/umurmur-9999.ebuild new file mode 100644 index 000000000000..68da6bed82ba --- /dev/null +++ b/net-voip/umurmur/umurmur-9999.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd readme.gentoo-r1 + +DESCRIPTION="Minimalistic Murmur (Mumble server)" +HOMEPAGE="https://github.com/umurmur/umurmur" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/umurmur/umurmur.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi +LICENSE="BSD" +SLOT="0" +IUSE="gnutls mbedtls shm" + +# ssl-provider precendence: gnutls, mbedtls and openssl if none specified +DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2:= + dev-libs/libconfig:= + gnutls? ( + dev-libs/nettle:= + >=net-libs/gnutls-3.0.0:= + ) + !gnutls? ( + mbedtls? ( net-libs/mbedtls:= ) + !mbedtls? ( dev-libs/openssl:0= ) + ) +" + +RDEPEND="${DEPEND} + acct-group/murmur + acct-user/murmur +" + +DOC_CONTENTS=" + A configuration file has been installed at /etc/umurmur/umurmur.conf - you + may want to review it. See also\n + https://github.com/umurmur/umurmur/wiki/Configuration " + +S="${WORKDIR}/${P/_}" + +get_ssl_impl() { + local ssl_provider=() + + use gnutls && ssl_provider+=( gnutls ) + use mbedtls && ssl_provider+=( mbedtls ) + + if ! use gnutls && ! use mbedtls ; then + ssl_provider+=( openssl ) + fi + echo ${ssl_provider[@]} +} + +pkg_pretend() { + local ssl_provider=( $(get_ssl_impl) ) + + if [[ ${#ssl_provider[@]} -gt 1 ]] ; then + ewarn "More than one ssl provider selected (${ssl_provider[@]})" + ewarn "defaulting to ${ssl_provider[0]}." + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local ssl_provider=( $(get_ssl_impl) ) + + local myeconfargs=( + --with-ssl="${ssl_provider[0]}" + $(use_enable shm shmapi) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + local confdir + + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/umurmurd.initd umurmurd + newconfd "${FILESDIR}"/umurmurd.confd umurmurd + systemd_dounit "${FILESDIR}"/umurmurd.service + + dodoc AUTHORS ChangeLog + newdoc README.md README + + confdir="/etc/umurmur" + insinto "${confdir}" + doins "${FILESDIR}"/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. + fperms 0750 "${confdir}" + fowners -R root:murmur "${confdir}" + fperms 0640 "${confdir}"/umurmur.conf + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} |