public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Fri, 17 Nov 2023 21:01:58 +0000 (UTC)	[thread overview]
Message-ID: <1700252793.403f298db5326dae90063c6724d8108a1bde2f0f.julien@gentoo> (raw)

commit:     403f298db5326dae90063c6724d8108a1bde2f0f
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Fri Nov 17 20:26:33 2023 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Nov 17 20:26:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=403f298d

net-im/mautrix-discord: add 0.6.4

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 net-im/mautrix-discord/Manifest                    |  2 +
 .../mautrix-discord/mautrix-discord-0.6.4.ebuild   | 65 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/net-im/mautrix-discord/Manifest b/net-im/mautrix-discord/Manifest
index c0edca350d..048c1ced10 100644
--- a/net-im/mautrix-discord/Manifest
+++ b/net-im/mautrix-discord/Manifest
@@ -2,3 +2,5 @@ DIST mautrix-discord-0.6.2.gh.tar.gz 113457 BLAKE2B 0f2b142cba038e2f86dbf1d0133c
 DIST mautrix-discord-0.6.2.tar.xz 67543704 BLAKE2B c803893b1d666c14e181b60d31378acbba940639b71a3af55c3b24ee0697ff58b84a9b8365ff0acef1939f7bc1ccb4deeac6def1a7e1d065079e0c169670f396 SHA512 ee291a97141800d0791cb1074840782ab649c15b78aac865f312b2a02dee6f03007ab0e1ce51472fe23b2223db89da276e4d9d4ee8d6e4e40e361360957ca2fb
 DIST mautrix-discord-0.6.3.gh.tar.gz 113655 BLAKE2B a9570c2b0cbba9f1d82efffe729cf5d50966d5b7a0fff9a233637f61f34801145de8b9ea2ea2a309035e3c5c0c803c240acb16b4b46668588b31cd51bfac966f SHA512 ff6462bae3d53331cd2fccf9037fc34d11a89e37d52d5bf1e5b10249952036fa7f8182354f2834a8051eb84a1e886872b3698fdec51f2f271946d4a8743a8870
 DIST mautrix-discord-0.6.3.tar.xz 117364608 BLAKE2B 4619146a6180898a11ba396e535a8320b5a51fa70bb72a5dd16f67edd4e7240004c9186e768c3081fb4f5c18e5fdee1af94ee731501417e443c9b0137e8e969c SHA512 168d7279752bc6f4b3682e3909ff58f45b81057b421ec9635a3963d88083507f9dbfef4057fad5012bea91f283bacff201241dc7355b0cd17414774029204666
+DIST mautrix-discord-0.6.4.gh.tar.gz 113804 BLAKE2B 164c5cc5d0504bf0d78df8b6926a124ef52157a5a1467ad8b4a76e6cef5285736cc223889f69c7f573018f2590394c637eaade54ff734353e8bd0cbcd0f7abad SHA512 cfcb5653d002c33f3498a65d7f6e507c1465b8ef767b672db770f44eaf59887246896e2f4149164e610a91af1418646eca77e571a85b0fdaeddc3131e589429e
+DIST mautrix-discord-0.6.4.tar.xz 61805824 BLAKE2B 49b26ec6d450e8ab5e29bead54346cc94e376646f298bc8f6f45c7d6f593fbca2c65b7b019b18242521a253d577b2ab1b38a78455d1b17c2ef2d48ee823a144d SHA512 72c8cae6a7f6188b75708db8663397aa66279a1059be40a735c066ae7ac49128fdee1040847141e827875860327df429f290bd8a9ecabb40919d644e55e01ae9

diff --git a/net-im/mautrix-discord/mautrix-discord-0.6.4.ebuild b/net-im/mautrix-discord/mautrix-discord-0.6.4.ebuild
new file mode 100644
index 0000000000..c282376a5d
--- /dev/null
+++ b/net-im/mautrix-discord/mautrix-discord-0.6.4.ebuild
@@ -0,0 +1,65 @@
+# 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
+	dev-util/lottieconverter
+"
+DEPEND="${RDEPEND}"
+BDEPEND=">=dev-lang/go-1.20.0"
+
+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"
+}


             reply	other threads:[~2023-11-17 21:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17 21:01 Julien Roy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-16 20:20 [gentoo-commits] repo/proj/guru:dev commit in: net-im/mautrix-discord/ 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-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-05-25 12:59 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=1700252793.403f298db5326dae90063c6724d8108a1bde2f0f.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