public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/umurmur/
Date: Thu,  1 Oct 2015 07:53:20 +0000 (UTC)	[thread overview]
Message-ID: <1443685996.c5fb8ed958c5aec23184281f39cb7159b4a576f8.polynomial-c@gentoo> (raw)

commit:     c5fb8ed958c5aec23184281f39cb7159b4a576f8
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  1 07:49:06 2015 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Oct  1 07:53:16 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5fb8ed9

media-sound/umurmur: Revbump to add libressl support (bug #561922)

Package-Manager: portage-2.2.22
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 media-sound/umurmur/umurmur-0.2.16a-r1.ebuild | 99 +++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)

diff --git a/media-sound/umurmur/umurmur-0.2.16a-r1.ebuild b/media-sound/umurmur/umurmur-0.2.16a-r1.ebuild
new file mode 100644
index 0000000..958ee0d
--- /dev/null
+++ b/media-sound/umurmur/umurmur-0.2.16a-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools systemd eutils readme.gentoo user
+
+DESCRIPTION="Minimalistic Murmur (Mumble server)"
+HOMEPAGE="https://code.google.com/p/umurmur/ https://github.com/umurmur/umurmur"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gnutls libressl polarssl shm"
+
+# ssl-provider precendence: polarssl, gnutls, libressl
+# and openssl if none specified
+DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2
+	dev-libs/libconfig
+	polarssl? ( >=net-libs/polarssl-1.0.0 )
+	gnutls? ( !polarssl? ( >=net-libs/gnutls-3.0.0 ) )
+	libressl? ( !polarssl? ( !gnutls? ( dev-libs/libressl ) ) )
+	!gnutls? ( !polarssl? ( !libressl? ( dev-libs/openssl:0 ) ) )"
+
+RDEPEND="${DEPEND}"
+
+DOC_CONTENTS="
+	A configuration file has been installed at /etc/umurmur.conf - you may
+	want to review it. See also\n
+	https://github.com/umurmur/umurmur/wiki/Configuration "
+
+pkg_pretend() {
+	local ssl_provider=(  )
+	use polarssl && ssl_provider+=( polarssl )
+	use gnutls && ssl_provider+=( gnutls )
+	use libressl && ssl_provider+=( libressl )
+
+	if [[ ${#ssl_provider[@]} -gt 1 ]] ; then
+		ewarn "More than one ssl provider selected (${ssl_provider[@]})"
+		ewarn "defaulting to ${ssl_provider[0]}."
+	fi
+}
+
+pkg_setup() {
+	enewgroup murmur
+	enewuser murmur "" "" "" murmur
+}
+
+src_prepare() {
+	eautoreconf
+}
+
+src_configure() {
+	local myconf
+
+	econf \
+		--with-ssl=$(usev polarssl || usev gnutls || echo openssl) \
+		$(use_enable shm shmapi)
+}
+
+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
+
+	if use polarssl ; then
+		elog
+		elog "Because you have enabled PolarSSL support, umurmurd will use a"
+		elog "predefined test-certificate and key if none are configured, which"
+		elog "is insecure. See https://code.google.com/p/umurmur/wiki/Installing02x#Installing_uMurmur_with_PolarSSL_support"
+		elog "for more information on how to create your certificate and key"
+	fi
+}


             reply	other threads:[~2015-10-01  7:53 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  7:53 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-08-06 14:36 [gentoo-commits] repo/gentoo:master commit in: media-sound/umurmur/ Lars Wendler
2017-02-28 21:07 Michael Weber
2017-03-01 15:34 Lars Wendler
2017-05-19  8:26 Lars Wendler
2017-06-09 16:47 Lars Wendler
2018-03-16 22:50 Lars Wendler
2019-01-19 11:57 Jonas Stein
2019-04-29 16:06 Lars Wendler
2019-04-29 16:06 Lars Wendler
2019-04-30 16:08 Lars Wendler
2019-06-26 22:08 Lars Wendler
2019-08-13 16:40 Lars Wendler
2019-08-13 16:40 Lars Wendler
2019-10-17 10:32 Agostino Sarubbo
2019-10-17 11:43 Agostino Sarubbo
2019-10-17 12:14 Lars Wendler
2020-01-10 11:34 Lars Wendler
2020-12-29 14:19 Lars Wendler
2021-01-02  0:35 Sam James
2021-01-02  1:43 Sam James
2021-01-05 15:20 Lars Wendler
2021-01-05 15:20 Lars Wendler
2021-01-29 10:51 Lars Wendler
2021-01-29 10:51 Lars Wendler
2021-03-26  9:31 Lars Wendler
2021-03-26  9:31 Lars Wendler
2021-03-26  9:31 Lars Wendler
2021-05-01 18:07 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443685996.c5fb8ed958c5aec23184281f39cb7159b4a576f8.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox