diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
commit | b88bb292821fd7742604ec4e280acebd9a049f62 (patch) | |
tree | 625e4e19e6619f7481e5a8103f876520950769f6 /distro/arch/PKGBUILD | |
parent | Initial commit. (diff) | |
download | knot-b88bb292821fd7742604ec4e280acebd9a049f62.tar.xz knot-b88bb292821fd7742604ec4e280acebd9a049f62.zip |
Adding upstream version 3.0.5.upstream/3.0.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'distro/arch/PKGBUILD')
-rw-r--r-- | distro/arch/PKGBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/distro/arch/PKGBUILD b/distro/arch/PKGBUILD new file mode 100644 index 0000000..eccde30 --- /dev/null +++ b/distro/arch/PKGBUILD @@ -0,0 +1,70 @@ +# Maintainer: Tomas Krizek <tomas.krizek@nic.cz> +# Maintainer: Bruno Pagani <archange@archlinux.org> +# Contributor: Ondřej Surý <ondrej@sury.org> +# Contributor: Julian Brost <julian@0x4a42.net> +# Contributor: Oleander Reis <oleander@oleander.cc> +# Contributor: Otto Sabart <seberm[at]gmail[dot]com> + +pkgname=knot +pkgver=__VERSION__ +pkgrel=1 +pkgdesc="High-performance authoritative-only DNS server" +arch=('x86_64') +url="https://www.knot-dns.cz/" +license=('GPL3') +depends=('fstrm' + 'gnutls' + 'libcap-ng' + 'libedit' + 'libidn2' + 'libmaxminddb' + 'liburcu' + 'lmdb' + 'protobuf-c' + 'systemd') +backup=('etc/knot/knot.conf') +source=("${pkgname}_${pkgver}.orig.tar.xz") +sha256sums=('SKIP') +validpgpkeys=('742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB') # Daniel Salzman <daniel.salzman@nic.cz> + +build() { + cd ${pkgname}-${pkgver} + + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --libexecdir=/usr/lib/knot \ + --with-rundir=/run/knot \ + --with-storage=/var/lib/knot \ + --enable-recvmmsg \ + --enable-dnstap \ + --enable-systemd \ + --enable-reuseport \ + --disable-silent-rules \ + --disable-static + + make +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR="${pkgdir}" install + + # Don’t keep those empty dir, manage them with systemd-tmpfiles instead + rmdir "${pkgdir}"/{var/{lib/{knot/,},},run/{knot/,}} + + rm "${pkgdir}"/etc/knot/example.com.zone + mv "${pkgdir}"/etc/knot/{knot.sample.conf,knot.conf} + + install -Dm644 distro/common/${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ + install -Dm644 distro/arch/${pkgname}.tmpfiles.arch "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf + install -Dm644 distro/arch/${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf +} |