net-im/mautrix-signal: add 0.7.4

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2025-01-04 00:15:24 +01:00
parent 688a915f95
commit cc8d81979b
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
5 changed files with 86 additions and 6 deletions

View file

@ -1,5 +1,5 @@
BDEPEND=dev-libs/protobuf sys-devel/clang >=virtual/rust-1.53
DEFINED_PHASES=compile configure install test unpack
BDEPEND=dev-libs/protobuf sys-devel/clang || ( dev-lang/rust-bin:1.83.0 dev-lang/rust:1.83.0 dev-lang/rust-bin:1.82.0 dev-lang/rust:1.82.0 dev-lang/rust-bin:1.81.0 dev-lang/rust:1.81.0 dev-lang/rust-bin:1.80.1 dev-lang/rust:1.80.1 dev-lang/rust-bin:1.79.0 dev-lang/rust:1.79.0 dev-lang/rust-bin:1.78.0 dev-lang/rust:1.78.0 dev-lang/rust-bin:1.77.1 dev-lang/rust:1.77.1 dev-lang/rust-bin:1.76.0 dev-lang/rust:1.76.0 dev-lang/rust-bin:1.75.0 dev-lang/rust:1.75.0 dev-lang/rust-bin:1.74.1 dev-lang/rust:1.74.1 dev-lang/rust-bin:1.71.1 dev-lang/rust:1.71.1 )
DEFINED_PHASES=compile configure install setup test unpack
DESCRIPTION=A C ABI library which exposes Signal protocol logic
EAPI=8
HOMEPAGE=https://github.com/signalapp/libsignal
@ -9,5 +9,5 @@ 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.57.1.tar.gz -> libsignal-ffi-0.57.1.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/libsignal-ffi-0.57.1-vendor.tar.xz
_eclasses_=toolchain-funcs d3d42b22a610ce81c267b644bcec9b87 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo aed68000b8e49b4c4dd13a256149971f
_eclasses_=toolchain-funcs fa554cc3cff825d21dfe3f24841e29cf multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust 55e231f09fddb09cbbaa254cf234368b rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo b5f350ebe96460cff090d0f2ae7e698a
_md5_=a71dd12bf938d4ed85fdabf4cb73716d

View file

@ -1,5 +1,5 @@
BDEPEND=dev-libs/protobuf sys-devel/clang >=virtual/rust-1.53
DEFINED_PHASES=compile configure install test unpack
BDEPEND=dev-libs/protobuf sys-devel/clang || ( dev-lang/rust-bin:1.83.0 dev-lang/rust:1.83.0 dev-lang/rust-bin:1.82.0 dev-lang/rust:1.82.0 dev-lang/rust-bin:1.81.0 dev-lang/rust:1.81.0 dev-lang/rust-bin:1.80.1 dev-lang/rust:1.80.1 dev-lang/rust-bin:1.79.0 dev-lang/rust:1.79.0 dev-lang/rust-bin:1.78.0 dev-lang/rust:1.78.0 dev-lang/rust-bin:1.77.1 dev-lang/rust:1.77.1 dev-lang/rust-bin:1.76.0 dev-lang/rust:1.76.0 dev-lang/rust-bin:1.75.0 dev-lang/rust:1.75.0 dev-lang/rust-bin:1.74.1 dev-lang/rust:1.74.1 dev-lang/rust-bin:1.71.1 dev-lang/rust:1.71.1 )
DEFINED_PHASES=compile configure install setup test unpack
DESCRIPTION=A C ABI library which exposes Signal protocol logic
EAPI=8
HOMEPAGE=https://github.com/signalapp/libsignal
@ -9,5 +9,5 @@ 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.62.0.tar.gz -> libsignal-ffi-0.62.0.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/libsignal-ffi-0.62.0-vendor.tar.xz
_eclasses_=toolchain-funcs d3d42b22a610ce81c267b644bcec9b87 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo aed68000b8e49b4c4dd13a256149971f
_eclasses_=toolchain-funcs fa554cc3cff825d21dfe3f24841e29cf multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust 55e231f09fddb09cbbaa254cf234368b rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo b5f350ebe96460cff090d0f2ae7e698a
_md5_=a71dd12bf938d4ed85fdabf4cb73716d

View file

@ -0,0 +1,15 @@
BDEPEND=~dev-libs/libsignal-ffi-0.64.1 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.4.tar.gz -> mautrix-signal-0.7.4.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-signal-0.7.4-deps.tar.xz
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs fa554cc3cff825d21dfe3f24841e29cf multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe go-env 90efbc8636d2f02d9654183330e84cf7 go-module df32d29550d40a92da723d3b8e17b467 systemd 54bd206bb5c4efac6ae28b6b006713b0
_md5_=b7356b6cad770b199cf1e65dc38e90d3

View file

@ -1,2 +1,4 @@
DIST mautrix-signal-0.7.3-deps.tar.xz 32213664 BLAKE2B afb8412a1cf8018eeba75fb0149b9484ad6941ac5fb1721a8eccab569fa5ca622c28f5c30c7041840168b97c0ed1f2dfa509f1cda5d4517736b4fc6b34b517ce SHA512 27c299d1e150b1644a431d01b6f0a6ba3c224ac9e72c2924f1d48765617d4c9c757f1c0d4f71f13775b490988ae8c35cdaa5c7cde35ae453780a9df208ee3c9a
DIST mautrix-signal-0.7.3.gh.tar.gz 268741 BLAKE2B 4b07ff54663b7895e84c1baf5fc5f2db5b35e115d69a72cb1a218bbfaa10c3f38c026cc53008178df70dc9373187e31c9977ef7e8820f0b55a1e4abf63bf2d80 SHA512 34b9e9e2acdee1d2a68081befa11bf1972c936972c72575a28c149a6620cc10a9381287d5d6553d34bc06b2e77a35ab23070f4f3f7c4e2594454fa24e7548913
DIST mautrix-signal-0.7.4-deps.tar.xz 32207696 BLAKE2B d31c4f6ac35bae2019a0a785c95b59116cbf0e1d16da2cc7b83ddc24671c96e6898769a7af284c00c96dff9115c36df1131a2667d81d3a20beeb8bb19d310bf6 SHA512 0c5d04512797a61278802ef9916f7bc04983c28858337f3591c167eb5f55e57473e10ce769b805a440c3a77e7ae6329e03753083a4581e297715c705970f7af9
DIST mautrix-signal-0.7.4.gh.tar.gz 270059 BLAKE2B a01a47c8456fd60d7275b15427e3aaaec4df89e05934f822e5ad31392fdf2abff4fb58fc907fc07e818a66828243d58b38386a647439aff53eff4b64192ef808 SHA512 9bee450a8c18b75a0b8f9df623f51eb6b6e327a44237ba4e0c74c961ee966a25fa1acdbcabda54100d955d6074582980bbab094f9b086dc51d1b8fcdafb4b0ca

View 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-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.64.1
dev-libs/olm
"
src_compile() {
ego build ${GOFLAGS} ./cmd/mautrix-signal
}
src_install() {
dobin mautrix-signal
keepdir /var/log/mautrix/signal
fowners -R root:mautrix /var/log/mautrix
fperms -R 770 /var/log/mautrix
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
systemd_dounit "${FILESDIR}/${PN}.service"
keepdir /etc/mautrix
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"
}