# Contributor: Mark Pashmfouroush # Maintainer: Mark Pashmfouroush pkgname=coredns pkgver=1.6.9 pkgrel=0 pkgdesc="CoreDNS is a fast and flexible DNS server" url="https://github.com/coredns/coredns" arch="all !mips !x86 !armv7 !armhf" license="Apache-2.0" options="net" makedepends="go" install="$pkgname.pre-install" subpackages="$pkgname-openrc" source=" $pkgname-$pkgver.tar.gz::https://github.com/coredns/coredns/archive/v$pkgver.tar.gz coredns.confd coredns.initd " build() { make } check() { cd "$builddir"/request; go test ./... cd "$builddir"/core; go test ./... cd "$builddir"/coremain; go test ./... cd "$builddir"/plugin; go test ./... } package() { install -Dm644 "$srcdir"/coredns.confd "$pkgdir"/etc/conf.d/coredns install -Dm755 "$srcdir"/coredns.initd "$pkgdir"/etc/init.d/coredns install -Dm755 "$builddir"/coredns "$pkgdir"/usr/bin/coredns setcap cap_net_bind_service=+ep "$pkgdir"/usr/bin/coredns install -d "$pkgdir"/etc/coredns } sha512sums="8b3fbdb03682091d38ebf70435c2e41637ea8f3147911ca1c0d675139c47d9fd727ec0ddf62d213f5e99738030be08ba8844a784d027aa90afb28027a38336e2 coredns-1.6.9.tar.gz 2ff396033c570f45b5880556a8724b05356276db451cf6e6cfb477f64f4b863801a891940f72c0b1c8268bae176094d02890d27146901f296e4e8d9b703934d2 coredns.confd 62b6d9c8c980990bec896b2d6e0e626b0ea4a7db80ac925772e0d6f2793a6a511165bbd76b52f38a2e8243ffc68e430b32cf33c32332b483fc528ed57e2b2927 coredns.initd"