Date: Thursday, July 26, 2018 @ 16:20:52
  Author: archange
Revision: 363625

archrelease: copy trunk to community-staging-x86_64

Added:
  knot/repos/community-staging-x86_64/
  knot/repos/community-staging-x86_64/PKGBUILD
    (from rev 363624, knot/trunk/PKGBUILD)
  knot/repos/community-staging-x86_64/knot.service
    (from rev 363624, knot/trunk/knot.service)
  knot/repos/community-staging-x86_64/knot.sysusers
    (from rev 363624, knot/trunk/knot.sysusers)
  knot/repos/community-staging-x86_64/knot.tmpfiles
    (from rev 363624, knot/trunk/knot.tmpfiles)

---------------+
 PKGBUILD      |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 knot.service  |   11 ++++++++
 knot.sysusers |    1 
 knot.tmpfiles |    2 +
 4 files changed, 83 insertions(+)

Copied: knot/repos/community-staging-x86_64/PKGBUILD (from rev 363624, 
knot/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-26 16:20:52 UTC (rev 363625)
@@ -0,0 +1,69 @@
+# 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=2.6.8
+pkgrel=2
+pkgdesc="High-performance authoritative-only DNS server"
+arch=('x86_64')
+url="https://www.knot-dns.cz/";
+license=('GPL3')
+depends=('lmdb' 'liburcu' 'protobuf-c' 'fstrm' 'libedit' 'systemd' 'libcap-ng' 
'gnutls' 'libidn2')
+optdepends=('python: for pykeymgr')
+backup=('etc/knot/knot.conf')
+
+source=("https://secure.nic.cz/files/knot-dns/${pkgname}-${pkgver}.tar.xz"{,.asc}
+        "${pkgname}.service"
+        "${pkgname}.sysusers"
+        "${pkgname}.tmpfiles")
+sha256sums=('0daee8efd6262f10c54ee6f5fb99ca4d0f72e275513ec0902032af594cac1b15'
+            'SKIP'
+            '353e109d07483d029a85106021c108767aab74427abec6a66c8e3c6b39a0b41f'
+            '76c47120f91dbe467454a2f5330067d3dfd6ac5dacda5f3a095138b9a8877855'
+            '793fee121d03acce87e3b04cfa869d4eb65e6ac0ee3e1257804fa526fa60d7f5')
+validpgpkeys=('742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB') # Daniel Salzman 
<[email protected]>
+
+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
+
+    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}
+
+    cd ..
+    install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
+    install -Dm644 ${pkgname}.tmpfiles 
"${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+    install -Dm644 ${pkgname}.sysusers 
"${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
+}

Copied: knot/repos/community-staging-x86_64/knot.service (from rev 363624, 
knot/trunk/knot.service)
===================================================================
--- community-staging-x86_64/knot.service                               (rev 0)
+++ community-staging-x86_64/knot.service       2018-07-26 16:20:52 UTC (rev 
363625)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Knot DNS server
+After=syslog.target network.target
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/knotd
+ExecReload=/usr/bin/knotc reload
+
+[Install]
+WantedBy=multi-user.target

Copied: knot/repos/community-staging-x86_64/knot.sysusers (from rev 363624, 
knot/trunk/knot.sysusers)
===================================================================
--- community-staging-x86_64/knot.sysusers                              (rev 0)
+++ community-staging-x86_64/knot.sysusers      2018-07-26 16:20:52 UTC (rev 
363625)
@@ -0,0 +1 @@
+u knot - "Knot DNS Daemon User"

Copied: knot/repos/community-staging-x86_64/knot.tmpfiles (from rev 363624, 
knot/trunk/knot.tmpfiles)
===================================================================
--- community-staging-x86_64/knot.tmpfiles                              (rev 0)
+++ community-staging-x86_64/knot.tmpfiles      2018-07-26 16:20:52 UTC (rev 
363625)
@@ -0,0 +1,2 @@
+d /run/knot       0755 knot knot - -
+d /var/lib/knot   0700 knot knot - -

Reply via email to