net-im/mautrix-slack: add 0.1.1
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
daf5deef90
commit
b92d43b624
|
@ -9,5 +9,5 @@ KEYWORDS=~amd64
|
||||||
LICENSE=Apache-2.0
|
LICENSE=Apache-2.0
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=https://gitlab.matrix.org/matrix-org/olm/-/archive/3.1.4/olm-3.1.4.tar.bz2
|
SRC_URI=https://gitlab.matrix.org/matrix-org/olm/-/archive/3.1.4/olm-3.1.4.tar.bz2
|
||||||
_eclasses_=toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils baea6080dd821f5562d715887954c9d3 cmake 258a4691fd43b8cd5814cb1acbb3c7df
|
_eclasses_=toolchain-funcs d3d42b22a610ce81c267b644bcec9b87 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 10a50dfaf728b802fcfd37f8d0da9056
|
||||||
_md5_=0d444576f83e76286a9ed3efbe1b8a11
|
_md5_=0d444576f83e76286a9ed3efbe1b8a11
|
||||||
|
|
15
metadata/md5-cache/net-im/mautrix-slack-0.1.1
Normal file
15
metadata/md5-cache/net-im/mautrix-slack-0.1.1
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
|
||||||
|
DEFINED_PHASES=compile config install postinst unpack
|
||||||
|
DEPEND=acct-user/mautrix-slack dev-libs/olm
|
||||||
|
DESCRIPTION=A Matrix-Slack puppeting bridge based on slack-go
|
||||||
|
EAPI=8
|
||||||
|
HOMEPAGE=https://github.com/mautrix/slack
|
||||||
|
INHERIT=go-module systemd
|
||||||
|
KEYWORDS=~amd64
|
||||||
|
LICENSE=AGPL-3
|
||||||
|
RDEPEND=acct-user/mautrix-slack dev-libs/olm
|
||||||
|
RESTRICT=strip
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=https://github.com/mautrix/slack/archive/refs/tags/v0.1.1.tar.gz -> mautrix-slack-0.1.1.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-slack-0.1.1-deps.tar.xz
|
||||||
|
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs d3d42b22a610ce81c267b644bcec9b87 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe go-env 90efbc8636d2f02d9654183330e84cf7 go-module df32d29550d40a92da723d3b8e17b467 systemd 54bd206bb5c4efac6ae28b6b006713b0
|
||||||
|
_md5_=a07067a237e14692f42a36b21fbf7527
|
|
@ -11,5 +11,5 @@ RDEPEND=acct-user/mautrix-slack dev-libs/olm
|
||||||
RESTRICT=strip
|
RESTRICT=strip
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=https://github.com/mautrix/slack/archive/75d2ffd88b6f1d097697fab363099ed7d37fff6f.tar.gz -> mautrix-slack-0_pre20240501.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-slack-0_pre20240501-deps.tar.xz
|
SRC_URI=https://github.com/mautrix/slack/archive/75d2ffd88b6f1d097697fab363099ed7d37fff6f.tar.gz -> mautrix-slack-0_pre20240501.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-slack-0_pre20240501-deps.tar.xz
|
||||||
_eclasses_=multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d go-env 7eb56e61e641d6db098d57fb37477c44 go-module 83fd3ed1657cfc316c93d6a37018290d systemd c8b03e8df84486aa991d4396686e8942
|
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs d3d42b22a610ce81c267b644bcec9b87 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe go-env 90efbc8636d2f02d9654183330e84cf7 go-module df32d29550d40a92da723d3b8e17b467 systemd 54bd206bb5c4efac6ae28b6b006713b0
|
||||||
_md5_=e94d81ce67f919a1ab8a6a0aa6deb6c5
|
_md5_=e94d81ce67f919a1ab8a6a0aa6deb6c5
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
DIST mautrix-slack-0.1.1-deps.tar.xz 30195716 BLAKE2B b3d119496e99b4172667ddfc0931b75a51ad2945e66b355910d326308e98fda0e67310518d3ce45498a365e216f95b349fded42ed4c9f0ea5f6478bae0f342ca SHA512 d9fd113eb86607a4a103eaf4adc33799d7e0bace3f7f7dd04937abc3e5afecfcdfc48e45d9924e5a53dd86b6bc49859e3871407f2d726610086d9b0cb9d2539e
|
||||||
|
DIST mautrix-slack-0.1.1.gh.tar.gz 97862 BLAKE2B 13f3a8db464498f1c7a52a8c37b1e9763c932063f4c8ea9a3a4eaa61af80f2a14eed7832aa77055d1f5ea70e0febe5d64086f89cc76009155bad9b5f3625cf7a SHA512 effeacff4070986d58f16ff9b7184ac38ec698da9c2a7ae9df2501e79ef99d85b5065307d29914a7271c0f7b52ae31629502c23818a95b822068c5847bb4209b
|
||||||
DIST mautrix-slack-0_pre20240501-deps.tar.xz 15786404 BLAKE2B 43a0d37298f6044a234fde995cb6ce3c1b6047ad5e88707aa2883e4aabd898b085376f919a29cd4f253a94126acb3496891b889c68312ff17166e59ad68eeb08 SHA512 fdcc778fcaa01fae4cb2852b2f7c016e7ee847b22d47301c24a523997e910a35a9482b10f81bb1e6c5a7315997a1e693895bf71f96befc2017d2beb587510f47
|
DIST mautrix-slack-0_pre20240501-deps.tar.xz 15786404 BLAKE2B 43a0d37298f6044a234fde995cb6ce3c1b6047ad5e88707aa2883e4aabd898b085376f919a29cd4f253a94126acb3496891b889c68312ff17166e59ad68eeb08 SHA512 fdcc778fcaa01fae4cb2852b2f7c016e7ee847b22d47301c24a523997e910a35a9482b10f81bb1e6c5a7315997a1e693895bf71f96befc2017d2beb587510f47
|
||||||
DIST mautrix-slack-0_pre20240501.gh.tar.gz 103759 BLAKE2B d7db7c698e89679deac910db355169114988629ea376221ee120eab4c2c088664ae452d5d49ecd4b503308d3f8817ff8a8f8933006f1bb8ad4dfc5a70f81024b SHA512 499a47fb4bfa416f45952a3df6e49441c4486888e5243cefc630c10f7b1d474121d1410c9b7cd297898db6d3975fde64ff41f848c985d8928aac8bfc26d67e94
|
DIST mautrix-slack-0_pre20240501.gh.tar.gz 103759 BLAKE2B d7db7c698e89679deac910db355169114988629ea376221ee120eab4c2c088664ae452d5d49ecd4b503308d3f8817ff8a8f8933006f1bb8ad4dfc5a70f81024b SHA512 499a47fb4bfa416f45952a3df6e49441c4486888e5243cefc630c10f7b1d474121d1410c9b7cd297898db6d3975fde64ff41f848c985d8928aac8bfc26d67e94
|
||||||
|
|
63
net-im/mautrix-slack/mautrix-slack-0.1.1.ebuild
Normal file
63
net-im/mautrix-slack/mautrix-slack-0.1.1.ebuild
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
# 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-Slack puppeting bridge based on slack-go"
|
||||||
|
HOMEPAGE="https://github.com/mautrix/slack"
|
||||||
|
SRC_URI="https://github.com/mautrix/slack/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||||
|
https://herbizarre.swordarmor.fr/garbage/${P}-deps.tar.xz
|
||||||
|
"
|
||||||
|
S="${WORKDIR}/slack-${COMMIT}"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
acct-user/${PN}
|
||||||
|
dev-libs/olm
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
ego build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin mautrix-slack
|
||||||
|
|
||||||
|
keepdir /var/log/mautrix/slack
|
||||||
|
fowners -R root:mautrix /var/log/mautrix
|
||||||
|
fperms -R 770 /var/log/mautrix
|
||||||
|
sed -i -e "s/\.\/logs/\/var\/log\/mautrix\/slack/" "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…
Reference in a new issue