aboutsummaryrefslogtreecommitdiffstats
path: root/testing/coredns/APKBUILD
blob: 6e7f8f7295d2ea25624359c5551846157fc9efdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Mark Pashmfouroush <mark@markpash.me>
# Maintainer: Mark Pashmfouroush <mark@markpash.me>
pkgname=coredns
pkgver=1.8.1
pkgrel=0
pkgdesc="fast and flexible DNS server"
url="https://github.com/coredns/coredns"
arch="all !mips64" # blocked by go
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
	install -d "$pkgdir"/etc/coredns
}

sha512sums="7bb18de113ac925e84b508e21027e9151504b28e3c541c4f20757296375b8ee2e6bc6d87922c1ff2f9e83ca8756521cf6d10646d0a582487ba29dac10ea8dc77  coredns-1.8.1.tar.gz
2ff396033c570f45b5880556a8724b05356276db451cf6e6cfb477f64f4b863801a891940f72c0b1c8268bae176094d02890d27146901f296e4e8d9b703934d2  coredns.confd
62b6d9c8c980990bec896b2d6e0e626b0ea4a7db80ac925772e0d6f2793a6a511165bbd76b52f38a2e8243ffc68e430b32cf33c32332b483fc528ed57e2b2927  coredns.initd"