mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
net-im/mautrix-discord: add 0.6.5
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST mautrix-discord-0.6.3.gh.tar.gz 113655 BLAKE2B a9570c2b0cbba9f1d82efffe729c
|
||||
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
|
||||
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
|
||||
|
||||
65
net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild
Normal file
65
net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user