blob: 10090ea1baaf0f77c777dde395f280d4c0074895 (
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
|
# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
# Contributor: Ondřej Surý <ondrej@sury.
# Contributor: Oleander Reis <oleander@oleander.cc>
# Contributor: Otto Sabart <seberm[at]gmail[dot]com>
pkgname=knot
pkgver=2.1.1
pkgrel=1
pkgdesc='high-performance authoritative-only DNS server'
url='https://www.knot-dns.cz/'
arch=('i686' 'x86_64')
license=('GPL3')
install=install
depends=('liburcu' 'openssl>=1.0.0' 'zlib' 'jansson')
makedepends=('autoconf>=2.65' 'libtool' 'flex>=2.5.3' 'bison>=2.3' 'systemd')
source=("https://secure.nic.cz/files/knot-dns/${pkgname}-${pkgver}.tar.xz"{,.asc}
'knot.service')
validpgpkeys=('DEF35D16E5AE59D820BDF780ACE24DA9EE37A832')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# export systemd_CFLAGS="-I/usr/include" \
# systemd_LIBS="-L/usr/lib -lsystemd"
./configure \
--prefix /usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--libexecdir=/usr/lib/knot \
--sbindir=/usr/bin \
--with-rundir=/run/knot \
--with-storage=/var/lib/knot \
--enable-recvmmsg=yes \
--enable-systemd=yes \
--disable-silent-rules
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" install
install -Dm 644 "${srcdir}/knot.service" "${pkgdir}/usr/lib/systemd/system/knot.service"
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
sha512sums=('303440fe9d7da86daecc484be6fe0956b6ebd3c55824018c30541767a24b856c8ef5a34a378d38cfaffafa1df7150cea77b2cb28b5bf1b7f97abf28c6d71caa7'
'SKIP'
'51ecaa53fd4d5ccf86d6e6eb4795d9349386149ed9bf667934b6162e3c1cdee391a630370bd2ef7f558daac35b120a75067cbfa67c7142fa23c6d88a4182aa9a')
sha512sums=('9b69cc207f43f5330cbf0b30aba8c03cacb34b065809b8a92c053332dcd5e00a228ec7edf3bd760c9251306b982f94a4196dd04dfdf4906e50ff77218dd10a86'
'SKIP'
'51ecaa53fd4d5ccf86d6e6eb4795d9349386149ed9bf667934b6162e3c1cdee391a630370bd2ef7f558daac35b120a75067cbfa67c7142fa23c6d88a4182aa9a')
|