mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-im/mautrix-meta: add 0.2510.0
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
DIST mautrix-meta-0.2510.0-deps.tar.xz 45704776 BLAKE2B 1f4aee6b6c3587049a528b89c8f6d5f45b3902163e61a44d9037a9ceec7b8b292c16cc53e81e96c995d77af5ee969c07e8b6816361d819e45a210f7ee2ba001b SHA512 6d5397f8acf75f95da05f6ae02b18da77c53fd3ff9fa0e2f72a9aea2ddddf62945cd291007fd5c4e37746599e338c5f353d580d80e6e2121ae5bb9627d014d84
|
||||
DIST mautrix-meta-0.2510.0.gh.tar.gz 200199 BLAKE2B 74382cf36faf00d33098024bb5b6e12cdb78c3211c59cac31f009a6066b15636ae5ad31cfcf17705fd932bd1ba615b8488bd384ca8e663265a19e923dee31dea SHA512 db801bb2410ed3e1685122f8f95d1c91a9ba85847fc886af27fef08dea07835a8fbcd55c5ea3a46ffa73677baccd01c61397bb9beeab79e5c9b9b63e5d9f751f
|
||||
DIST mautrix-meta-0.4.2-deps.tar.xz 84320060 BLAKE2B cdef9d1cadd349b9d3460bd64613eeb41856b4cc4b39385220dc8309e728bed3af874f7a56056f633a0ef7a3bd486da16613fb34fb3c3370ddc82151a60cb796 SHA512 9274e4cf43fe78b8407a7ded8c1ec78f99723264fc49d202018519e17ed64244118a323b9d60dbbdd7042a7b3c5158c7200fba9543c982a3eea6648bf24780d8
|
||||
DIST mautrix-meta-0.4.2.gh.tar.gz 176291 BLAKE2B 179b7b7e5fb03b79890b96ad90ec809a80526f043b5ecb40ef1758c44c4aee3401ad5d64d9ec3e975269d5d60496e344067313362fe9740eaa9a5e5facf2a0d8 SHA512 6bc501ac7b5d62e427d1976fba5b3b8a262efdda0fc3859bb0fdb292d2e4ca926989c412b14359391ac9ce2fa1725b90c3a70aa57790eba81038c64386679b16
|
||||
DIST mautrix-meta-0.4.3-deps.tar.xz 41473124 BLAKE2B 178e908533eb24d8dca12b6ffe966d16214585bb9513c9353ff8860544c0e0bef350906109ad25791c95710286c59ca70d7e8935ed8e845685f96dc979018bb9 SHA512 23240b894d3a1a5257838128f2fef166a61c7dc7f5b8eb67c45285148c368b65db0b17dea6ae4d4cc090e7a177c34625d7e263cb599f8a0bf14d72f0d25ae7e6
|
||||
|
||||
63
net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild
Normal file
63
net-im/mautrix-meta/mautrix-meta-0.2510.0.ebuild
Normal file
@@ -0,0 +1,63 @@
|
||||
# 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-Facebook puppeting bridge"
|
||||
HOMEPAGE="https://github.com/mautrix/meta"
|
||||
SRC_URI="https://github.com/mautrix/meta/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||
https://jroy.ca/dist/${P}-deps.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
dev-libs/olm
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }')
|
||||
GO_LDFLAGS="-s -w -X main.Tag=$(git describe --exact-match --tags 2>/dev/null) -X main.Commit=$(git rev-parse HEAD) -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`' -X 'maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION'"
|
||||
ego build -ldflags "$GO_LDFLAGS" "${S}"/cmd/"${PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin mautrix-meta
|
||||
|
||||
keepdir /var/log/mautrix/meta
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user