mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
net-dns/technitium-dns: add 15.2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
@@ -2,10 +2,12 @@ DIST TechnitiumDnsServer-13.6.0.tar.gz 1627685 BLAKE2B 21e42c61d0817402583f15d8e
|
||||
DIST TechnitiumDnsServer-14.3.0.tar.gz 1717641 BLAKE2B 2da0e70b11bc74491f7ddd72ab3566facfdde175f29beeafe9d32b399185ee542ec8fb2b311b27cf2eb8d179fd67bbbcf8533fd2c778b55297c2867d5ebe549b SHA512 1cc03aaab0cb2aeae7c94150658c34e12c9ba45c2cb6e51a106b04dd9d8a8a2d033b6b12b737db6859e7382ba55058c72eee257e9564e84d73e16a98af3c0943
|
||||
DIST TechnitiumDnsServer-15.0.1.tar.gz 1806521 BLAKE2B fb1d985ff81e22e4aa6519acd71e2e57bc98cf1df7b45c408944a339ffa9a525181ff38e029001cfbb33c4318804208b4a91a2e1584d83d83da64d74f8296ed3 SHA512 5a182f7e40219528724c977fd5e37340c6652c747c5ebf14333d030d6a30ddcbb1fb23ce22e49e6997fc66c8b1a410bcf2b5cbaf8da719d5f0890f2fa281b091
|
||||
DIST TechnitiumDnsServer-15.1.0.tar.gz 1808309 BLAKE2B 9d7609e5590913fae27cb8da818f03927dfd479ced266e44996b21bdbb3fd780ddb2c8b8ebaf8b5972028c71813e4a58f70a99b342d65c32bcb09b96b4df4e40 SHA512 4de1ab9aa329f2813075c4744ab8bab35a2f2cf9f9df2dcb1fd038f342b9fde7ae60e37b2c357094628c38c0f77c513659422a3ec89135983de79eb947a9da07
|
||||
DIST TechnitiumDnsServer-15.2.0.tar.gz 1810250 BLAKE2B 393059288a629d2baf99ec657877229d2ccfc2798c5951c503c366814cab00c79726ba18fdcc3cb425f8770088488ed8d226d62adebd1e07d56cda1fee63f654 SHA512 5c6fd0125fac0db83ce8d8248af0a06e519b3bff08b1977e2860b1138349dc5046064332aacc61872176a17cd5cbd621a3e700e195a2082f164940e55717b7f7
|
||||
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 TechnitiumLibrary-15.0.1.tar.gz 251675 BLAKE2B f82221238fdfb278f084fb17bf503bd6869bd99fca3a387ce621b30de670567fb6d6d4dc94e1621f8124c4e327141146ffa5dedc72356a24633285484980fb61 SHA512 7532ef830afc56749d9b2b944dc0d22eab08fd9a9bcca1bd133f1f510d8127638a7d5bad9dce846347673551c2a50608971afd4cf02051c39b0bb79d828eec9f
|
||||
DIST TechnitiumLibrary-15.1.0.tar.gz 251691 BLAKE2B 00c573f7f5c8845bd6898624f2e7aace3e40cd437ea55b9daf52d2264c9dc0c588d92a5b20128af1194b8a1242194f0b832f8c55387998bb0b26331a8aa44e49 SHA512 e88ff13b11e0a004728758b7bf7d964778204474cdd12df2a7dc8117428044fe679bf6db06240cfba438493127f3ae548e53b14f78c6647f4cafd842ac150f9f
|
||||
DIST TechnitiumLibrary-15.2.0.tar.gz 251692 BLAKE2B 7b22296ef8a0efb5f056f60d8fec103170a5e65f9fce6e0dc2f969407732fc1b663647aa1082391027ed0a2ec0a2db6a15defd35d1661b9d93d331dbea22e035 SHA512 8aef33b3c4af72416a6f260ec569c433f18af9ba496854ea0c49152d671222777e5c0acc75fbeee4149d8ee637b45e1512de28d561f180ee08d232547cb3462e
|
||||
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.aspnetcore.authentication.openidconnect.10.0.7.nupkg 98901 BLAKE2B b72afd53982a99d231d5b6162bad4e54db3b20134a5339d025ab79a4fb6e35016085f769880db82d7e89699c91ef92534a99f1a72c8a77c212a2ce0baa829949 SHA512 dde72c48f40328d988e33f1fbc37cb381b5f916fdd6d685206fd27b682a305234099ac772ece758d57bf74a3a35e3f7e42b2d22419a1ae370546cbf22027c876
|
||||
|
||||
103
net-dns/technitium-dns/technitium-dns-15.2.ebuild
Normal file
103
net-dns/technitium-dns/technitium-dns-15.2.ebuild
Normal file
@@ -0,0 +1,103 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOTNET_PKG_COMPAT=10.0
|
||||
NUGETS="
|
||||
bouncycastle.cryptography@2.6.2
|
||||
microsoft.aspnetcore.authentication.openidconnect@10.0.7
|
||||
microsoft.identitymodel.abstractions@8.0.1
|
||||
microsoft.identitymodel.jsonwebtokens@8.0.1
|
||||
microsoft.identitymodel.logging@8.0.1
|
||||
microsoft.identitymodel.protocols.openidconnect@8.0.1
|
||||
microsoft.identitymodel.protocols@8.0.1
|
||||
microsoft.identitymodel.tokens@8.0.1
|
||||
microsoft.win32.systemevents@6.0.0
|
||||
qrcoder@1.8.0
|
||||
system.drawing.common@6.0.0
|
||||
system.identitymodel.tokens.jwt@8.0.1
|
||||
"
|
||||
inherit dotnet-pkg systemd
|
||||
|
||||
MYPV="${PV}.0"
|
||||
SRC_URI_BASE="https://github.com/TechnitiumSoftware"
|
||||
DESCRIPTION="Open-source, self-hosted authoritative and recursive DNS+DHCP server."
|
||||
HOMEPAGE="https://technitium.com/dns/"
|
||||
SRC_URI="
|
||||
$SRC_URI_BASE/DnsServer/archive/refs/tags/v${MYPV}.tar.gz -> TechnitiumDnsServer-${MYPV}.tar.gz
|
||||
$SRC_URI_BASE/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" ||
|
||||
die "systemd.service file moved upstream; check for updated path"
|
||||
|
||||
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