Add ebuild for mautrix-signal 25.10 with fixed main.Tag
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
parent
2ceadd4382
commit
6ee7800b7b
7 changed files with 142 additions and 90 deletions
|
|
@ -1,4 +1,7 @@
|
|||
DIST mautrix-signal-0.7.4-deps.tar.xz 32458020 BLAKE2B 6afa4858922426d973f737eac11528899a07aad453ac46b10218b7ba54e499b6fe1fff194329b5d47c2dafa6f1517684557bd639378b97f3dd632fa1941228b3 SHA512 138c2dbc3a4579af10f7fd27cd3897d012fb8070c69a061b1f0fa6806fca17fbf56e0781e1a9593dd73c5a2f478e7d20deb9fc8f29d578529e5ed5d9813472c5
|
||||
DIST mautrix-signal-0.7.4.gh.tar.gz 270059 BLAKE2B a01a47c8456fd60d7275b15427e3aaaec4df89e05934f822e5ad31392fdf2abff4fb58fc907fc07e818a66828243d58b38386a647439aff53eff4b64192ef808 SHA512 9bee450a8c18b75a0b8f9df623f51eb6b6e327a44237ba4e0c74c961ee966a25fa1acdbcabda54100d955d6074582980bbab094f9b086dc51d1b8fcdafb4b0ca
|
||||
DIST mautrix-signal-0.7.5-deps.tar.xz 33129936 BLAKE2B c45a108236dd0c055dac7e44ded7fb8ddb031ea0b07a2e1a9230db769dc5928a358b371bdc310e316b53aee536e310c2306f1321b7ef41df8b8fce0e8ca81b75 SHA512 76d96145d2ae83aaaa26fca1510df079aacafe52cc7be3005c93efffea78843507b158962e4d5ea156618e5e392e9cb812e15a95ce1f0fcbd50818bea5b5c2aa
|
||||
DIST mautrix-signal-0.7.5.gh.tar.gz 273486 BLAKE2B 6eaaff57f2695cf779c91c1140fb2e11fe3b159201e6492b6ff7246c486520f7be03cb67bf06088dd56bc80239b5188b0180055396b6067ba7985c4f4e507060 SHA512 cd0c237b08e511739e8a33665e131f5a000a7508bf867d6b6059e7ea37d74ab879cc2be6bdee1dd7f195053cb866566a710356a92559a1ac05897b94f80d6b21
|
||||
AUX mautrix-signal.confd 133 BLAKE2B a232ec04a3749aaace59c1d78d55c1b6f20dccf985aa9670103001fadff4b72e30e73477235449e3b69942b86bb279a155aa6f1bf3e1ed8756876a7a49a68f81 SHA512 3ce719ab7a309399e75c03bef0f6561472f80386b2186c1baf1eb70fef4f02275b6f4bd73d939e952fc981a92d96f4ca017045542024567923f380934e3c4d7b
|
||||
AUX mautrix-signal.initd 702 BLAKE2B ee6ca26f46db90054078df666ddfc9b3b351a79ed053bd5eb38476cd4ca22cc117214fe1ab1fdbc1721252c25e667608e7a4e60ad40fc5d2f3a662887443bdd2 SHA512 73fc46a0bcd6d7398e2aa30e103793c9a0e3f24dc0db1396b28982e77544e8621ff37c12ed221579d44f84478b803126b4a2386d2bfa460730e14b3b5c73df05
|
||||
AUX mautrix-signal.initd-r1 525 BLAKE2B e29f39777296b867d972d4f4e9b8015c0846eb9676bdd3e49145d8e62c80109a6e3a3eb6cf528772e0220cfdcb802af47c6b20c2e7a794b3ea1e2213c9559daa SHA512 209967f9dfe2ec5c425bbb7606c015be17bbc98aaba94add823a26575bde53db3bfc7eca0f8d662bbb2e26d67a973ac0b13145f4c65b5c61115a8ef935832ce2
|
||||
AUX mautrix-signal.service 285 BLAKE2B 169ec40950631a2c572a814becb7cb9def22ec343fa0703a544a9c02d0777ac292698cfb2b125a90130680e2c4bd26745d2c48c448191b213bb36dba67ffa553 SHA512 bf7e63cadf37eef583f57aeb0c16fc1bb21877b102dcb79410b29f512887c028d6cdf4834fd9ba2d85e52fc6ac1a484f4cd6a27ef5bba3aece7e452d3cb22457
|
||||
DIST mautrix-signal-25.10.tar.gz 381872 BLAKE2B 706f8fd175bbc1e73ea41b7f4cb5d55c09a5d339d9acf7e27da21104710c4342aca6e421ab6827de35650c8bf877c46f14dc93e8b58fbd124432c26315d738e2 SHA512 85abb9715f0239ce647ce7a7f9f9332a1060e2fb95ed10a33399f31728df29864e207c2f8f1eacdf446125db67ba0d0e01fc5d762bbda53adbc39ab1d0eb08ac
|
||||
DIST signal-0.2510.0-vendor.tar.xz 3697400 BLAKE2B 7d6a9f36d7707f5e93318c32f2a98e50ca6d63d0c728f3c38adfdb456146df03a5e22f3a3bcfd94e8631e20accd30e7931d0cda3a6175bb9075db6777e3749c1 SHA512 4112a3d3fe67c3ddcc60a9580ff92f2008739ff2cc1ed37a8a64071e782d4030b407df4f1e9dec514972060de68033c19be6c4fe0fd781fd25b16510ffc8f0ee
|
||||
EBUILD mautrix-signal-25.10.ebuild 2749 BLAKE2B c1f8a6fc4c600e280ccc95a8a83ad2cdd9739333ef0f68f7e007a6a225c8840e4773e4690525ea71bddc4ad224f6f97b6218f734b72ec6c7783262c0b2ef239a SHA512 022d02eb8752291140481c80222845f19ba9a38db652a028764c3747327a638be3764ef3111dcf756375bfd4bd9107a898bb646d08b217ade9f5e301d7aee17c
|
||||
|
|
|
|||
5
net-im/mautrix-signal/files/mautrix-signal.confd
Normal file
5
net-im/mautrix-signal/files/mautrix-signal.confd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Configuration file
|
||||
#MAUTRIX_SIGNAL_CONFIG="/etc/mautrix/mautrix_signal.yaml"
|
||||
|
||||
# Extra command-line options
|
||||
#MAUTRIX_SIGNAL_OPTS=""
|
||||
21
net-im/mautrix-signal/files/mautrix-signal.initd-r1
Normal file
21
net-im/mautrix-signal/files/mautrix-signal.initd-r1
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/sbin/openrc-run
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Matrix-Signal puppeting bridge"
|
||||
supervisor="supervise-daemon"
|
||||
command="/usr/bin/mautrix-signal"
|
||||
command_args="-c ${MAUTRIX_SIGNAL_CONFIG} ${MAUTRIX_SIGNAL_OPTS}"
|
||||
command_user="mautrix-signal:mautrix"
|
||||
pidfile="/run/mautrix-signal/${RC_SVCNAME}.pid"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use dns postgresql
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -o "${command_user}" /run/mautrix-signal
|
||||
}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
# Copyright 2022-2025 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://jroy.ca/dist/${P}-deps.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/signal-${PV}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
dev-libs/olm
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
~dev-libs/libsignal-ffi-0.64.1
|
||||
dev-libs/olm
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
ego build "${S}"/cmd/"${PN}"
|
||||
}
|
||||
|
||||
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 "To generate the configuration file, use the following command:"
|
||||
elog "mautrix-signal -e"
|
||||
elog "Then move the config.yaml file to /etc/mautrix/${PN/-/_}.yaml"
|
||||
elog "Configure the file according to your homeserver"
|
||||
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"
|
||||
}
|
||||
95
net-im/mautrix-signal/mautrix-signal-25.10.ebuild
Normal file
95
net-im/mautrix-signal/mautrix-signal-25.10.ebuild
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module systemd toolchain-funcs
|
||||
|
||||
MY_PV="0.$(ver_rs 1-2 '').0"
|
||||
DESCRIPTION="Matrix-Signal puppeting bridge"
|
||||
HOMEPAGE="https://github.com/mautrix/signal"
|
||||
SRC_URI="https://github.com/mautrix/signal/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/gentoo-golang-dist/signal/releases/download/v${MY_PV}/signal-${MY_PV}-vendor.tar.xz"
|
||||
S="${WORKDIR}/signal-${MY_PV}"
|
||||
|
||||
LICENSE="AGPL-3+"
|
||||
# Go dependency licenses
|
||||
LICENSE+=" AGPL-3 Apache-2.0 BSD GPL-3+ ISC MIT MPL-2.0 public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/mautrix-signal
|
||||
dev-libs/olm
|
||||
virtual/zlib:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
~dev-libs/libsignal-ffi-0.84.0
|
||||
"
|
||||
|
||||
DOCS=( {CHANGELOG,README,ROADMAP}.md )
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} == "binary" ]] && return 0
|
||||
|
||||
# https://github.com/mautrix/signal/issues/595
|
||||
tc-is-clang && die "Clang compiler is not supported"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local MAUTRIX_VERSION=$(awk '/maunium\.net\/go\/mautrix / { print $2 }' go.mod)
|
||||
local BUILD_TIME=$(date -Iseconds)
|
||||
local go_ldflags=(
|
||||
-X "main.Tag=v${MY_PV}"
|
||||
-X "main.BuildTime=${BUILD_TIME}"
|
||||
-X "maunium.net/go/mautrix.GoModVersion=${MAUTRIX_VERSION}"
|
||||
)
|
||||
|
||||
ego build -ldflags "${go_ldflags[*]}" ./cmd/mautrix-signal
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin mautrix-signal
|
||||
einstalldocs
|
||||
|
||||
newinitd "${FILESDIR}"/mautrix-signal.initd-r1 mautrix-signal
|
||||
newconfd "${FILESDIR}"/mautrix-signal.confd mautrix-signal
|
||||
systemd_dounit "${FILESDIR}"/mautrix-signal.service
|
||||
|
||||
local dir
|
||||
for dir in /var/log/mautrix /etc/mautrix; do
|
||||
keepdir "${dir}"
|
||||
fowners -R root:mautrix "${dir}"
|
||||
fperms 770 "${dir}"
|
||||
done
|
||||
|
||||
keepdir /var/lib/mautrix/signal
|
||||
fowners -R mautrix-signal:mautrix /var/lib/mautrix/signal
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test -vet=off ./...
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
elog "Before you can use mautrix-signal, you need to configure it correctly."
|
||||
elog "To generate the configuration file, use the following command:"
|
||||
elog " # runuser -u mautrix-signal -g mautrix -- mautrix-signal -c /etc/mautrix/mautrix_signal.yaml -e"
|
||||
elog
|
||||
elog "Configure the /etc/mautrix/mautrix_signal.yaml file according to your"
|
||||
elog "homeserver. When done, run the following command:"
|
||||
elog " # emerge --config ${CATEGORY}/${PN}"
|
||||
elog
|
||||
elog "Then, you need to register the bridge with your homeserver."
|
||||
elog "Refer your homeserver's documentation for instructions."
|
||||
elog "The registration file is located at /var/lib/mautrix/signal/registration.yaml"
|
||||
elog
|
||||
elog "Finally, you may start the mautrix-signal daemon."
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
runuser -u mautrix-signal -g mautrix -- \
|
||||
mautrix-signal -c /etc/mautrix/mautrix_signal.yaml -g -r /var/lib/mautrix/signal/registration.yaml
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?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…
Add table
Add a link
Reference in a new issue