mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-21 07:52:21 -04:00
net-im/mautrix-discord: drop 0.6.2
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
parent
403f298db5
commit
2c5e163d31
@ -1,5 +1,3 @@
|
|||||||
DIST mautrix-discord-0.6.2.gh.tar.gz 113457 BLAKE2B 0f2b142cba038e2f86dbf1d0133c01ab3f1c6ccaacc931adacca31e5c5061a45e678273b6bd8c5a134b0466ffd25088fe79a0e9214484356d953eb5f0a2689cd SHA512 2990964fd7aae20fdfc0689c9a90986093f64a646ee476c4d63c3b9c5b164283d830e83230c68ca732d32f7f0f525ff38ec968b41464c8c2e5ff319a504d613a
|
|
||||||
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.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.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.gh.tar.gz 113804 BLAKE2B 164c5cc5d0504bf0d78df8b6926a124ef52157a5a1467ad8b4a76e6cef5285736cc223889f69c7f573018f2590394c637eaade54ff734353e8bd0cbcd0f7abad SHA512 cfcb5653d002c33f3498a65d7f6e507c1465b8ef767b672db770f44eaf59887246896e2f4149164e610a91af1418646eca77e571a85b0fdaeddc3131e589429e
|
||||||
|
@ -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