aboutsummaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2024-11-16 12:35:03 -0500
committerJulien Roy <julien@jroy.ca>2024-11-16 15:19:55 -0500
commit5b12d372207efbf505d44374de6ff3a16ebb403f (patch)
treed81e82e255a8ed8ec70b62f73bc1be1ec416c2ab /net-im
parentnet-im/maubot: add 0.5.0 (diff)
downloadguru-5b12d372207efbf505d44374de6ff3a16ebb403f.tar.gz
guru-5b12d372207efbf505d44374de6ff3a16ebb403f.tar.bz2
guru-5b12d372207efbf505d44374de6ff3a16ebb403f.zip
net-im/mautrix-discord: add 0.7.1
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/mautrix-discord/Manifest2
-rw-r--r--net-im/mautrix-discord/mautrix-discord-0.7.1.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/net-im/mautrix-discord/Manifest b/net-im/mautrix-discord/Manifest
index 79ec7852b..37010df7d 100644
--- a/net-im/mautrix-discord/Manifest
+++ b/net-im/mautrix-discord/Manifest
@@ -2,3 +2,5 @@ DIST mautrix-discord-0.6.4.gh.tar.gz 113804 BLAKE2B 164c5cc5d0504bf0d78df8b6926a
DIST mautrix-discord-0.6.4.tar.xz 61805824 BLAKE2B 49b26ec6d450e8ab5e29bead54346cc94e376646f298bc8f6f45c7d6f593fbca2c65b7b019b18242521a253d577b2ab1b38a78455d1b17c2ef2d48ee823a144d SHA512 72c8cae6a7f6188b75708db8663397aa66279a1059be40a735c066ae7ac49128fdee1040847141e827875860327df429f290bd8a9ecabb40919d644e55e01ae9
DIST mautrix-discord-0.6.5.gh.tar.gz 114044 BLAKE2B 70d713da28ac80593678df357ae69540a7c6069943d369ddba749e2182b5810ce76fbc072f75f94edc9aaac70d744eac799d8b82fc58162ad5adc727941d2307 SHA512 b52bc3a963c52970a6af334e985b959efc04e3181cac6d2c1f404b06ee94d19a2ed4a7edfcbe2248eb2ee5196e19f917c9451326593fc5b95724bdc7dd6fd936
DIST mautrix-discord-0.6.5.tar.xz 61963904 BLAKE2B 5de1b7b7020c4eb42aa8a6b98519f98afeee29f9307108343a7fcdf99399cd84af4bad015f186ed21d55cb8bdac22cbd96f7fdbc935c6827f87c65021516fa31 SHA512 29b16e01fc5c0d4913be7b3263d4560be88c027b55eb7ea48b291706f6a56d8188977ff566bd674e501bd14d1271fa5cdd0d4549fac0fa6fa60eb0442bafc64d
+DIST mautrix-discord-0.7.1-deps.tar.xz 62554916 BLAKE2B 8d672f7e96e63e1a927b915afbf4646e96ffbbf365af0a5eb3c4e301336bfd686091320a556c2ccefa77a114da9895aa80636776aa423e01211f4e071a41ec35 SHA512 5f6146827c0c958450b03336dfbe452b2c6f6a446c58d42576fcd9a27a8a97326a6b640a53ed5dd01a0b02fba12222a0dc1c6af59e30f64b4bb69827b8d6f2cf
+DIST mautrix-discord-0.7.1.gh.tar.gz 123092 BLAKE2B 67747114dd9afcd3bd6a5e51b37c050b4197246e5edae2122f5c37506bf6803261c33341f94d54b184a500311d96267a1efb56e125bf7cc4123a5694e3a5fe69 SHA512 eae61ab79f581aaaa2cc3546fb8d042d91df1d5dc051992fd7da2de757e5b942cad9d862793f7fe1cd0d5a0283631d49d011384943157e9797890452f353583f
diff --git a/net-im/mautrix-discord/mautrix-discord-0.7.1.ebuild b/net-im/mautrix-discord/mautrix-discord-0.7.1.ebuild
new file mode 100644
index 000000000..e53dcd7b8
--- /dev/null
+++ b/net-im/mautrix-discord/mautrix-discord-0.7.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022-2024 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}-deps.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"
+}