mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
net-im/mautrix-discord: add 0.7.2
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST mautrix-discord-0.6.5.gh.tar.gz 114044 BLAKE2B 70d713da28ac80593678df357ae6
|
|||||||
DIST mautrix-discord-0.6.5.tar.xz 61963904 BLAKE2B 5de1b7b7020c4eb42aa8a6b98519f98afeee29f9307108343a7fcdf99399cd84af4bad015f186ed21d55cb8bdac22cbd96f7fdbc935c6827f87c65021516fa31 SHA512 29b16e01fc5c0d4913be7b3263d4560be88c027b55eb7ea48b291706f6a56d8188977ff566bd674e501bd14d1271fa5cdd0d4549fac0fa6fa60eb0442bafc64d
|
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-deps.tar.xz 62554916 BLAKE2B 8d672f7e96e63e1a927b915afbf4646e96ffbbf365af0a5eb3c4e301336bfd686091320a556c2ccefa77a114da9895aa80636776aa423e01211f4e071a41ec35 SHA512 5f6146827c0c958450b03336dfbe452b2c6f6a446c58d42576fcd9a27a8a97326a6b640a53ed5dd01a0b02fba12222a0dc1c6af59e30f64b4bb69827b8d6f2cf
|
||||||
DIST mautrix-discord-0.7.1.gh.tar.gz 123092 BLAKE2B 67747114dd9afcd3bd6a5e51b37c050b4197246e5edae2122f5c37506bf6803261c33341f94d54b184a500311d96267a1efb56e125bf7cc4123a5694e3a5fe69 SHA512 eae61ab79f581aaaa2cc3546fb8d042d91df1d5dc051992fd7da2de757e5b942cad9d862793f7fe1cd0d5a0283631d49d011384943157e9797890452f353583f
|
DIST mautrix-discord-0.7.1.gh.tar.gz 123092 BLAKE2B 67747114dd9afcd3bd6a5e51b37c050b4197246e5edae2122f5c37506bf6803261c33341f94d54b184a500311d96267a1efb56e125bf7cc4123a5694e3a5fe69 SHA512 eae61ab79f581aaaa2cc3546fb8d042d91df1d5dc051992fd7da2de757e5b942cad9d862793f7fe1cd0d5a0283631d49d011384943157e9797890452f353583f
|
||||||
|
DIST mautrix-discord-0.7.2-deps.tar.xz 16703408 BLAKE2B c58222a2e81ec548df1dfa30742a9aeccc7fb32318ed31880c9155994e10891fbb8eb3504d34e7e7f8643e8e509c379b1c81744e7c189c456cacfa6bd30f8dbe SHA512 8b9fb43e7f7db3016eec27b3a3618f51a687f453fc1a03e5737eee3d87b94e084d1e4d9ee39dc5f175edc2d07b6dfadef9cce40fdd1906fe24fca9cabacc83ed
|
||||||
|
DIST mautrix-discord-0.7.2.gh.tar.gz 123806 BLAKE2B f309e1a55f6971d46f8a609a7cb4853ce70d133ee09bdc52296aea7894ae9cd8db5eb70d16c74c52ae84e6a6e95e64c1c1f200fde1b656be241e2a6aa072a2d0 SHA512 8f9b81d11d6260601b5010fc7b2eea5411610a9ba8653fc0563e576668182530ab5890b628e2c015e9124bc9de75c132b95912856d97971ed920b913f59cc105
|
||||||
|
|||||||
65
net-im/mautrix-discord/mautrix-discord-0.7.2.ebuild
Normal file
65
net-im/mautrix-discord/mautrix-discord-0.7.2.ebuild
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
# 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-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
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user