net-im/mautrix-linkedin: new package, add 0.2608.0

Signed-off-by: Niklaus 'vimja' Hofer <gentoo-bugzilla@vimja.email>
This commit is contained in:
Niklaus 'vimja' Hofer committed 2026-09-01 22:03:32 +02:00
1 parent 8140186f57
commit 928164b93c
5 files changed
+126

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
DIST mautrix-linkedin-0.2608.0-vendor.tar.xz 3836388 BLAKE2B 79e8e4b5fa766d2a6a4ab29eaae377d55d7538b3c79e8a41d092484537916b117cce00c816543434ef3218a65d8e85a2ac4f94fcbee7118c0f89cc98a87df5d8 SHA512 a79738ae08392791c82275fa3e5f2d519ee7b0ff8a0eaa1ba504b044726fad1a2b0320ec41c4b79414a14f3f8d563d6f2a9e26b18d9da24ac9eee24c2f10b7bd
DIST mautrix-linkedin-0.2608.0.tar.gz 68851 BLAKE2B c7133a4bd7c5e618c45269beb22c70fec7b28d619f057fe783f9bdab210a50e0f50f662827e1185bbd4d034af9e230379a31a9238d39e5d0f58599b3f7dd0b39 SHA512 3f54b87fcefc09bfdb2dbe0334de1e7728b2de145a60eef7c91196d6ec9b49f575a918e3e8aca8ebec9ed3874314004c4d99a47cbac2beee019aaace65f3248f
@@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="mautrix-linkedin daemon"
description="A Matrix-LinkedIN puppeting bridge"
module="mautrix_linkedin"
pidfile="/run/${RC_SVCNAME}.pid"
command="/usr/bin/mautrix-linkedin"
command_args="-c /etc/mautrix/${module}.yaml -r /var/lib/mautrix/linkedin/registration.yaml"
command_background=true
command_user="mautrix-linkedin:mautrix"
output_log="/var/log/mautrix/linkedin/daemon.log"
error_log="/var/log/mautrix/linkedin/daemon.log"
depend() {
need net
}
start_pre() {
checkpath -d -m 0755 -o "$command_user" /var/lib/mautrix/linkedin
checkpath -f -m 0644 -o "$command_user" "$output_log"
}
@@ -0,0 +1,12 @@
[Unit]
Description=A Matrix-LinkedIN puppeting bridge
After=network.target
[Service]
User=mautrix-linkedin
Group=mautrix
Restart=always
ExecStart=/usr/bin/mautrix-linkedin -c /etc/mautrix/mautrix_linkedin.yaml -r /var/lib/mautrix/linkedin/registration.yaml
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,69 @@
# 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-LinkedIn Messaging puppeting bridge"
HOMEPAGE="https://github.com/mautrix/linkedin"
SRC_URI="
https://github.com/mautrix/linkedin/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://vimja.cloud/public.php/dav/files/z59eKDyLFokW2KK/${CATEGORY}/${PN}/${P}-vendor.tar.xz
"
S="${WORKDIR}/linkedin-${PV}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
acct-user/${PN}
dev-libs/olm
"
DEPEND="${RDEPEND}"
BDEPEND=">=dev-lang/go-1.26.0"
src_compile() {
ego build ./cmd/${PN}
}
src_install() {
dobin mautrix-linkedin
keepdir /var/log/mautrix/linkedin
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
}
src_test() {
ego test ./...
}
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"
}
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo-bugzilla@vimja.email</email>
<name>Niklaus 'vimja' Hofer</name>
</maintainer>
<upstream>
<maintainer>
<name>Tulir Asokan</name>
<email>tulir@maunium.net</email>
</maintainer>
<changelog>https://github.com/mautrix/linkedin/releases</changelog>
<doc>https://docs.mau.fi/bridges/go/linkedin/index.html</doc>
<bugs-to>https://github.com/mautrix/linkedin/issues</bugs-to>
<remote-id type="github">mautrix/linkedin</remote-id>
</upstream>
</pkgmetadata>