From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0C541139694 for ; Wed, 1 Mar 2017 15:34:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 588E221C039; Wed, 1 Mar 2017 15:34:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 25E8F21C039 for ; Wed, 1 Mar 2017 15:34:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E85834169C for ; Wed, 1 Mar 2017 15:34:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B62C458C6 for ; Wed, 1 Mar 2017 15:34:09 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1488382444.40d5d183b9673360b51eccff3fd365f760d7169b.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/umurmur/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/umurmur/Manifest media-sound/umurmur/umurmur-0.2.17_rc1.ebuild X-VCS-Directories: media-sound/umurmur/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 40d5d183b9673360b51eccff3fd365f760d7169b X-VCS-Branch: master Date: Wed, 1 Mar 2017 15:34:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9e3c706f-5fc4-4de1-8420-5f3776daad7d X-Archives-Hash: 73e3807d2b7c41e2ac53a4666f5925ee commit: 40d5d183b9673360b51eccff3fd365f760d7169b Author: Lars Wendler gentoo org> AuthorDate: Wed Mar 1 15:34:04 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Wed Mar 1 15:34:04 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40d5d183 media-sound/umurmur: Bump to version 0.2.17_rc1 Package-Manager: Portage-2.3.3, Repoman-2.3.1 media-sound/umurmur/Manifest | 1 + media-sound/umurmur/umurmur-0.2.17_rc1.ebuild | 101 ++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/media-sound/umurmur/Manifest b/media-sound/umurmur/Manifest index 171310f726c..580292dfa42 100644 --- a/media-sound/umurmur/Manifest +++ b/media-sound/umurmur/Manifest @@ -1 +1,2 @@ DIST umurmur-0.2.16a.tar.gz 91187 SHA256 d64df8f77ceaa4951d7f2adbb2dcc173841d1e387ef4cd2082c42150a84349a5 SHA512 432a85e93cb7d53c505caf8b97c1bb7c173c8f625127510de61cc0a1e3abaea9abcf96ab1c0a8c5039ba82af5d29710e4973f70c1438bfd44ba00fa0c3f64c9e WHIRLPOOL 98a01a25dad0427bda0379711f9702ee8ed70bbeb50daa439a9e8c40bfec174f79bfe6ed02e07ff20a4f0f8614de83cbd4806ccbacc0066c769d9e43678b508e +DIST umurmur-0.2.17_rc1.tar.gz 93802 SHA256 fbc9b228cd374befa41045af2efe9d515a368ef3067f87a107475a267cfc8e3f SHA512 58d0e483aacbbb4d576aecc9d3584200b995f5da81ff8ba2608de9766f39d4ff7407a476c2c21aeb8885a477dff9c1ff31e829cde47c6b18636986eefbaeeef4 WHIRLPOOL 5618f9db363dd7d86351516342aca7a7728769d321df425c5543cc67117f8f12a2416e3b89f512d3fdad8ea316667b8c9a78895d76c4ebe1ca4bddc0a4d58516 diff --git a/media-sound/umurmur/umurmur-0.2.17_rc1.ebuild b/media-sound/umurmur/umurmur-0.2.17_rc1.ebuild new file mode 100644 index 00000000000..d6bf0d7775e --- /dev/null +++ b/media-sound/umurmur/umurmur-0.2.17_rc1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools systemd eutils readme.gentoo-r1 user + +DESCRIPTION="Minimalistic Murmur (Mumble server)" +HOMEPAGE="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/umurmur.conf - you + may want to review it. See also\n + https://github.com/umurmur/umurmur/wiki/Configuration " + +S="${WORKDIR}/${P/_}" + +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() { + default + 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 +}