summaryrefslogtreecommitdiff
path: root/net-proxy/dnss/dnss-9999.ebuild
blob: 49ace8e93a145f281e623636e84fa52e8dacff42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
ZIG_SLOT="0.16"

inherit zig git-r3

DESCRIPTION="A small, speedy DNS proxy and bad-stuff-blocker"
HOMEPAGE="https://codeberg.org/zacoons/dnss"
EGIT_REPO_URI="https://codeberg.org/zacoons/dnss.git"

LICENSE="Unlicense"
SLOT="0"
KEYWORDS=""

src_compile() {
	ezig build --release=fast
}

src_install() {
	zig_src_install

	if [[ -f "${S}/example.dnss.conf" ]]; then
		insinto /etc
		newins "${S}/example.dnss.conf" dnss.conf.example
	else
		ewarn "example.dnss.conf not found; skipping config example"
	fi
}