From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/mautrix-discord/
Date: Thu, 25 May 2023 12:59:35 +0000 (UTC) [thread overview]
Message-ID: <1685019559.04c81fa600e64d672b9f28f727a38089161dcfce.julien@gentoo> (raw)
commit: 04c81fa600e64d672b9f28f727a38089161dcfce
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Thu May 25 12:59:19 2023 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> 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 <julien <AT> 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"
+}
next reply other threads:[~2023-05-25 12:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 12:59 Julien Roy [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-11 22:25 [gentoo-commits] repo/proj/guru:dev commit in: net-im/mautrix-discord/ Julien Roy
2025-01-11 22:19 Julien Roy
2024-11-16 20:20 Julien Roy
2024-11-16 20:20 Julien Roy
2024-02-18 1:42 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-02-18 1:35 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-02-18 1:35 Julien Roy
2023-11-17 21:01 Julien Roy
2023-11-17 21:01 Julien Roy
2023-10-16 21:20 Julien Roy
2023-10-16 21:20 Julien Roy
2023-09-16 22:24 Julien Roy
2023-09-16 22:24 Julien Roy
2023-07-14 2:05 Richard Rogalski
2023-06-16 13:46 Julien Roy
2023-06-16 13:46 Julien Roy
2023-04-23 17:44 Julien Roy
2023-04-16 20:45 Julien Roy
2023-04-16 20:38 Julien Roy
2023-04-10 2:43 Julien Roy
2023-04-10 2:43 Julien Roy
2023-02-18 21:04 Julien Roy
2023-01-29 17:51 Julien Roy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1685019559.04c81fa600e64d672b9f28f727a38089161dcfce.julien@gentoo \
--to=julien@jroy.ca \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox