From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/coredns/
Date: Sat, 28 May 2022 17:42:55 +0000 (UTC) [thread overview]
Message-ID: <1653759762.54c7c5e2305c7cc94a96dc921b6711b02aeb53ce.zmedico@gentoo> (raw)
commit: 54c7c5e2305c7cc94a96dc921b6711b02aeb53ce
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat May 28 17:42:42 2022 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat May 28 17:42:42 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54c7c5e2
net-dns/coredns: add 1.9.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
net-dns/coredns/Manifest | 2 +
net-dns/coredns/coredns-1.9.3.ebuild | 89 ++++++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+)
diff --git a/net-dns/coredns/Manifest b/net-dns/coredns/Manifest
index 74f2a56dbba8..c1e417963e76 100644
--- a/net-dns/coredns/Manifest
+++ b/net-dns/coredns/Manifest
@@ -1,2 +1,4 @@
DIST coredns-1.8.3-deps.tar.xz 160097444 BLAKE2B e7c59bc3b732b84211bb2142edf6953eec839adac239b92082eb86aebd6d3f31b7e736000ba789836acc0cd88c3beda30b6f208f1192a878889399c43328c1ef SHA512 9b519214762aee3c28071a21cc052ecfa32b001cca56b99f5fe675a0cc6c08aadb68bfe0bedf39ca87040d18c906b9e2c8829acd9741b3b1e333d6c27ae7fa74
DIST coredns-1.8.3.tar.gz 553278 BLAKE2B 8dddf12686e498f937c057a2fd539ff455980deef1dc889f8e7f6891a712dedb4089528c0a228240332603a37040ab22f80e17af38998a73757f9d1c18d28064 SHA512 2cc2754e9e626d40a2101f17744e8c57bd6d469eacbb4cfee965c2bf485156ae91f4cc99f8e63b5641163e8716c9614b6f9481fb91acb96e62951044bdac1fa8
+DIST coredns-1.9.3-deps.tar.xz 205913904 BLAKE2B d5a630d7afa14577e1d5b9aba48a43808b990bc6e550408d141b509253c611266e3d5b5acc33222582693d7542630c0efdad973535564a37434a50dc67289099 SHA512 d954e73c3f6c3d1c37d959420c92cd59aa61bb5b2f69fdbcf017cbba173a0b8e9e0d73ef85e9b7fa8657c9916afd4843df0886058815c7df854ec3ddc67eae1d
+DIST coredns-1.9.3.tar.gz 624914 BLAKE2B a27e73da8c67ff38d33757bf8fdae5938574b1b0f4db4a469e67e6063c1643b0dc60227646998b87bbd79d48bdf8c792be432ae253b54fca0d6afdec1138bad7 SHA512 d0c24c5d9f27883519e0d6edf917c6e0051b80627a320a20f6d5ee3e154f65790d1f66b5e0255aeed66874ff5826b2ab3d1237d6fd53452e7dfaf3b34b17fdfb
diff --git a/net-dns/coredns/coredns-1.9.3.ebuild b/net-dns/coredns/coredns-1.9.3.ebuild
new file mode 100644
index 000000000000..f2aae567db44
--- /dev/null
+++ b/net-dns/coredns/coredns-1.9.3.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Don't forget to update when bumping. Used in --version output
+EGIT_COMMIT="45b0a11294c59bfd806a57807aaa2a185f761cd5"
+
+inherit fcaps go-module systemd tmpfiles
+
+ARCHIVE_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="${ARCHIVE_URI} https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+
+KEYWORDS="~amd64"
+
+DESCRIPTION="A DNS server that chains middleware"
+HOMEPAGE="https://github.com/coredns/coredns"
+
+LICENSE="Apache-2.0 MIT BSD ISC MPL-2.0 BSD-2"
+SLOT="0"
+RDEPEND="acct-user/coredns
+ acct-group/coredns"
+
+# TODO: debug test failure with deps tarball
+RESTRICT+=" test"
+
+FILECAPS=(
+ -m 755 'cap_net_bind_service=+ep' usr/bin/${PN}
+)
+
+src_compile() {
+ go build -v -ldflags="-X github.com/coredns/coredns/coremain.GitCommit=${EGIT_COMMIT}" ||
+ die "go build failed"
+}
+
+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
+}
next reply other threads:[~2022-05-28 17:43 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-28 17:42 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-01 19:38 [gentoo-commits] repo/gentoo:master commit in: net-dns/coredns/ Zac Medico
2024-11-14 0:55 Zac Medico
2024-05-12 21:14 Zac Medico
2024-05-12 21:14 Zac Medico
2024-05-12 21:06 Zac Medico
2024-05-11 15:16 Arthur Zamarin
2024-03-25 4:20 Zac Medico
2024-03-25 3:41 Zac Medico
2024-03-24 23:21 Zac Medico
2024-03-15 15:37 Arthur Zamarin
2024-02-28 3:05 Zac Medico
2024-02-28 3:05 Zac Medico
2024-02-28 3:05 Zac Medico
2023-11-10 16:35 Zac Medico
2023-11-10 16:35 Zac Medico
2023-05-01 13:36 Sam James
2023-04-11 4:36 Zac Medico
2022-10-18 2:48 Zac Medico
2022-10-18 2:48 Zac Medico
2022-05-16 4:02 Zac Medico
2022-05-16 4:02 Zac Medico
2021-09-01 16:42 William Hubbs
2021-06-29 16:22 Mike Gilbert
2021-04-04 14:41 Zac Medico
2021-03-24 6:19 Zac Medico
2021-03-21 1:04 Zac Medico
2020-07-22 7:48 Joonas Niilola
2020-05-04 19:26 William Hubbs
2020-04-29 11:40 Joonas Niilola
2019-01-15 19:26 Manuel Rüger
2019-01-15 19:26 Manuel Rüger
2018-08-21 20:29 Manuel Rüger
2018-07-24 13:52 Manuel Rüger
2018-04-01 1:25 Manuel Rüger
2018-04-01 1:25 Manuel Rüger
2018-02-21 15:04 Manuel Rüger
2017-10-27 11:37 Manuel Rüger
2017-10-27 11:37 Manuel Rüger
2017-08-12 12:25 Manuel Rüger
2017-08-06 21:31 Manuel Rüger
2017-08-06 21:31 Manuel Rüger
2017-07-19 15:06 Manuel Rüger
2017-03-22 14:42 Manuel Rüger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1653759762.54c7c5e2305c7cc94a96dc921b6711b02aeb53ce.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox