From f449f278dd3c70e479a035f50a9bb817a9b433ba Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:24:08 +0200 Subject: Adding upstream version 3.2.6. Signed-off-by: Daniel Baumann --- distro/pkg/arch/PKGBUILD | 66 ++++++++++++++++++++++++++++++++++++++ distro/pkg/arch/knot.sysusers | 1 + distro/pkg/arch/knot.tmpfiles.arch | 2 ++ 3 files changed, 69 insertions(+) create mode 100644 distro/pkg/arch/PKGBUILD create mode 100644 distro/pkg/arch/knot.sysusers create mode 100644 distro/pkg/arch/knot.tmpfiles.arch (limited to 'distro/pkg/arch') diff --git a/distro/pkg/arch/PKGBUILD b/distro/pkg/arch/PKGBUILD new file mode 100644 index 0000000..16f1259 --- /dev/null +++ b/distro/pkg/arch/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Tomas Krizek +# Maintainer: Bruno Pagani +# Contributor: Ondřej Surý +# Contributor: Julian Brost +# Contributor: Oleander Reis +# Contributor: Otto Sabart + +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}.tar.xz") +sha256sums=('SKIP') +validpgpkeys=('742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB') # Daniel Salzman + +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 + + 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/pkg/arch/${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf +} diff --git a/distro/pkg/arch/knot.sysusers b/distro/pkg/arch/knot.sysusers new file mode 100644 index 0000000..735db76 --- /dev/null +++ b/distro/pkg/arch/knot.sysusers @@ -0,0 +1 @@ +u knot - "Knot DNS Daemon User" diff --git a/distro/pkg/arch/knot.tmpfiles.arch b/distro/pkg/arch/knot.tmpfiles.arch new file mode 100644 index 0000000..b20df6a --- /dev/null +++ b/distro/pkg/arch/knot.tmpfiles.arch @@ -0,0 +1,2 @@ +d /run/knot 0755 knot knot - - +d /var/lib/knot 0700 knot knot - - -- cgit v1.2.3