mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
net-im/mautrix-discord: drop 0.6.5
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
parent
56b796ea13
commit
4f4af717bd
@ -1,5 +1,3 @@
|
||||
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
|
||||
DIST mautrix-discord-0.7.2-deps.tar.xz 16703408 BLAKE2B c58222a2e81ec548df1dfa30742a9aeccc7fb32318ed31880c9155994e10891fbb8eb3504d34e7e7f8643e8e509c379b1c81744e7c189c456cacfa6bd30f8dbe SHA512 8b9fb43e7f7db3016eec27b3a3618f51a687f453fc1a03e5737eee3d87b94e084d1e4d9ee39dc5f175edc2d07b6dfadef9cce40fdd1906fe24fca9cabacc83ed
|
||||
|
@ -1,65 +0,0 @@
|
||||
# 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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user