New package: coredns-1.7.0

This commit is contained in:
Noel Cower 2020-07-14 17:27:36 -07:00 committed by Michael Aldridge
parent a4fd3434ed
commit 0a4b7939dd
4 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,4 @@
. {
errors
forward . /etc/resolv.conf
}

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec vlogger -t coredns

View file

@ -0,0 +1,9 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
COREFILE="${COREFILE:-/etc/coredns/Corefile}"
DNS_PORT="${DNS_PORT:-53}"
exec 2>&1
exec coredns -conf "${COREFILE:-/etc/coredns/Corefile}" -dns.port "${DNS_PORT:-53}"

29
srcpkgs/coredns/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'coredns'
pkgname=coredns
version=1.7.0
revision=1
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=7e436e9d0c0b84af863685e05d701b84247bb0f12b6dbf05ea87e165c1398b2b
make_dirs="/etc/coredns 0750 root root"
_git_commit=f59c03d09c3a3a12f571ad1087b979325f3dae30
go_ldflags+=" -s -w -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
}