Install this version:
emerge -a =net-im/mautrix-linkedin-0.2608.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-im/mautrix-linkedin-0.2608.0
Or alternatively:
emerge --autounmask-write -a =net-im/mautrix-linkedin-0.2608.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-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"
}
acct-user/mautrix-linkedin dev-libs/olm
acct-user/mautrix-linkedin dev-libs/olm
>=dev-lang/go-1.26.0
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | mautrix-linkedin-0.2608.0-vendor.tar.xz | 3836388 bytes | https://vimja.cloud/public.php/dav/files/z59eKDyLFokW2KK//mautrix-linkedin/mautrix-linkedin-0.2608.0-vendor.tar.xz |
| DIST | mautrix-linkedin-0.2608.0.tar.gz | 68851 bytes | https://github.com/mautrix/linkedin/archive/refs/tags/v0.2608.0.tar.gz |