"Fossies" - the Fresh Open Source Software Archive

Member "knot-2.8.3/distro/arch/PKGBUILD" (16 Jul 2019, 1985 Bytes) of package /linux/misc/dns/knot-2.8.3.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Maintainer: Tomas Krizek <tomas.krizek@nic.cz>
    2 # Maintainer: Bruno Pagani <archange@archlinux.org>
    3 # Contributor: Ondřej Surý <ondrej@sury.org>
    4 # Contributor: Julian Brost <julian@0x4a42.net>
    5 # Contributor: Oleander Reis <oleander@oleander.cc>
    6 # Contributor: Otto Sabart <seberm[at]gmail[dot]com>
    7 
    8 pkgname=knot
    9 pkgver=__VERSION__
   10 pkgrel=1
   11 pkgdesc="High-performance authoritative-only DNS server"
   12 arch=('x86_64')
   13 url="https://www.knot-dns.cz/"
   14 license=('GPL3')
   15 depends=('fstrm'
   16          'gnutls'
   17          'libcap-ng'
   18          'libedit'
   19          'libidn2'
   20          'libmaxminddb'
   21          'liburcu'
   22          'lmdb'
   23          'protobuf-c'
   24          'systemd')
   25 backup=('etc/knot/knot.conf')
   26 source=("${pkgname}_${pkgver}.orig.tar.xz")
   27 sha256sums=('SKIP')
   28 validpgpkeys=('742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB') # Daniel Salzman <daniel.salzman@nic.cz>
   29 
   30 build() {
   31     cd ${pkgname}-${pkgver}
   32 
   33     ./configure \
   34         --prefix=/usr \
   35         --sbindir=/usr/bin \
   36         --sysconfdir=/etc \
   37         --localstatedir=/var/lib \
   38         --libexecdir=/usr/lib/knot \
   39         --with-rundir=/run/knot \
   40         --with-storage=/var/lib/knot \
   41         --enable-recvmmsg \
   42         --enable-dnstap \
   43         --enable-systemd \
   44         --enable-reuseport \
   45         --disable-silent-rules \
   46         --disable-static
   47 
   48     make
   49 }
   50 
   51 check() {
   52     cd ${pkgname}-${pkgver}
   53     make check
   54 }
   55 
   56 package() {
   57     cd ${pkgname}-${pkgver}
   58 
   59     make DESTDIR="${pkgdir}" install
   60 
   61     # Don’t keep those empty dir, manage them with systemd-tmpfiles instead
   62     rmdir "${pkgdir}"/{var/{lib/{knot/,},},run/{knot/,}}
   63 
   64     rm "${pkgdir}"/etc/knot/example.com.zone
   65     mv "${pkgdir}"/etc/knot/{knot.sample.conf,knot.conf}
   66 
   67     install -Dm644 distro/common/${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
   68     install -Dm644 distro/arch/${pkgname}.tmpfiles.arch "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
   69     install -Dm644 distro/arch/${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
   70 }