void-packages/srcpkgs/coredns/template

32 lines
951 B
Bash

# Template file for 'coredns'
pkgname=coredns
version=1.10.1
revision=2
build_style=go
go_import_path=github.com/coredns/coredns
hostmakedepends="mmark"
short_desc="CoreDNS is a DNS server that chains plugins"
maintainer="Noel Cower <ncower@nil.dev>"
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
make_dirs="/etc/coredns 0750 root root"
# Update this on each version bump.
_git_commit=055b2c31a9cf28321734e5f71613ea080d216cd3
go_ldflags="-X github.com/coredns/coredns/coremain.GitCommit=${_git_commit}"
post_build() {
make -f Makefile.doc MMARK="$(command -v mmark) -man" man/coredns.1 man/corefile.5 plugins
}
post_install() {
for man in man/*.*; do
vman "${man}"
done
vsv coredns
vinstall "${FILESDIR}/Corefile" 640 etc/coredns
}