From bd4c4c57884f910759693cc1957fa3ca133731d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Fri, 6 Jun 2014 16:24:11 -0300 Subject: knot: authoritative dns server --- pcr/knot/PKGBUILD | 57 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 21 deletions(-) (limited to 'pcr/knot/PKGBUILD') 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 -# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières +# Maintainer: Ondřej Surý +# Contributor: Otto Sabart 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" } -- cgit v1.2.3-2-g168b