From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 401721581F0 for ; Wed, 22 Jan 2025 15:42:35 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 291E6342FB5 for ; Wed, 22 Jan 2025 15:42:35 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 31CFC110432; Wed, 22 Jan 2025 15:42:24 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 26C01110432 for ; Wed, 22 Jan 2025 15:42:24 +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 CF88A3409C8 for ; Wed, 22 Jan 2025 15:42:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D4B02558 for ; Wed, 22 Jan 2025 15:42:21 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1737559784.c67fe77b820848b38113164223aa5dd9239a45bd.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/mautrix-signal/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/mautrix-signal/Manifest net-im/mautrix-signal/mautrix-signal-0.7.5.ebuild X-VCS-Directories: net-im/mautrix-signal/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: c67fe77b820848b38113164223aa5dd9239a45bd X-VCS-Branch: master Date: Wed, 22 Jan 2025 15:42:21 +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: 6e478dec-cbb3-40c4-8903-c4d61ecd2e47 X-Archives-Hash: 73b76a3f5f9d1aeb8a135405e3490a08 Message-ID: <20250122154221.9pZX2HRuU8G6zOwOApRAFORmUar54TO8m-HerRDj4KQ@z> commit: c67fe77b820848b38113164223aa5dd9239a45bd Author: Julien Roy jroy ca> AuthorDate: Wed Jan 22 15:28:42 2025 +0000 Commit: Julien Roy jroy ca> CommitDate: Wed Jan 22 15:29:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c67fe77b net-im/mautrix-signal: add 0.7.5 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-signal/Manifest | 2 + net-im/mautrix-signal/mautrix-signal-0.7.5.ebuild | 67 +++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/net-im/mautrix-signal/Manifest b/net-im/mautrix-signal/Manifest index 231420d3a..49f30e6ff 100644 --- a/net-im/mautrix-signal/Manifest +++ b/net-im/mautrix-signal/Manifest @@ -2,3 +2,5 @@ DIST mautrix-signal-0.7.3-deps.tar.xz 32503216 BLAKE2B c92ddfb270bf8a86eb7f30b03 DIST mautrix-signal-0.7.3.gh.tar.gz 268741 BLAKE2B 4b07ff54663b7895e84c1baf5fc5f2db5b35e115d69a72cb1a218bbfaa10c3f38c026cc53008178df70dc9373187e31c9977ef7e8820f0b55a1e4abf63bf2d80 SHA512 34b9e9e2acdee1d2a68081befa11bf1972c936972c72575a28c149a6620cc10a9381287d5d6553d34bc06b2e77a35ab23070f4f3f7c4e2594454fa24e7548913 DIST mautrix-signal-0.7.4-deps.tar.xz 32458020 BLAKE2B 6afa4858922426d973f737eac11528899a07aad453ac46b10218b7ba54e499b6fe1fff194329b5d47c2dafa6f1517684557bd639378b97f3dd632fa1941228b3 SHA512 138c2dbc3a4579af10f7fd27cd3897d012fb8070c69a061b1f0fa6806fca17fbf56e0781e1a9593dd73c5a2f478e7d20deb9fc8f29d578529e5ed5d9813472c5 DIST mautrix-signal-0.7.4.gh.tar.gz 270059 BLAKE2B a01a47c8456fd60d7275b15427e3aaaec4df89e05934f822e5ad31392fdf2abff4fb58fc907fc07e818a66828243d58b38386a647439aff53eff4b64192ef808 SHA512 9bee450a8c18b75a0b8f9df623f51eb6b6e327a44237ba4e0c74c961ee966a25fa1acdbcabda54100d955d6074582980bbab094f9b086dc51d1b8fcdafb4b0ca +DIST mautrix-signal-0.7.5-deps.tar.xz 33129936 BLAKE2B c45a108236dd0c055dac7e44ded7fb8ddb031ea0b07a2e1a9230db769dc5928a358b371bdc310e316b53aee536e310c2306f1321b7ef41df8b8fce0e8ca81b75 SHA512 76d96145d2ae83aaaa26fca1510df079aacafe52cc7be3005c93efffea78843507b158962e4d5ea156618e5e392e9cb812e15a95ce1f0fcbd50818bea5b5c2aa +DIST mautrix-signal-0.7.5.gh.tar.gz 273486 BLAKE2B 6eaaff57f2695cf779c91c1140fb2e11fe3b159201e6492b6ff7246c486520f7be03cb67bf06088dd56bc80239b5188b0180055396b6067ba7985c4f4e507060 SHA512 cd0c237b08e511739e8a33665e131f5a000a7508bf867d6b6059e7ea37d74ab879cc2be6bdee1dd7f195053cb866566a710356a92559a1ac05897b94f80d6b21 diff --git a/net-im/mautrix-signal/mautrix-signal-0.7.5.ebuild b/net-im/mautrix-signal/mautrix-signal-0.7.5.ebuild new file mode 100644 index 000000000..dbf2f8b8a --- /dev/null +++ b/net-im/mautrix-signal/mautrix-signal-0.7.5.ebuild @@ -0,0 +1,67 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="A Matrix-Signal puppeting bridge" +HOMEPAGE="https://github.com/mautrix/signal" +SRC_URI="https://github.com/mautrix/signal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}-deps.tar.xz +" +S="${WORKDIR}/signal-${PV}" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/${PN} + dev-libs/olm +" +DEPEND="${RDEPEND}" +BDEPEND=" + ~dev-libs/libsignal-ffi-0.64.1 + dev-libs/olm +" + +src_compile() { + ego build "${S}"/cmd/"${PN}" +} + +src_install() { + dobin mautrix-signal + + keepdir /var/log/mautrix/signal + fowners -R root:mautrix /var/log/mautrix + fperms -R 770 /var/log/mautrix + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/mautrix + fowners -R root:mautrix /etc/mautrix + fperms -R 770 /etc/mautrix +} + +pkg_postinst() { + einfo + elog "" + elog "Before you can use ${PN}, you must configure it correctly" + elog "To generate the configuration file, use the following command:" + elog "mautrix-signal -e" + elog "Then move the config.yaml file to /etc/mautrix/${PN/-/_}.yaml" + elog "Configure the file according to your homeserver" + elog "When done, run the following command: emerge --config ${CATEGORY}/${PN}" + elog "Then, you must register the bridge with your homeserver" + elog "Refer your homeserver's documentation for instructions" + elog "The registration file is located at /var/lib/${PN/-/\/}/registration.yaml" + elog "Finally, you may start the ${PN} daemon" + einfo +} + +pkg_config() { + su - "${PN}" -s /bin/sh -c \ + "/usr/bin/${PN} -c /etc/mautrix/${PN/-/_}.yaml -g -r /var/lib/${PN/-/\/}/registration.yaml" +}