mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-dns/technitium-dns: add 14.3
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
DIST TechnitiumDnsServer-13.6.0.tar.gz 1627685 BLAKE2B 21e42c61d0817402583f15d8e6ec851e9b28660e1ef66ef6bae284e9fefb6a2158648ba92f10af6403820a8d7d5d743a7aa028362cf44b32d9cecf66897287a9 SHA512 f8ca95d0865095ead6ddfc4270b95ca9c1869b3fc2bfa4891ab3ffbd8655ca70c7436fd022e56819399eef1b80156d071a4302034431eb96cc2e3d714562ebf5
|
DIST TechnitiumDnsServer-13.6.0.tar.gz 1627685 BLAKE2B 21e42c61d0817402583f15d8e6ec851e9b28660e1ef66ef6bae284e9fefb6a2158648ba92f10af6403820a8d7d5d743a7aa028362cf44b32d9cecf66897287a9 SHA512 f8ca95d0865095ead6ddfc4270b95ca9c1869b3fc2bfa4891ab3ffbd8655ca70c7436fd022e56819399eef1b80156d071a4302034431eb96cc2e3d714562ebf5
|
||||||
|
DIST TechnitiumDnsServer-14.3.0.tar.gz 1717641 BLAKE2B 2da0e70b11bc74491f7ddd72ab3566facfdde175f29beeafe9d32b399185ee542ec8fb2b311b27cf2eb8d179fd67bbbcf8533fd2c778b55297c2867d5ebe549b SHA512 1cc03aaab0cb2aeae7c94150658c34e12c9ba45c2cb6e51a106b04dd9d8a8a2d033b6b12b737db6859e7382ba55058c72eee257e9564e84d73e16a98af3c0943
|
||||||
DIST TechnitiumLibrary-13.6.0.tar.gz 246457 BLAKE2B 271dd51d477cae14ffea3c22136b8a4a5077af9f5fab35eaee0baed731f01265341a9a64d30e32e940bd77ccf6714d9859b58f6de2851117d9dbbe0f55beb045 SHA512 2b8f1f9a86c418a1c5260a180399d0f67c1b3b63406ef0f6e70c0e069b0e84c4f8f51aeca1ee278195603c435e606a76a15917ae4a2b35ed5b4ca67e10a00528
|
DIST TechnitiumLibrary-13.6.0.tar.gz 246457 BLAKE2B 271dd51d477cae14ffea3c22136b8a4a5077af9f5fab35eaee0baed731f01265341a9a64d30e32e940bd77ccf6714d9859b58f6de2851117d9dbbe0f55beb045 SHA512 2b8f1f9a86c418a1c5260a180399d0f67c1b3b63406ef0f6e70c0e069b0e84c4f8f51aeca1ee278195603c435e606a76a15917ae4a2b35ed5b4ca67e10a00528
|
||||||
|
DIST TechnitiumLibrary-14.3.0.tar.gz 248994 BLAKE2B 8940b780acd8cbde415b4678d1402f1ffa94330957448b4f378b0bb0687d7dfe771a13266a3c52cf403d01c98ebe76ec1f108b6a32dc5da79b81bf97bd89b678 SHA512 ece05adba2dfeef3aaa0cdcaba77ead3f9a556f584cd50fbb060cbabe5c446c31860a441e451972ba746e6576552fd1a77076e7d1e68d92a18ea8a9624b40634
|
||||||
DIST bouncycastle.cryptography.2.5.1.nupkg 8231681 BLAKE2B 0e532828def85261e703d09e8a5ef0b86e91e96f7ab5b69ff84a3dc4411c6a71dcdf3c25ba6427311dd4c033aa5058e56f6bc0932c245d9d849ebd44184f14b2 SHA512 cc12d715a7a3acda0e51b6804ae10e1c3e9543009c108485ae6c4ebe8773dee57642f8be291dc2cadcd14a086a0237d925298997ded8a01a4d5a781c7b67ab3d
|
DIST bouncycastle.cryptography.2.5.1.nupkg 8231681 BLAKE2B 0e532828def85261e703d09e8a5ef0b86e91e96f7ab5b69ff84a3dc4411c6a71dcdf3c25ba6427311dd4c033aa5058e56f6bc0932c245d9d849ebd44184f14b2 SHA512 cc12d715a7a3acda0e51b6804ae10e1c3e9543009c108485ae6c4ebe8773dee57642f8be291dc2cadcd14a086a0237d925298997ded8a01a4d5a781c7b67ab3d
|
||||||
|
DIST bouncycastle.cryptography.2.6.2.nupkg 8276422 BLAKE2B fa5c444c773a41eb0ade1f35c3b0df269bb5423c35a90d6fed5b9d6dac7dbc681c6c6763a256553046454f65a68cc06d3e75086fbd6e60aeb52523c97302e080 SHA512 4e1a32f937eebba134f1c6646c0b554edaa1bc41969dec5816d11c3c285906e106377113ea6c1cb0b161749ff08ae8ad39df05956b62abe2274d4b3060f0daef
|
||||||
|
DIST microsoft.win32.systemevents.6.0.0.nupkg 157768 BLAKE2B 0a5cea49c552a8d3e5aa2e8913fc4929ea318026b02a85c03665fe8bc449d59f838ef9a1044e0e034f6c30c7b63187c02bf6df4106b19e801d6c194ea5641941 SHA512 5e274ace996c3eba63099ed5116f9dc39f69f684f7c1e7623c28c3c73988b75c67dfcc929a50a761f0222df243dd540720a6e588e91dfa784f81bfce7a893875
|
||||||
|
DIST qrcoder.1.7.0.nupkg 964867 BLAKE2B 0589617a2c1ddc1e6076756ce34bcd6d47365dcbb0ef1f528a49b0ea17d21c157dc59bb4d076547f5b21fedf51b0bb783a252b8573c4ffdc846f5947a4f707bc SHA512 523945427baf0cf933f630a04d8f39f1a2cdb1550c092bab7e1c71bc48ca80ff1189c13b81167fc4bb8c2beaaf0a8044379f3410a823b865084c89521845e7a8
|
||||||
|
DIST system.drawing.common.6.0.0.nupkg 1114589 BLAKE2B bc4dac5dbd2504c355cd745a5559d3b5f2d1c59a9e0535c60ba97e12e84845541c8b606e15db6aa99052329950c0f58604779e5535251f20e960bf7c939ace43 SHA512 d61f0a3e01c3eac15f13fc1ba04a2c7ce4eac956400b2faa361fecabd3836d49d5bd344f3985ee3d94cdc3f6a72b8e07e423cdb2965b4f5ca2222b5de32988e4
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
# Copyright 1999-2025 Gentoo Authors
|
# Copyright 1999-2026 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
supervisor="supervise-daemon"
|
supervisor="supervise-daemon"
|
||||||
@@ -59,8 +59,8 @@ src_install() {
|
|||||||
|
|
||||||
dotnet-pkg_src_install
|
dotnet-pkg_src_install
|
||||||
|
|
||||||
newinitd "${FILESDIR}/${PF}.initd" "${PN}"
|
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||||
systemd_newunit "${FILESDIR}/${PF}.service" "${PN}.service"
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
|||||||
93
net-dns/technitium-dns/technitium-dns-14.3.ebuild
Normal file
93
net-dns/technitium-dns/technitium-dns-14.3.ebuild
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DOTNET_PKG_COMPAT=9.0
|
||||||
|
NUGETS="
|
||||||
|
bouncycastle.cryptography@2.6.2
|
||||||
|
microsoft.win32.systemevents@6.0.0
|
||||||
|
qrcoder@1.7.0
|
||||||
|
system.drawing.common@6.0.0
|
||||||
|
"
|
||||||
|
inherit dotnet-pkg systemd
|
||||||
|
|
||||||
|
MYPV="${PV}.0"
|
||||||
|
DESCRIPTION="Open-source, self-hosted authoritative and recursive DNS+DHCP server."
|
||||||
|
HOMEPAGE="https://technitium.com/dns/"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/TechnitiumSoftware/DnsServer/archive/refs/tags/v${MYPV}.tar.gz -> TechnitiumDnsServer-${MYPV}.tar.gz
|
||||||
|
https://github.com/TechnitiumSoftware/TechnitiumLibrary/archive/refs/tags/dns-server-v${MYPV}.tar.gz -> TechnitiumLibrary-${MYPV}.tar.gz
|
||||||
|
${NUGET_URIS}
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-libs/icu-70"
|
||||||
|
|
||||||
|
DOTNET_PKG_PROJECTS=(
|
||||||
|
"${S}/TechnitiumLibrary-dns-server-v${MYPV}/TechnitiumLibrary.ByteTree/TechnitiumLibrary.ByteTree.csproj"
|
||||||
|
"${S}/TechnitiumLibrary-dns-server-v${MYPV}/TechnitiumLibrary.Net/TechnitiumLibrary.Net.csproj"
|
||||||
|
"${S}/TechnitiumLibrary-dns-server-v${MYPV}/TechnitiumLibrary.Security.OTP/TechnitiumLibrary.Security.OTP.csproj"
|
||||||
|
"${S}/DnsServer-${MYPV}/DnsServerApp/DnsServerApp.csproj"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
dotnet-pkg_src_prepare
|
||||||
|
|
||||||
|
# The DnsServer project expects to find TechnitiumLibrary DLLs in a
|
||||||
|
# directory sibling to the root of the project, so has `HintPath`
|
||||||
|
# directives to point to that relative path (e.g.,
|
||||||
|
# '..\..\TechnitiumLibrary\bin\TechnitiumLibrary.dll'). Because we're
|
||||||
|
# explicitly building into `DOTNET_PKG_OUTPUT`, we'll need to point there
|
||||||
|
# instead for the DLLs to be located.
|
||||||
|
local replace_hintpaths="s|<HintPath>(\\.\\.\\\\)*TechnitiumLibrary\\\\bin|<HintPath>${DOTNET_PKG_OUTPUT}|g"
|
||||||
|
grep -ErlZ 'HintPath.*TechnitiumLibrary' "${S}/DnsServer-${MYPV}" \
|
||||||
|
| xargs -0 sed -E -i "${replace_hintpaths}" \
|
||||||
|
|| die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# dotnet-pkg will create a wrapper script around an executable at the root
|
||||||
|
# of `DOTNET_PKG_OUTPUT` matching `${PN}`, so we can link to
|
||||||
|
# `DnsServerApp`.
|
||||||
|
cd "${DOTNET_PKG_OUTPUT}" && ln -rs 'DnsServerApp' "${PN}" || die
|
||||||
|
|
||||||
|
# The included `systemd.service` file has hard-coded paths we'd need to
|
||||||
|
# adjust; we'll install our own.
|
||||||
|
rm "${DOTNET_PKG_OUTPUT}/systemd.service"
|
||||||
|
|
||||||
|
dotnet-pkg_src_install
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||||
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||||
|
elog 'To start Technitium DNS:'
|
||||||
|
elog '* OpenRC: rc-update add technitium-dns boot'
|
||||||
|
elog ' rc-service technitium-dns start'
|
||||||
|
elog ' OR'
|
||||||
|
elog '* systemd: systemctl enable technitium-dns'
|
||||||
|
elog ' systemctl start technitium-dns'
|
||||||
|
elog
|
||||||
|
elog 'After starting the service,'
|
||||||
|
elog '1. Technitium DNS configuration files can be found in'
|
||||||
|
elog " \"${ROOT}/etc/dns\""
|
||||||
|
elog '2. The Technetium web server can be accessed at localhost:5380. This port'
|
||||||
|
elog ' can be adjusted in settings'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
if [[ -d "${ROOT}/etc/dns" ]]; then
|
||||||
|
elog "Technitium DNS config files may still be present in \"${ROOT}/etc/dns\""
|
||||||
|
fi
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user