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 9A23C158088 for ; Mon, 27 Oct 2025 00:49:58 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7E1E4341E6F for ; Mon, 27 Oct 2025 00:49:58 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1C9111102F2; Mon, 27 Oct 2025 00:49:57 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 122681102F2 for ; Mon, 27 Oct 2025 00:49:56 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 69893341465 for ; Mon, 27 Oct 2025 00:49:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DB183A67 for ; Mon, 27 Oct 2025 00:49:54 +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: <1761526180.5a9d800450344691144f6c1ca957fe8ffddf62d5.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/mautrix-meta/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/mautrix-meta/Manifest net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild X-VCS-Directories: net-im/mautrix-meta/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 5a9d800450344691144f6c1ca957fe8ffddf62d5 X-VCS-Branch: dev Date: Mon, 27 Oct 2025 00:49:54 +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: 5f614a39-838c-4aad-a05d-3a22cb365408 X-Archives-Hash: 8abcab94a90954a34074e1701d2b680a commit: 5a9d800450344691144f6c1ca957fe8ffddf62d5 Author: Julien Roy jroy ca> AuthorDate: Sun Oct 26 23:49:46 2025 +0000 Commit: Julien Roy jroy ca> CommitDate: Mon Oct 27 00:49:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5a9d8004 net-im/mautrix-meta: add 0.2510.0 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-meta/Manifest | 2 + net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild | 63 ++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/net-im/mautrix-meta/Manifest b/net-im/mautrix-meta/Manifest index f3bf2eb438..d7ab05848a 100644 --- a/net-im/mautrix-meta/Manifest +++ b/net-im/mautrix-meta/Manifest @@ -1,3 +1,5 @@ +DIST mautrix-meta-0.2510.0-deps.tar.xz 45704776 BLAKE2B 1f4aee6b6c3587049a528b89c8f6d5f45b3902163e61a44d9037a9ceec7b8b292c16cc53e81e96c995d77af5ee969c07e8b6816361d819e45a210f7ee2ba001b SHA512 6d5397f8acf75f95da05f6ae02b18da77c53fd3ff9fa0e2f72a9aea2ddddf62945cd291007fd5c4e37746599e338c5f353d580d80e6e2121ae5bb9627d014d84 +DIST mautrix-meta-0.2510.0.gh.tar.gz 200199 BLAKE2B 74382cf36faf00d33098024bb5b6e12cdb78c3211c59cac31f009a6066b15636ae5ad31cfcf17705fd932bd1ba615b8488bd384ca8e663265a19e923dee31dea SHA512 db801bb2410ed3e1685122f8f95d1c91a9ba85847fc886af27fef08dea07835a8fbcd55c5ea3a46ffa73677baccd01c61397bb9beeab79e5c9b9b63e5d9f751f DIST mautrix-meta-0.4.2-deps.tar.xz 84320060 BLAKE2B cdef9d1cadd349b9d3460bd64613eeb41856b4cc4b39385220dc8309e728bed3af874f7a56056f633a0ef7a3bd486da16613fb34fb3c3370ddc82151a60cb796 SHA512 9274e4cf43fe78b8407a7ded8c1ec78f99723264fc49d202018519e17ed64244118a323b9d60dbbdd7042a7b3c5158c7200fba9543c982a3eea6648bf24780d8 DIST mautrix-meta-0.4.2.gh.tar.gz 176291 BLAKE2B 179b7b7e5fb03b79890b96ad90ec809a80526f043b5ecb40ef1758c44c4aee3401ad5d64d9ec3e975269d5d60496e344067313362fe9740eaa9a5e5facf2a0d8 SHA512 6bc501ac7b5d62e427d1976fba5b3b8a262efdda0fc3859bb0fdb292d2e4ca926989c412b14359391ac9ce2fa1725b90c3a70aa57790eba81038c64386679b16 DIST mautrix-meta-0.4.3-deps.tar.xz 41473124 BLAKE2B 178e908533eb24d8dca12b6ffe966d16214585bb9513c9353ff8860544c0e0bef350906109ad25791c95710286c59ca70d7e8935ed8e845685f96dc979018bb9 SHA512 23240b894d3a1a5257838128f2fef166a61c7dc7f5b8eb67c45285148c368b65db0b17dea6ae4d4cc090e7a177c34625d7e263cb599f8a0bf14d72f0d25ae7e6 diff --git a/net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild b/net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild new file mode 100644 index 0000000000..6995cbed7b --- /dev/null +++ b/net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild @@ -0,0 +1,63 @@ +# 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-Facebook puppeting bridge" +HOMEPAGE="https://github.com/mautrix/meta" +SRC_URI="https://github.com/mautrix/meta/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}-deps.tar.xz +" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/${PN} + dev-libs/olm +" +DEPEND="${RDEPEND}" + +src_compile() { + MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }') + GO_LDFLAGS="-s -w -X main.Tag=$(git describe --exact-match --tags 2>/dev/null) -X main.Commit=$(git rev-parse HEAD) -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`' -X 'maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION'" + ego build -ldflags "$GO_LDFLAGS" "${S}"/cmd/"${PN}" +} + +src_install() { + dobin mautrix-meta + + keepdir /var/log/mautrix/meta + 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" +}