Install this version:
emerge -a =media-video/go2rtc-1.9.14
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-video/go2rtc-1.9.14
Or alternatively:
emerge --autounmask-write -a =media-video/go2rtc-1.9.14
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd tmpfiles
DESCRIPTION="Ultimate camera streaming application"
HOMEPAGE="https://github.com/AlexxIT/go2rtc"
SRC_URI="https://github.com/AlexxIT/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://www.inode64.com/dist/${P}-vendor.tar.xz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
acct-group/go2rtc
acct-user/go2rtc
media-video/ffmpeg[x264,x265,opus]
"
DOCS=(README.md)
src_compile() {
CGO_ENABLED=0 ego build -trimpath -ldflags "-s -w"
}
src_test() {
ego test || die "test failed"
}
src_install() {
default
insinto /usr/bin
dobin go2rtc
insinto /etc/logrotate.d
newins "${FILESDIR}/go2rtc.logrotate" go2rtc
insinto /etc/${PN}
doins "${FILESDIR}/go2rtc.yaml"
fowners -R go2rtc:go2rtc /etc/${PN}
newinitd "${FILESDIR}/go2rtc.initd" go2rtc
dotmpfiles "${FILESDIR}"/${PN}.conf
systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service"
}
pkg_postinst() {
tmpfiles_process go2rtc.conf
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | go2rtc-1.9.14-vendor.tar.xz | 1985204 bytes | https://www.inode64.com/dist/go2rtc-1.9.14-vendor.tar.xz |
| DIST | go2rtc-1.9.14.tar.gz | 836079 bytes | https://github.com/AlexxIT/go2rtc/archive/refs/tags/v1.9.14.tar.gz |