Install this version:
emerge -a =net-dns/dnsproxy-0.83.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-dns/dnsproxy-0.83.2
Or alternatively:
emerge --autounmask-write -a =net-dns/dnsproxy-0.83.2
# Copyright 1999-2026 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# shellcheck shell=bash
# shellcheck disable=SC2034
EAPI=8
inherit go-module systemd
DESCRIPTION="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support"
HOMEPAGE="https://github.com/AdguardTeam/dnsproxy"
SRC_URI="
https://github.com/AdguardTeam/dnsproxy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/xarblu/xarblu-overlay/releases/download/distfiles/${P}-deps.tar.xz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
BDEPEND=">=dev-lang/go-1.26.5:="
src_compile() {
# from ./scripts/make/go-build.sh
export CGO_ENABLED=0
local version_pkg='github.com/AdguardTeam/golibs/version'
local -a ldflags=( -X "${version_pkg}.version=${PV}" )
ego build \
-ldflags="${ldflags[*]}" \
-race=0 \
-trimpath \
-o="${PN}"
}
src_install() {
dobin "${PN}"
insinto /etc/dnsproxy
newins config.yaml.dist config.yaml
systemd_newunit "${FILESDIR}/dnsproxy.service-r1" dnsproxy.service
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | dnsproxy-0.83.2-deps.tar.xz | 35896584 bytes | https://github.com/xarblu/xarblu-overlay/releases/download/distfiles/dnsproxy-0.83.2-deps.tar.xz |
| DIST | dnsproxy-0.83.2.tar.gz | 204571 bytes | https://github.com/AdguardTeam/dnsproxy/archive/refs/tags/v0.83.2.tar.gz |