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 63372158003 for ; Thu, 25 May 2023 12:59:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 430C1E0821; Thu, 25 May 2023 12:59:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 2730EE0821 for ; Thu, 25 May 2023 12:59:38 +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 31B2C340E1A for ; Thu, 25 May 2023 12:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 53F42A68 for ; Thu, 25 May 2023 12:59:35 +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: <1685019559.04c81fa600e64d672b9f28f727a38089161dcfce.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/mautrix-discord/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/mautrix-discord/Manifest net-im/mautrix-discord/mautrix-discord-0.4.0.ebuild X-VCS-Directories: net-im/mautrix-discord/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 04c81fa600e64d672b9f28f727a38089161dcfce X-VCS-Branch: dev Date: Thu, 25 May 2023 12:59:35 +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: c2822794-dfa5-41c6-b4d1-9dfa87056f2e X-Archives-Hash: 42d14909895f2417f59ba72010687060 commit: 04c81fa600e64d672b9f28f727a38089161dcfce Author: Julien Roy jroy ca> AuthorDate: Thu May 25 12:59:19 2023 +0000 Commit: Julien Roy jroy ca> CommitDate: Thu May 25 12:59:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04c81fa6 net-im/mautrix-discord: add 0.4.0 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-discord/Manifest | 2 + .../mautrix-discord/mautrix-discord-0.4.0.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/net-im/mautrix-discord/Manifest b/net-im/mautrix-discord/Manifest index dbb55164d..bb126931e 100644 --- a/net-im/mautrix-discord/Manifest +++ b/net-im/mautrix-discord/Manifest @@ -1,2 +1,4 @@ DIST mautrix-discord-0.3.0.gh.tar.gz 102756 BLAKE2B 20e239b45087a3daa75c3ee1420df348a861d79595c86490c404e42ce6382b5be876e4ba215f9ceaa6b756d73741f05e6ed0ce8af9c43014a8dc6676251bece6 SHA512 5a5033f505f78977d078ed66a4cfab6141b3aaa4a3f16f64463f89508ec717162018d4a5cc1b4b207529e8b06bb70f8a26a77001830551b69c7bd587e8f759ca DIST mautrix-discord-0.3.0.tar.xz 63734228 BLAKE2B 6e7eb00fa3802d4142e66637c3a11f233e3981be6799009c12351c421df4e1a3129a014afd0bbc1b39f006d110c4706c19599ab5a8e0bddfbefc659bfee285b5 SHA512 2dceaf0798e6efbd3d30506b55c2fc4232148950b1505003b9c5827a78cb6ee4b000ba5715ea4801dffbf9d469e4573b46e8f5825646290c3774fadeac0dacc8 +DIST mautrix-discord-0.4.0.gh.tar.gz 109060 BLAKE2B 3232e639824845386491a323b06fbe4c4ff8ae80d22bce77b8c68adf17339cb2f1819e54a8a36e2dd896aa6b373d4cf756af2515b555ed33f19503e16e634964 SHA512 0e3ab86414e7b43ca399bffadfd3f8840baff98e296a9e399eacb0ba63b3a5f149c3cc6efbc6a064281921734d8d490d10fd4d85ce90f80a6d7a3ead06bdae6e +DIST mautrix-discord-0.4.0.tar.xz 61069068 BLAKE2B ad2b14937d30e20d003887c15cae0b6b6ee547ed3220a5f442bf2b20346b66cb0b622010f1a0cf645844524a980146bb713b376889af78133e490ecac8933dcf SHA512 53336a492abff8472f5a0a5987831c93f09045a50dc06a74ec53e7a3f2fe7359d08c811c4f93cdf718f24b2c7fb5f90f807405efcc68b287dc7d7f51ce0e8e10 diff --git a/net-im/mautrix-discord/mautrix-discord-0.4.0.ebuild b/net-im/mautrix-discord/mautrix-discord-0.4.0.ebuild new file mode 100644 index 000000000..b1edd4514 --- /dev/null +++ b/net-im/mautrix-discord/mautrix-discord-0.4.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="A Matrix-Discord puppeting bridge" +HOMEPAGE="https://github.com/mautrix/discord" +SRC_URI="https://github.com/mautrix/discord/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}.tar.xz +" +S="${WORKDIR}/discord-${PV}" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/${PN} + dev-libs/olm +" +DEPEND="${RDEPEND}" + +src_compile() { + ego build +} + +src_install() { + dobin mautrix-discord + + keepdir /var/log/mautrix/discord + fowners -R root:mautrix /var/log/mautrix + fperms -R 770 /var/log/mautrix + sed -i -e "s/\.\/logs/\/var\/log\/${PN/-/\\\/}/" "example-config.yaml" || die + + insinto "/etc/mautrix" + newins "example-config.yaml" "${PN/-/_}.yaml" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + 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 "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\"" + 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" +}