Install this version:
emerge -a =net-proxy/oauth2-proxy-7.15.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-proxy/oauth2-proxy-7.15.4
Or alternatively:
emerge --autounmask-write -a =net-proxy/oauth2-proxy-7.15.4
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 7.15.4 | 8 | ~amd64 | 0 |
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EGO_PN="oauth2-proxy"
inherit go-module
DESCRIPTION="A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers"
HOMEPAGE="https://github.com/oauth2-proxy/oauth2-proxy"
SRC_URI="
https://github.com/oauth2-proxy/oauth2-proxy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.phys-el.ru/gentoo/phackerlay-distfiles/-/raw/master/${P}-deps.tar.xz
"
BDEPEND="
>=dev-lang/go-1.26.7
"
LICENSE="MIT BSD BSD-2 Apache-2.0 ISC"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
unset LDFLAGS
emake build
}
src_install() {
dobin ${S}/oauth2-proxy
}
A='
PV=7.15.4
wget https://github.com/oauth2-proxy/oauth2-proxy/archive/refs/tags/v$PV.tar.gz &&
tar -xf v$PV.tar.gz &&
rm v$PV.tar.gz &&
cd oauth2-proxy-$PV/ &&
GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw &&
XZ_OPT="-T0 -9" tar -acf oauth2-proxy-$PV-deps.tar.xz go-mod &&
mv oauth2-proxy-$PV-deps.tar.xz ../../../distfiles/ &&
cd .. &&
rm -rf oauth2-proxy-$PV/
'
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | oauth2-proxy-7.15.4-deps.tar.xz | 180099424 bytes | https://gitlab.phys-el.ru/gentoo/phackerlay-distfiles/-/raw/master/oauth2-proxy-7.15.4-deps.tar.xz |
| DIST | oauth2-proxy-7.15.4.tar.gz | 1836246 bytes | https://github.com/oauth2-proxy/oauth2-proxy/archive/refs/tags/v7.15.4.tar.gz |