net-dns/dnsproxy - 0.82.0 (xarblu-overlay)

Search

Install

Install this version:

emerge -a =net-dns/dnsproxy-0.82.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-dns/dnsproxy-0.82.0

Or alternatively:

emerge --autounmask-write -a =net-dns/dnsproxy-0.82.0

Package Information

Description:
Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Homepage:
https://github.com/AdguardTeam/dnsproxy
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.82.0 8 ~amd64 ~arm ~arm64 ~ppc64 ~x86 0
View Raw Ebuild
# 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.4:="

src_compile() {
	# from ./scripts/make/go-build.sh
	export CGO_ENABLED=0
	local version_pkg='github.com/AdguardTeam/dnsproxy/internal/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
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.26.4:=

Manifest for 0.82.0

Type File Size Source URLs
DIST dnsproxy-0.82.0-deps.tar.xz 34853276 bytes https://github.com/xarblu/xarblu-overlay/releases/download/distfiles/dnsproxy-0.82.0-deps.tar.xz
DIST dnsproxy-0.82.0.tar.gz 197342 bytes https://github.com/AdguardTeam/dnsproxy/archive/refs/tags/v0.82.0.tar.gz