mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
net-proxy/dnss: new package, add 0.1.1, 9999
Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
1
net-proxy/dnss/Manifest
Normal file
1
net-proxy/dnss/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST dnss-0.1.1.tar.gz 23600 BLAKE2B 23761235f77bea100fe0d02ccbc7d29b31165347c0a00a6a72d04b63e3ece8a1a9f5871b96e9ba40f409f8a5aa51620a8341b82870791ab437d3d46c3c0d93ec SHA512 abf6ccf077264308795f8df46cb0d9866b1582dfaa13627cd98e3e3ddc07802565c70ae62e1248deba065558d67c49d8e57d5ab0d473149d28e23ca506531353
|
||||
57
net-proxy/dnss/dnss-0.1.1.ebuild
Normal file
57
net-proxy/dnss/dnss-0.1.1.ebuild
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
ZIG_SLOT="0.16"
|
||||
|
||||
inherit zig systemd
|
||||
|
||||
DESCRIPTION="A small, speedy DNS proxy and bad-stuff-blocker"
|
||||
HOMEPAGE="https://codeberg.org/zacoons/dnss"
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="openrc systemd"
|
||||
|
||||
RDEPEND="
|
||||
openrc? ( sys-apps/openrc )
|
||||
systemd? ( sys-apps/systemd )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SRC_URI="https://codeberg.org/zacoons/dnss/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/dnss"
|
||||
|
||||
src_compile() {
|
||||
ezig build --release=fast
|
||||
}
|
||||
|
||||
src_install() {
|
||||
zig_src_install
|
||||
|
||||
# Install example config (dnss.conf is in the root of S)
|
||||
if [[ -f "${S}/dnss.conf" ]]; then
|
||||
insinto /etc
|
||||
newins "${S}/dnss.conf" dnss.conf.example
|
||||
elog "Installed example config as /etc/dnss.conf.example"
|
||||
else
|
||||
ewarn "dnss.conf not found in ${S}"
|
||||
fi
|
||||
|
||||
if use systemd && [[ -f "${S}/dnss.service" ]]; then
|
||||
systemd_dounit "${S}/dnss.service"
|
||||
elog "Installed systemd service"
|
||||
elif use systemd; then
|
||||
ewarn "dnss.service not found"
|
||||
fi
|
||||
|
||||
if use openrc && [[ -f "${S}/pkg/aur/openrc/dnss" ]]; then
|
||||
newinitd "${S}/pkg/aur/openrc/dnss" dnss
|
||||
elog "Installed OpenRC init script"
|
||||
elif use openrc; then
|
||||
ewarn "OpenRC script not found at pkg/aur/openrc/dnss"
|
||||
fi
|
||||
}
|
||||
45
net-proxy/dnss/dnss-9999.ebuild
Normal file
45
net-proxy/dnss/dnss-9999.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
ZIG_SLOT="0.16"
|
||||
|
||||
inherit zig systemd git-r3
|
||||
|
||||
DESCRIPTION="A small, speedy DNS proxy and bad-stuff-blocker"
|
||||
HOMEPAGE="https://codeberg.org/zacoons/dnss"
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE="openrc systemd"
|
||||
|
||||
RDEPEND="
|
||||
openrc? ( sys-apps/openrc )
|
||||
systemd? ( sys-apps/systemd )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
EGIT_REPO_URI="https://codeberg.org/zacoons/dnss.git"
|
||||
|
||||
src_compile() {
|
||||
ezig build --release=fast
|
||||
}
|
||||
|
||||
src_install() {
|
||||
zig_src_install
|
||||
|
||||
if [[ -f dnss.conf ]]; then
|
||||
insinto /etc
|
||||
newins dnss.conf dnss.conf.example
|
||||
fi
|
||||
|
||||
if use systemd && [[ -f dnss.service ]]; then
|
||||
systemd_dounit dnss.service
|
||||
fi
|
||||
|
||||
if use openrc && [[ -f pkg/aur/openrc/dnss ]]; then
|
||||
newinitd pkg/aur/openrc/dnss dnss
|
||||
fi
|
||||
}
|
||||
11
net-proxy/dnss/metadata.xml
Normal file
11
net-proxy/dnss/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>theron.york@cloudnuke.org</email>
|
||||
<name>Theron York</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="codeberg">zacoons/dnss</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user