net-im/mautrix-signal: new package, add 0.6.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
bd0068915a
commit
344f5bff96
15
metadata/md5-cache/net-im/mautrix-signal-0.6.2
Normal file
15
metadata/md5-cache/net-im/mautrix-signal-0.6.2
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
BDEPEND=~dev-libs/libsignal-ffi-0.51.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.6.2.tar.gz -> mautrix-signal-0.6.2.gh.tar.gz https://herbizarre.swordarmor.fr/garbage/mautrix-signal-0.6.2-deps.tar.xz
|
||||||
|
_eclasses_=multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic d309b9713dfc18e754cba88d3ba69653 go-env dbefaac6fd7019213514bccd65949d9a go-module 83fd3ed1657cfc316c93d6a37018290d systemd c8b03e8df84486aa991d4396686e8942
|
||||||
|
_md5_=3fa2a8d863a7903cea05ede44fa0ec4a
|
2
net-im/mautrix-signal/Manifest
Normal file
2
net-im/mautrix-signal/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
DIST mautrix-signal-0.6.2-deps.tar.xz 3411160 BLAKE2B 6aa191dfeef85d7181b2a6ea9075b6fee9d3b1592fded949fcc76ce2211ac4fb69269785ca1276e1bff9e07b93c8c73f8d4996fee989a0964919fed57fc07241 SHA512 962ddffb7cabc2b97dbe06e4263c6a998b8194c3895aa967362d3309cf7f96b62b4b26b0e7a1d66678e7c958dc2d517d595693a3e2c4b35801e3d06de34e02bb
|
||||||
|
DIST mautrix-signal-0.6.2.gh.tar.gz 346173 BLAKE2B 1e3f2dfae1a767981b385da895819f4e75d2e77c03bedfaaa429f455e9272a54e1b57e57af4efbb48f0200f84a91a818196006fbc54a56c567a2c94a389c581d SHA512 5adf47c2a4f1239e34fbbebe7700405369d1b610dc9fcffbd55cbe46eea86f94caed7316a319561c2ec34105eaa2214bf815dbaf43d3d57920e2a74151be0507
|
25
net-im/mautrix-signal/files/mautrix-signal.initd
Normal file
25
net-im/mautrix-signal/files/mautrix-signal.initd
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
name="mautrix-signal daemon"
|
||||||
|
description="A Matrix-Signal puppeting bridge"
|
||||||
|
module="mautrix_signal"
|
||||||
|
|
||||||
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
|
command="/usr/bin/mautrix-signal"
|
||||||
|
command_args="-c /etc/mautrix/${module}.yaml -r /var/lib/mautrix/signal/registration.yaml"
|
||||||
|
command_background=true
|
||||||
|
command_user="mautrix-signal:mautrix"
|
||||||
|
|
||||||
|
output_log="/var/log/mautrix/signal/daemon.log"
|
||||||
|
error_log="/var/log/mautrix/signal/daemon.log"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
checkpath -d -m 0755 -o "$command_user" /var/lib/mautrix/signal
|
||||||
|
checkpath -f -m 0644 -o "$command_user" "$output_log"
|
||||||
|
}
|
12
net-im/mautrix-signal/files/mautrix-signal.service
Normal file
12
net-im/mautrix-signal/files/mautrix-signal.service
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A Matrix-Signal puppeting bridge
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=mautrix-signal
|
||||||
|
Group=mautrix
|
||||||
|
Restart=always
|
||||||
|
ExecStart=/usr/bin/mautrix-signal -c /etc/mautrix/mautrix_signal.yaml -r /var/lib/mautrix/signal/registration.yaml
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
66
net-im/mautrix-signal/mautrix-signal-0.6.2.ebuild
Normal file
66
net-im/mautrix-signal/mautrix-signal-0.6.2.ebuild
Normal 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.51.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"
|
||||||
|
}
|
19
net-im/mautrix-signal/metadata.xml
Normal file
19
net-im/mautrix-signal/metadata.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>julien@jroy.ca</email>
|
||||||
|
<description>Julien Roy</description>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<maintainer>
|
||||||
|
<name>Tulir Asokan</name>
|
||||||
|
<email>tulir@maunium.net</email>
|
||||||
|
</maintainer>
|
||||||
|
<changelog>https://github.com/mautrix/signal/releases</changelog>
|
||||||
|
<doc>https://docs.mau.fi/bridges/python/signal/index.html</doc>
|
||||||
|
<bugs-to>https://github.com/mautrix/signal/issues</bugs-to>
|
||||||
|
<remote-id type="github">mautrix/signal</remote-id>
|
||||||
|
<remote-id type="pypi">mautrix-signal</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in a new issue