aboutsummaryrefslogtreecommitdiffstats
path: root/testing/knot/APKBUILD
blob: 3a7030b555bb7f5955b5f28037d28261c5e274cf (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=knot
pkgver=1.5.3
pkgrel=0
pkgdesc="An high-performance authoritative-only DNS server"
url="https://www.knot-dns.cz"
arch="all"
license="GPL3"
options="libtool"
depends=""
depends_dev="autoconf flex bison zlib-dev openssl-dev userspace-rcu-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://secure.nic.cz/files/knot-dns/${pkgname}-${pkgver}.tar.xz
	knot.confd
	knot.initd"
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var/lib \
		--libexecdir=/usr/lib/knot \
		--with-rundir=/run/knot \
		--with-storage=/var/lib/knot \
		--enable-recvmmsg=yes \
		--disable-silent-rules

	make	
	make check
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install
	install -Dm 644 "${srcdir}/knot.confd" "${pkgdir}/etc/conf.d/knot"
	install -Dm 644 "${srcdir}/knot.initd" "${pkgdir}/etc/init.d/knot"
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="dff8d562f7ab4541c8094155170bdcce  knot-1.5.3.tar.xz
5fb8fd53d39fc6ddc1e0982c75dc2d7e  knot.confd
36263b9cdb8664cba6325c7dd85c79a0  knot.initd"
sha256sums="defc5da9920d755354f6233e099d619424371fe03e78ff7b520f2fbad0ba70ec  knot-1.5.3.tar.xz
3f539ffd67cbcda1ef9e7acb68a2a3f1c3443ad9b5af14d2f96ccd74b0cd585a  knot.confd
946df3e80355b2dd488fd072d4fe8e85e63db75d9a23c6dd3bb3fead9070532d  knot.initd"
sha512sums="c7fd280d701e529964bd00e1f4de2129d28774c76864a67a64880e29f43ac403d1a863e865adacd1db5d7a3736e3762ce8449926892c3a21a2e5d042bce682e2  knot-1.5.3.tar.xz
298bc9ae612de56f2a0b629f9241b42f7086f45964dbd7ee3ecb503ec5cc9ae83ff21fccc522bb022ffdbe16997a1b2b1273cf56cac4dfecfdb2fe26a42b9f78  knot.confd
633724a7dee5f856895a5af7e3a2f4313feca4413ad75530b825b1e94dda6542f3eb0bee1442d465edd62420aba6c341738a84c88997a131cf39ba22a7c4609f  knot.initd"