net-im/mautrix-signal: add 0.7.0

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2024-09-03 00:02:04 +02:00
parent f070c5b748
commit eda8aa5310
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
4 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,13 @@
BDEPEND=dev-libs/protobuf sys-devel/clang >=virtual/rust-1.53
DEFINED_PHASES=compile configure install test unpack
DESCRIPTION=A C ABI library which exposes Signal protocol logic
EAPI=8
HOMEPAGE=https://github.com/signalapp/libsignal
INHERIT=cargo
IUSE=debug debug
KEYWORDS=~amd64
LICENSE=AGPL-3 AGPL-3 Apache-2.0 BSD-2 BSD ISC MIT Unicode-DFS-2016
SLOT=0
SRC_URI=https://github.com/signalapp/libsignal/archive/v0.55.0.tar.gz -> libsignal-ffi-0.55.0.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/libsignal-ffi-0.55.0-vendor.tar.xz
_eclasses_=toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe rust-toolchain 68a6453cb41148db1da01fa2267527f0 cargo 67ea64209e3442a3a0e095f048d43a62
_md5_=0b9dca48161423bf37c48ca9c5112a03

View file

@ -0,0 +1,15 @@
BDEPEND=~dev-libs/libsignal-ffi-0.55.0 dev-libs/olm >=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
DEFINED_PHASES=compile config install postinst unpack
DEPEND=acct-user/mautrix-signal
DESCRIPTION=A Matrix-Signal puppeting bridge
EAPI=8
HOMEPAGE=https://github.com/mautrix/signal
INHERIT=go-module systemd
KEYWORDS=~amd64
LICENSE=AGPL-3
RDEPEND=acct-user/mautrix-signal
RESTRICT=strip
SLOT=0
SRC_URI=https://github.com/mautrix/signal/archive/v0.7.0.tar.gz -> mautrix-signal-0.7.0.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-signal-0.7.0-deps.tar.xz
_eclasses_=multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d go-env 7eb56e61e641d6db098d57fb37477c44 go-module 83fd3ed1657cfc316c93d6a37018290d systemd c8b03e8df84486aa991d4396686e8942
_md5_=3f2fbef8fb0f8158ecec802fa3e9e586

View file

@ -1,2 +1,4 @@
DIST mautrix-signal-0.6.3-deps.tar.xz 20641692 BLAKE2B f32e1898a527cde3569c48d0d8641a0c48c1e0e954e2a5065be0aa061e651339e34eb48ad64aa40e6cb25a15ce23d586caf614272efe7a5581ff41087f003160 SHA512 1a14b8683635167c11282b74f15123e31ae09b9e1c6ed2100c369127db6e2fcc1c006798fb3a94ea9431aa0e01534944f6d42a801d5ae83b145798da56cc02f1
DIST mautrix-signal-0.6.3.gh.tar.gz 358156 BLAKE2B 9af53b4a937381a73cd07c2237ea8734e507c1865347db0db8ca4098c1357a8d256b908351b014e6a1950f70d58610654f6478177218558ad15945351d116c32 SHA512 b4ac7a0e9d9ce69d34a32d0bb458d8f43d1c665dba22524dc9909f5a314a9ed46cbd07c8c128db92d399f51d11154eafedc37bc9c0cc289cbef616cba743209e
DIST mautrix-signal-0.7.0-deps.tar.xz 32087944 BLAKE2B dda574696b347ca9cb34799978a72c4cb05ac51dd16ddf2e1a3ed95fe0cca4a58534a9c6f4d6b8e291119049c1d57e526f3f972215035cf4486c6cdf27e6f514 SHA512 960b1f56bc3d46826f982a010b6fada9a92d81b037982eac2063928522886561bd1fe62b7da12ffcff81a6699567b3d6c2cbffd394e41535fcf771d91b441bb4
DIST mautrix-signal-0.7.0.gh.tar.gz 266505 BLAKE2B 16b013192ed116ede99c16c8edec74f3547b777fc485e61ee0d9a370a9fe6e40c10814312510ac5c3aaf6054c3a166fff090651162cd0b60fb73966408a7b877 SHA512 26a510c43fdb119ec57774e6deafc62469481b857bd9a2a16fc2468011adcc72fca5551a21b0024c43d1c91185ebb1d20a3c9589d04265aa0224047c1d861c7a

View file

@ -0,0 +1,66 @@
# 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-Signal puppeting bridge"
HOMEPAGE="https://github.com/mautrix/signal"
SRC_URI="https://github.com/mautrix/signal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
https://herbizarre.swordarmor.fr/garbage/${P}-deps.tar.xz
"
S="${WORKDIR}/signal-${PV}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
acct-user/${PN}
"
DEPEND="${RDEPEND}"
BDEPEND="
~dev-libs/libsignal-ffi-0.55.0
dev-libs/olm
"
src_compile() {
ego build
}
src_install() {
dobin mautrix-signal
keepdir /var/log/mautrix/signal
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"
}