void-packages/srcpkgs/coredns/template

30 lines
868 B
Bash

# Template file for 'coredns'
pkgname=coredns
version=1.8.6
revision=3
build_style=go
go_import_path=github.com/coredns/coredns
hostmakedepends="git make 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"
distfiles="https://github.com/coredns/coredns/archive/v${version}.tar.gz"
checksum=cbe3764afe2148b8047ea7e5cbba5108c298dee3a9a0391028e2980e35beaa2b
make_dirs="/etc/coredns 0750 root root"
_git_commit=f59c03d09c3a3a12f571ad1087b979325f3dae30
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
}