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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A6C0158094 for ; Sat, 9 Jul 2022 08:16:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E35EE0BCB; Sat, 9 Jul 2022 08:16:05 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2867DE0BCB for ; Sat, 9 Jul 2022 08:16:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B9AA340D77 for ; Sat, 9 Jul 2022 08:16:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF91B536 for ; Sat, 9 Jul 2022 08:16:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1657354553.7cd128f40a6194e356ff777700171923b3f14827.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/synapse/files/, net-im/synapse/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/synapse/Manifest net-im/synapse/files/synapse.initd net-im/synapse/metadata.xml net-im/synapse/synapse-1.62.0.ebuild X-VCS-Directories: net-im/synapse/ net-im/synapse/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7cd128f40a6194e356ff777700171923b3f14827 X-VCS-Branch: master Date: Sat, 9 Jul 2022 08:16:01 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c84b2940-1630-439f-9015-1aa21645d132 X-Archives-Hash: 9ccd9392563090f555289e10c2270bc4 commit: 7cd128f40a6194e356ff777700171923b3f14827 Author: Petr Vaněk atlas cz> AuthorDate: Thu Jul 7 13:23:21 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jul 9 08:15:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cd128f4 net-im/synapse: new package, add 1.62.0 Closes: https://bugs.gentoo.org/608510 Signed-off-by: Petr Vaněk atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/25776 Signed-off-by: Sam James gentoo.org> net-im/synapse/Manifest | 1 + net-im/synapse/files/synapse.initd | 10 ++++ net-im/synapse/metadata.xml | 15 ++++++ net-im/synapse/synapse-1.62.0.ebuild | 101 +++++++++++++++++++++++++++++++++++ 4 files changed, 127 insertions(+) diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest new file mode 100644 index 000000000000..811838f92ce3 --- /dev/null +++ b/net-im/synapse/Manifest @@ -0,0 +1 @@ +DIST synapse-1.62.0.gh.tar.gz 7841903 BLAKE2B f3002798a3fccd1b7fc4a1a302d12dd0940727ce8e89bcab0fdda04d498dbc9e469d21e7815db75b3593fcdfa01557e6828a39e874e946ce1b43d51cfe459ee6 SHA512 2bf9264f08fab29e8707317b69c52a4234bb25443c342ba43a27e06c506bcca1a9bdb211a99802abbca551e4f4288f68775d4629493b39d58dfcc8d8d1ca8ab8 diff --git a/net-im/synapse/files/synapse.initd b/net-im/synapse/files/synapse.initd new file mode 100644 index 000000000000..e8e494c722c0 --- /dev/null +++ b/net-im/synapse/files/synapse.initd @@ -0,0 +1,10 @@ +#!/sbin/openrc-run +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="Matrix synapse daemon" +description="" +command=/usr/bin/synapse_homeserver +command_args="--daemonize --config-path /etc/synapse/homeserver.yaml" +pidfile=/var/lib/synapse/homeserver.pid +start_stop_daemon_args="--user synapse --group synapse" diff --git a/net-im/synapse/metadata.xml b/net-im/synapse/metadata.xml new file mode 100644 index 000000000000..8ce7426a7984 --- /dev/null +++ b/net-im/synapse/metadata.xml @@ -0,0 +1,15 @@ + + + + + arkamar@atlas.cz + Petr Vaněk + + + proxy-maint@gentoo.org + Proxy Maintainers + + + matrix-org/synapse + + diff --git a/net-im/synapse/synapse-1.62.0.ebuild b/net-im/synapse/synapse-1.62.0.ebuild new file mode 100644 index 000000000000..d3b5db281ed0 --- /dev/null +++ b/net-im/synapse/synapse-1.62.0.ebuild @@ -0,0 +1,101 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=poetry + +inherit distutils-r1 optfeature + +DESCRIPTION="Reference implementation of Matrix homeserver" +HOMEPAGE=" + https://matrix.org/ + https://github.com/matrix-org/synapse/ +" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/matrix-org/${PN}.git" +else + MY_PV="${PV/_rc/rc}" + SRC_URI="https://github.com/matrix-org/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" + S="${WORKDIR}/${PN}-${MY_PV}" + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + acct-user/synapse + acct-group/synapse +" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/bcrypt[${PYTHON_USEDEP}] + dev-python/bleach[${PYTHON_USEDEP}] + dev-python/canonicaljson[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/frozendict[${PYTHON_USEDEP}] + dev-python/ijson[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + >=dev-python/matrix-common-1.2.1[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/netaddr[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/phonenumbers[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},webp] + dev-python/prometheus_client[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pymacaroons[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/service_identity[${PYTHON_USEDEP}] + dev-python/signedjson[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] + dev-python/treq[${PYTHON_USEDEP}] + dev-python/twisted[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + dev-python/unpaddedbase64[${PYTHON_USEDEP}] + ') +" +BDEPEND=" + test? ( $(python_gen_cond_dep ' + dev-python/idna[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ') ) +" + +python_test() { + "${EPYTHON}" -m twisted.trial tests || die "Tests failed with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + keepdir /var/{lib,log}/synapse /etc/synapse + fowners synapse:synapse /var/{lib,log}/synapse /etc/synapse + fperms 0750 /var/{lib,log}/synapse /etc/synapse + newinitd "${FILESDIR}/${PN}.initd" "${PN}" +} + +pkg_postinst() { + optfeature "VoIP relaying on your homeserver with turn" net-im/coturn + + einfo "In order to generate initial configuration run:" + einfo "sudo -u synapse synapse_homeserver \\" + einfo " --server-name matrix.domain.tld \\" + einfo " --config-path /etc/synapse/homeserver.yaml \\" + einfo " --generate-config \\" + einfo " --data-directory /var/lib/synapse \\" + einfo " --report-stats=no" + einfo + einfo "See also upgrade notes:" + einfo "https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md" +}