summaryrefslogtreecommitdiff
path: root/pcr/knot/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/knot/PKGBUILD')
-rw-r--r--pcr/knot/PKGBUILD57
1 files changed, 36 insertions, 21 deletions
diff --git a/pcr/knot/PKGBUILD b/pcr/knot/PKGBUILD
index 546d3cdd8..831d6c2d3 100644
--- a/pcr/knot/PKGBUILD
+++ b/pcr/knot/PKGBUILD
@@ -1,31 +1,46 @@
-# Contributor (Arch): Otto Sabart <seberm[at]gmail[dot]com>
-# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.io>
+# Maintainer: Ondřej Surý <ondrej@sury.
+# Contributor: Oleander Reis <oleander@oleander.cc>
+# Contributor: Otto Sabart <seberm[at]gmail[dot]com>
pkgname=knot
-pkgver=1.1.0
+pkgver=1.4.6
pkgrel=1
-pkgdesc="high-performance authoritative-only DNS server"
-url="http://www.knot-dns.cz/setlang/?language=en"
+pkgdesc='high-performance authoritative-only DNS server'
+url='https://www.knot-dns.cz/'
arch=('i686' 'x86_64')
-license=('GPLv3')
-depends=('liburcu>=0.5.4' 'flex>=2.5.3' 'libtool' 'bison>=2.3')
-optdepends=('libcap')
-makedepends=('autoconf>=2.65')
-conflicts=()
-replaces=()
-backup=()
-#install='foo.install'
-source=("http://public.nic.cz/files/knot-dns/${pkgname}-${pkgver}.tar.gz")
-
-md5sums=('b2d4a53d8e98565ebb389531c2b66690')
+license=('GPL3')
+install=install
+depends=('liburcu>=0.5.4' 'openssl>=1.0.0' 'zlib')
+makedepends=('autoconf>=2.65' 'libtool' 'flex>=2.5.3' 'bison>=2.3')
+source=("https://secure.nic.cz/files/knot-dns/${pkgname}-${pkgver}.tar.xz"
+ 'knot.service')
+sha256sums=('55d292467f5c622384ee25e20de094dc6dba7638f886b38dfba345ac1e6caa13'
+ 'caa870a9c93c57c6311f9e8fb5685a9179bb9839a27a30cc1712c91df0d15090')
build() {
-
cd "${srcdir}/${pkgname}-${pkgver}"
- #autoreconf -if
- ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc/knot
+ ./configure \
+ --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
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
- make && make install DESTDIR="${pkgdir}" || return 1
- #ldconfig
+ make DESTDIR="${pkgdir}/" install
+ install -Dm 644 "${srcdir}/knot.service" "${pkgdir}/usr/lib/systemd/system/knot.service"
}