net-dns/coredns: remove 1.11.4 & 1.12.0

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Closes: https://github.com/gentoo/gentoo/pull/42912
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Rahil Bhimjiani
2025-07-07 13:05:43 +05:30
committed by Zac Medico
parent 79bc24c994
commit 1715a7692d
3 changed files with 0 additions and 220 deletions

View File

@@ -1,7 +1,3 @@
DIST coredns-1.11.4-deps.tar.xz 8743848 BLAKE2B a083c85ed3a43b1d97ab928a133511dd7ae58431803387b5aa3b6d3dbf93f35f5aca18ca6a35e258e7596ef7c7718fe3599f1af48735a0f3d8e08eef5669c18e SHA512 d6d7d8ca5f085d5e04e4499041eb89ac88a6a2b2737b10c8979765d9e397261cfa48ed4c12a369c6794741a4e7150b44b3c09663b9cd2ca4bf8540843df22e55
DIST coredns-1.11.4.tar.gz 663610 BLAKE2B 2cb3930009bc68a3725da38bdd919a8b3969199bdae9fdbc4495361a9e83b9046f46a1c1ec1adf67170b75fe011fd0b24dd73163bef81ac43b7ea50faae5a1a2 SHA512 90506926736152958d6ec154734a6cce689406aea9eed7d68e868fa48361b0fb5c899d445f52e13a5401b91683c8ed7715c80617efaabdd7b5d9dde6ca634984
DIST coredns-1.12.0-deps.tar.xz 8762780 BLAKE2B 674f181aea1e48577bc97c64fba4eb90bef600e600d183b1043ddaa9a5a53cbaa70f1822a82fd51c817a18f13ec22be4c82dc08b41f133ec552b1174e0f9ee62 SHA512 853d8327537ada98d734591ce7dc3b6afdda9a43de1712de9452824de7be85bfe1314d89467f132b84181e4f0e229f637f87cd70e17eb663adb2dd17bd5aa0ca
DIST coredns-1.12.0.tar.gz 666624 BLAKE2B 87cd5f71d433a95d2cb0a80b9028e2051d3090538e18d11c9f53bf9307d4176ecc568e605ab76b1d4d1398fcf83aaec70b06ffec1e365d37dadc8a0782850d01 SHA512 b86cb6042adf0510204bacb04927e7cb6f43a2d48b26140384e014bdab353d095942c21843e9cea2ebe7cb3d003c49d0192ae208649509535b556b773e893c70
DIST coredns-1.12.1-deps.tar.xz 9209492 BLAKE2B cf56598af4244c254933be32d966d857ddae2f2e95b0adef8ebbb7cf418a532fc62ca4c1d191164f6ef564d3ff42b93cee6e4fa0c90299e4d998c02652f312df SHA512 03859e65ab80fcfe2a9f7f539c8f987dbcad5b2017aa85b8ddfb90b555ada5e7bdc817d4590cbc6d3f7186a1d897592bb6b0e81b4d0dc1aa505ee89616184b90
DIST coredns-1.12.1.tar.gz 669045 BLAKE2B b1f75863a44b4cd75ab0d01f595576553a27bda11d989f78195181d78374d6bc208d25be8450c79b5a51ca5c7bffc90cbc273221688d86b6b71d2ab0acd2ad4c SHA512 a0b941a9631bb2429a7dab3cd4cff59aaba7c4c73cb16b9a7ae40894b968a0de47af656a77cfb3ad57ccfa7334be1e1a4d5ca33cab7bd426b7eb217c3ffb04b5
DIST coredns-1.12.2-deps.tar.xz 9286816 BLAKE2B 2a51001080bf5a09edb7921319019d797dc5df58dcdfb765c283ba0bf4d198c6246698a0f5935819e159ea60d4e81430490e0a03753aad1c5ee7a08c772b0dfc SHA512 8a9e64aece6dfa535b9e149ceef86a85edcf2da880131da4e527842ec8f2da4daeea4af8ce07da196f2e5cb2c95e1839725937ad69bf3282e08f60f36b34a619

View File

@@ -1,108 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fcaps go-module multiprocessing systemd tmpfiles toolchain-funcs
DESCRIPTION="CoreDNS is a DNS server that chains plugins"
HOMEPAGE="https://github.com/coredns/coredns"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/coredns/coredns.git"
else
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
KEYWORDS="~amd64"
fi
# main
LICENSE="Apache-2.0"
# deps
LICENSE+=" MIT BSD ISC MPL-2.0 BSD-2"
SLOT="0"
# TODO: debug test failure with deps tarball
RESTRICT="test"
RDEPEND="acct-user/coredns
acct-group/coredns"
FILECAPS=(
-m 755 'cap_net_bind_service=+ep' usr/bin/${PN}
)
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
else
default
fi
}
src_prepare() {
[[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; }
default
}
src_compile() {
[[ ${PV} == 9999* ]] && local GIT_COMMIT="$(git describe --dirty --always)"
ego build -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=${GIT_COMMIT}"
}
src_install() {
dobin "${PN}"
einstalldocs
doman man/*
newinitd "${FILESDIR}"/coredns.initd coredns
newconfd "${FILESDIR}"/coredns.confd coredns
insinto /etc/coredns/
newins "${FILESDIR}"/Corefile.example Corefile
insinto /etc/logrotate.d
newins "${FILESDIR}"/coredns.logrotated coredns
systemd_dounit "${FILESDIR}"/coredns.service
newtmpfiles "${FILESDIR}"/coredns.tmpfiles "${PN}.conf"
}
src_test() {
# eclass default '-x' makes tests output unreadable
export GOFLAGS="-v -mod=readonly"
local known_fail=(
"TestZoneExternalCNAMELookupWithProxy"
"TestMetricsSeveralBlocs"
"TestMetricsAvailable"
"TestMetricsAvailableAfterReload"
"TestMetricsAvailableAfterReloadAndFailedReload"
)
# concat as '|^Test1$|^Test2$|^Test3...$':
local known_fail_re="$(printf '|^%s$' "${known_fail[@]}")"
# drop '|' in the begining:
known_fail_re="${known_fail_re:1}"
local working_tests_re="$(
# get list of all test:
{ GOFLAGS="-mod=readonly" go test -list . ./... ||
die "Can't get list of tests"; } |
# skip "no tests" messages as well as know failures:
grep -v -E " |${known_fail_re}" |
# format a regexp:
sed -z 's/\n/$|^/g'
)"
# drop '|^' in the end:
working_tests_re="^${working_tests_re::-2}"
go test -race -run "${working_tests_re}" ./... || die "Tests failed"
go test -race -run "${known_fail_re}" ./... || ewarn "Known test failure"
}
pkg_postinst() {
fcaps_pkg_postinst
tmpfiles_process ${PN}.conf
}

View File

@@ -1,108 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fcaps go-module multiprocessing systemd tmpfiles toolchain-funcs
DESCRIPTION="CoreDNS is a DNS server that chains plugins"
HOMEPAGE="https://github.com/coredns/coredns"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/coredns/coredns.git"
else
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
KEYWORDS="amd64"
fi
# main
LICENSE="Apache-2.0"
# deps
LICENSE+=" MIT BSD ISC MPL-2.0 BSD-2"
SLOT="0"
# TODO: debug test failure with deps tarball
RESTRICT="test"
RDEPEND="acct-user/coredns
acct-group/coredns"
FILECAPS=(
-m 755 'cap_net_bind_service=+ep' usr/bin/${PN}
)
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
else
default
fi
}
src_prepare() {
[[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; }
default
}
src_compile() {
[[ ${PV} == 9999* ]] && local GIT_COMMIT="$(git describe --dirty --always)"
ego build -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=${GIT_COMMIT}"
}
src_install() {
dobin "${PN}"
einstalldocs
doman man/*
newinitd "${FILESDIR}"/coredns.initd coredns
newconfd "${FILESDIR}"/coredns.confd coredns
insinto /etc/coredns/
newins "${FILESDIR}"/Corefile.example Corefile
insinto /etc/logrotate.d
newins "${FILESDIR}"/coredns.logrotated coredns
systemd_dounit "${FILESDIR}"/coredns.service
newtmpfiles "${FILESDIR}"/coredns.tmpfiles "${PN}.conf"
}
src_test() {
# eclass default '-x' makes tests output unreadable
export GOFLAGS="-v -mod=readonly"
local known_fail=(
"TestZoneExternalCNAMELookupWithProxy"
"TestMetricsSeveralBlocs"
"TestMetricsAvailable"
"TestMetricsAvailableAfterReload"
"TestMetricsAvailableAfterReloadAndFailedReload"
)
# concat as '|^Test1$|^Test2$|^Test3...$':
local known_fail_re="$(printf '|^%s$' "${known_fail[@]}")"
# drop '|' in the begining:
known_fail_re="${known_fail_re:1}"
local working_tests_re="$(
# get list of all test:
{ GOFLAGS="-mod=readonly" go test -list . ./... ||
die "Can't get list of tests"; } |
# skip "no tests" messages as well as know failures:
grep -v -E " |${known_fail_re}" |
# format a regexp:
sed -z 's/\n/$|^/g'
)"
# drop '|^' in the end:
working_tests_re="^${working_tests_re::-2}"
go test -race -run "${working_tests_re}" ./... || die "Tests failed"
go test -race -run "${known_fail_re}" ./... || ewarn "Known test failure"
}
pkg_postinst() {
fcaps_pkg_postinst
tmpfiles_process ${PN}.conf
}