Date: Sunday, November 13, 2022 @ 13:24:28
  Author: blakkheim
Revision: 1347249

archrelease: copy trunk to community-testing-x86_64

Added:
  knot/repos/community-testing-x86_64/
  knot/repos/community-testing-x86_64/PKGBUILD
    (from rev 1347248, knot/trunk/PKGBUILD)
  knot/repos/community-testing-x86_64/keys/

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: knot/repos/community-testing-x86_64/PKGBUILD (from rev 1347248, 
knot/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-11-13 13:24:28 UTC (rev 1347249)
@@ -0,0 +1,65 @@
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Ondřej Surý <[email protected]>
+# Contributor: Julian Brost <[email protected]>
+# Contributor: Oleander Reis <[email protected]>
+# Contributor: Otto Sabart <seberm[at]gmail[dot]com>
+
+pkgname=knot
+pkgver=3.2.2
+pkgrel=2
+pkgdesc="High-performance authoritative-only DNS server"
+arch=(x86_64)
+url="https://www.knot-dns.cz/";
+license=(GPL3)
+depends=(libedit gnutls liburcu lmdb
+         libidn2 systemd libcap-ng
+         fstrm protobuf-c libmaxminddb
+         libbpf libxdp libnghttp2 libmnl)
+backup=('etc/knot/knot.conf')
+source=("https://secure.nic.cz/files/knot-dns/${pkgname}-${pkgver}.tar.xz"{,.asc}
+        "https://gitlab.nic.cz/knot/knot-dns/-/commit/8a6645dab6.patch";)
+sha256sums=('cea9c1988cdce7752f88fbe37378f65e83c4e54048978b94fb21a9c92f88788f'
+            'SKIP'
+            '04fef28d0bc8b474d48eed4071bde2f0e3e7aa7cd51cbe9fb8eafe27c3ddd96d')
+validpgpkeys=(742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB) # Daniel Salzman 
<[email protected]>
+
+build() {
+    cd ${pkgname}-${pkgver}
+    # https://bugs.archlinux.org/task/76530
+    patch -Np1 -i ../8a6645dab6.patch
+
+    ./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-dnstap \
+        --enable-quic \
+        --disable-silent-rules
+
+    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/knot.service -t 
"${pkgdir}"/usr/lib/systemd/system/
+    install -Dm644 distro/pkg/arch/knot.tmpfiles.arch 
"${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+    install -Dm644 distro/pkg/arch/knot.sysusers 
"${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
+}

Reply via email to