Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions srcpkgs/coredns/template
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
# Template file for 'coredns'
pkgname=coredns
version=1.10.1
revision=4
version=1.14.2
revision=1
build_style=go
go_import_path=github.com/coredns/coredns
go_build_tags=grpcnotrace
hostmakedepends="mmark"
short_desc="CoreDNS is a DNS server that chains plugins"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://coredns.io"
changelog="https://github.com/coredns/coredns/releases"
distfiles="https://github.com/coredns/coredns/archive/v${version}.tar.gz"
checksum=f47186452e5f2925e2c71135669afd9e03b9b55831417d33d612ef2fa69924a7
checksum=ab933ed4f04de3cf377d0ecc8399fa1a6613cecdd7a1c40d90eb0a7471463fdb
make_dirs="/etc/coredns 0750 root root"
conf_files="/etc/coredns/Corefile"

# Update this on each version bump.
_git_commit=055b2c31a9cf28321734e5f71613ea080d216cd3
_git_commit=dd1df4f5db93767a44e37638df44969503b320d2
go_ldflags="-X github.com/coredns/coredns/coremain.GitCommit=${_git_commit}"

do_check() {
local ignore="github.com/coredns/coredns/test$"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
ignore="${ignore}|github.com/coredns/coredns/plugin/trace$"
fi
go test -p "$XBPS_MAKEJOBS" -tags "${go_build_tags}" -ldflags "${go_ldflags}" \
$(go list ./... | grep -vE "$ignore")
}

post_build() {
make -f Makefile.doc MMARK="$(command -v mmark) -man" man/coredns.1 man/corefile.5 plugins
}
Expand Down