[arch-commits] Commit in kea/repos (10 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jun 8 18:20:11 UTC 2021
Date: Tuesday, June 8, 2021 @ 18:20:11
Author: foutrelis
Revision: 959843
archrelease: copy trunk to community-staging-x86_64
Added:
kea/repos/community-staging-x86_64/
kea/repos/community-staging-x86_64/PKGBUILD
(from rev 959842, kea/trunk/PKGBUILD)
kea/repos/community-staging-x86_64/cpp11.patch
(from rev 959842, kea/trunk/cpp11.patch)
kea/repos/community-staging-x86_64/kea-ctrl-agent.service
(from rev 959842, kea/trunk/kea-ctrl-agent.service)
kea/repos/community-staging-x86_64/kea-dhcp-ddns.service
(from rev 959842, kea/trunk/kea-dhcp-ddns.service)
kea/repos/community-staging-x86_64/kea-dhcp4.service
(from rev 959842, kea/trunk/kea-dhcp4.service)
kea/repos/community-staging-x86_64/kea-dhcp6.service
(from rev 959842, kea/trunk/kea-dhcp6.service)
kea/repos/community-staging-x86_64/kea.install
(from rev 959842, kea/trunk/kea.install)
kea/repos/community-staging-x86_64/numeric_limits.patch
(from rev 959842, kea/trunk/numeric_limits.patch)
kea/repos/community-staging-x86_64/tmpfiles-kea.conf
(from rev 959842, kea/trunk/tmpfiles-kea.conf)
------------------------+
PKGBUILD | 105 +++++++++++++++++++++++++++++++++++++++++++++++
cpp11.patch | 26 +++++++++++
kea-ctrl-agent.service | 14 ++++++
kea-dhcp-ddns.service | 14 ++++++
kea-dhcp4.service | 14 ++++++
kea-dhcp6.service | 14 ++++++
kea.install | 17 +++++++
numeric_limits.patch | 39 +++++++++++++++++
tmpfiles-kea.conf | 2
9 files changed, 245 insertions(+)
Copied: kea/repos/community-staging-x86_64/PKGBUILD (from rev 959842, kea/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,105 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+# Contributor: nfnty
+pkgname='kea'
+pkgver=1.9.8
+_upstreamver=1.9.7
+pkgrel=2
+pkgdesc='High-performance, extensible DHCP server engine from ISC, supporting both DHCPv4 and DHCPv6'
+arch=('x86_64')
+url='https://kea.isc.org'
+license=('MPL2')
+depends=('botan' 'boost-libs' 'log4cplus' 'mariadb-libs' 'openssl' 'postgresql-libs')
+makedepends=(
+ 'boost'
+ 'postgresql' # Needed for some headers
+ 'python' # kea-shell
+)
+optdepends=('mariadb: lease information database'
+ 'postgresql: lease information database'
+ 'python: to use kea-shell'
+ 'kea-devel-docs: developer documentation')
+# Checks are disabled for now
+# checkdepends=('gtest' 'postgresql' 'mariadb' 'python' 'procps-ng') # procps-ng needed for 'pgrep'
+backup=(
+ # New config files as of Kea 1.3
+ 'etc/kea/kea-dhcp4.conf'
+ 'etc/kea/kea-dhcp6.conf'
+ 'etc/kea/kea-dhcp-ddns.conf'
+ 'etc/kea/keactrl.conf'
+ 'etc/kea/kea-ctrl-agent.conf'
+ 'etc/kea/kea-netconf.conf'
+)
+checkdepends=('gtest' 'procps-ng')
+install=kea.install
+
+source=(
+ "https://ftp.isc.org/isc/${pkgname}/${_upstreamver}/${pkgname}-${_upstreamver}.tar.gz"{,.asc}
+ 'tmpfiles-kea.conf'
+ 'kea-dhcp4.service'
+ 'kea-dhcp6.service'
+ 'kea-dhcp-ddns.service'
+ 'kea-ctrl-agent.service'
+ 'kea.install'
+ 'cpp11.patch'
+ 'numeric_limits.patch'
+)
+sha512sums=('ed23b112136ff3c29015a6c587892cc742d75e2c86bc14a500603f9226f74a7178260edc502d1ede7f53684a30dabc1990269e6e35161ac14799ee8d6464cfaf'
+ 'SKIP'
+ 'b83479f0b90caf4022b1c858f99d8310848a90b0cc45aaa222cb2bf08b2a97312816b8f64c8c0232b612795bc7a0bbe5b05dbc508b2f1214c1ea88dc84200a2d'
+ '1b62dace9f9a955b21c5dd5b5466fb3a4f1d8057ad2a30ea89e222a769dc721ad2fe4913c41ec407e018b1b38ddde757e9b7b8fc12d4763ddde077a0abb0c971'
+ '8f0e8d059338c415ae322e971e243b259d9b2ef7d37b6be57b409bf5f0f3392e519c9bb94c5b548021d000b944a5da82096608cd9ff3ee58061059ad519b0068'
+ '1da9f02d5f6b3e2f9f2f896b1085c141b8739bd6614706fe0544a31b278f4d3c6616cb1ab3915c650262ea3592df86e95b53ce944ade2c80bb72fcae796f8fd4'
+ 'db329fd83e458e4a77f6df8569074088bed152ffc1a188059d868d7178a6d3530efe368ce870a2e0be894f87fa0e5ba43562bdc3ad6372ddfcfedae37c90f491'
+ '758371f20a977f8e42e9d43d2d065c6aa294866070e54868dc329c0875b2eeafa05dcdf93590d5b429e262e2350a42c7616a3bc2e6f3994f53886870f4910251'
+ 'd3bfa20292e8f5de5f643e67d8de9c5b4ccd7068a7bcd5f9cbe6b42f050dbfb5bde252cd8a57a2b6da94915d45ba29c23331ea57ae78a72fed10946d9c34072f'
+ 'eb5421797b35c9ee869fca9b7d549b1d60f0713f5598067253974bac826a32b8eaa99379f6aadfed3e5586417b3a4a9e0f52b37db2cbcc9ffdf5cb60b9ed8502')
+validpgpkeys=('BE0E9748B718253A28BB89FFF1B11BF05CF02E57' # Internet Systems Consortium, Inc. (Signing key, 2017-2018) <codesign at isc.org>
+ 'AE3FAC796711EC59FC007AA474BB6B9A4CBB3D38' # Internet Systems Consortium, Inc. (Signing key, 2019-2020) <codesign at isc.org>
+ '7E1C91AC8030A5A59D1EFAB9750F3C87723E4012') # Internet Systems Consortium, Inc. (Signing key, 2021-2022) <codesign at isc.org>
+prepare() {
+ cd "${srcdir}/${pkgname}-${_upstreamver}"
+ patch -Np1 -i "${srcdir}/cpp11.patch"
+ patch -Np1 -i "${srcdir}/numeric_limits.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${_upstreamver}"
+ autoreconf --install
+ ./configure \
+ --prefix='/usr' \
+ --sbindir='/usr/bin' \
+ --libexecdir='/usr/bin' \
+ --sysconfdir='/etc' \
+ --localstatedir='/var' \
+ --with-openssl \
+ --with-gtest \
+ --with-mysql \
+ --with-pgsql \
+ --with-log4cplus \
+ --enable-perfdhcp \
+ --enable-generate-messages \
+ --enable-generate-parser \
+ --enable-shell
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${_upstreamver}"
+ # Disable for now, some tests fail (for instance dhcp-ddns.sigterm_test)
+ # make check
+}
+
+package() {
+ cd "${srcdir}/kea-${_upstreamver}"
+ make DESTDIR="${pkgdir}" install
+ # Handle /var/run -> /run symlink
+ rmdir "${pkgdir}"/var/run/kea
+ rmdir "${pkgdir}"/var/run
+ install -Dm644 "${srcdir}"/tmpfiles-kea.conf "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+ # Systemd service files
+ install -Dm644 "${srcdir}"/kea-dhcp4.service "${pkgdir}"/usr/lib/systemd/system/kea-dhcp4.service
+ install -Dm644 "${srcdir}"/kea-dhcp6.service "${pkgdir}"/usr/lib/systemd/system/kea-dhcp6.service
+ install -Dm644 "${srcdir}"/kea-dhcp-ddns.service "${pkgdir}"/usr/lib/systemd/system/kea-dhcp-ddns.service
+ install -Dm644 "${srcdir}"/kea-ctrl-agent.service "${pkgdir}"/usr/lib/systemd/system/kea-ctrl-agent.service
+}
Copied: kea/repos/community-staging-x86_64/cpp11.patch (from rev 959842, kea/trunk/cpp11.patch)
===================================================================
--- community-staging-x86_64/cpp11.patch (rev 0)
+++ community-staging-x86_64/cpp11.patch 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,26 @@
+From d505f7a7d6fac1c00a4467dfcf1e84f2db508bc6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Fri, 26 Feb 2021 23:14:20 -0800
+Subject: [PATCH] ax_cpp11.m4: Include <memory> header
+
+This is needed for std::shared_ptr
+GCC-11 throws errors if header is not included
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ m4macros/ax_cpp11.m4 | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/m4macros/ax_cpp11.m4 b/m4macros/ax_cpp11.m4
+index f9042fa6d5..99457f9491 100644
+--- a/m4macros/ax_cpp11.m4
++++ b/m4macros/ax_cpp11.m4
+@@ -182,6 +182,7 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [#include <thread>
++ #include <memory>
+ std::shared_ptr<std::thread> th;],
+ [th.reset(new std::thread([[]]() { return; }));
+ th->join();])],
Copied: kea/repos/community-staging-x86_64/kea-ctrl-agent.service (from rev 959842, kea/trunk/kea-ctrl-agent.service)
===================================================================
--- community-staging-x86_64/kea-ctrl-agent.service (rev 0)
+++ community-staging-x86_64/kea-ctrl-agent.service 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,14 @@
+[Unit]
+Description=ISC Kea control agent daemon
+Documentation=man:kea-ctrl-agent(8)
+Wants=network-online.target
+After=network-online.target
+After=time-sync.target
+
+[Service]
+Environment="KEA_PIDFILE_DIR=/run"
+Environment="KEA_LOCKFILE_DIR=/run/lock/kea"
+ExecStart=/usr/bin/kea-ctrl-agent -c /etc/kea/kea-ctrl-agent.conf
+
+[Install]
+WantedBy=multi-user.target
Copied: kea/repos/community-staging-x86_64/kea-dhcp-ddns.service (from rev 959842, kea/trunk/kea-dhcp-ddns.service)
===================================================================
--- community-staging-x86_64/kea-dhcp-ddns.service (rev 0)
+++ community-staging-x86_64/kea-dhcp-ddns.service 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,14 @@
+[Unit]
+Description=ISC Kea dynamic DNS daemon
+Documentation=man:kea-dhcp-ddns(8)
+Wants=network-online.target
+After=network-online.target
+After=time-sync.target
+
+[Service]
+Environment="KEA_PIDFILE_DIR=/run"
+Environment="KEA_LOCKFILE_DIR=/run/lock/kea"
+ExecStart=/usr/bin/kea-dhcp-ddns -c /etc/kea/kea-dhcp-ddns.conf
+
+[Install]
+WantedBy=multi-user.target
Copied: kea/repos/community-staging-x86_64/kea-dhcp4.service (from rev 959842, kea/trunk/kea-dhcp4.service)
===================================================================
--- community-staging-x86_64/kea-dhcp4.service (rev 0)
+++ community-staging-x86_64/kea-dhcp4.service 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,14 @@
+[Unit]
+Description=ISC Kea IPv4 DHCP daemon
+Documentation=man:kea-dhcp4(8)
+Wants=network-online.target
+After=network-online.target
+After=time-sync.target
+
+[Service]
+Environment="KEA_PIDFILE_DIR=/run"
+Environment="KEA_LOCKFILE_DIR=/run/lock/kea"
+ExecStart=/usr/bin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf
+
+[Install]
+WantedBy=multi-user.target
Copied: kea/repos/community-staging-x86_64/kea-dhcp6.service (from rev 959842, kea/trunk/kea-dhcp6.service)
===================================================================
--- community-staging-x86_64/kea-dhcp6.service (rev 0)
+++ community-staging-x86_64/kea-dhcp6.service 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,14 @@
+[Unit]
+Description=ISC Kea IPv6 DHCP daemon
+Documentation=man:kea-dhcp6(8)
+Wants=network-online.target
+After=network-online.target
+After=time-sync.target
+
+[Service]
+Environment="KEA_PIDFILE_DIR=/run"
+Environment="KEA_LOCKFILE_DIR=/run/lock/kea"
+ExecStart=/usr/bin/kea-dhcp6 -c /etc/kea/kea-dhcp6.conf
+
+[Install]
+WantedBy=multi-user.target
Copied: kea/repos/community-staging-x86_64/kea.install (from rev 959842, kea/trunk/kea.install)
===================================================================
--- community-staging-x86_64/kea.install (rev 0)
+++ community-staging-x86_64/kea.install 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,17 @@
+post_install () {
+ echo '## WARNING!##'
+ echo 'Upgrading from Kea version <1.6 to version >= 1.6 requires special attention'
+ echo 'Please refer to the following web page for details:'
+ echo '[Upgrading to Kea 1.6](https://kb.isc.org/docs/en/upgrading-to-kea-16)'
+ echo 'Notable changes include:'
+ echo ' - Files in /var/kea have moved to (/var)/run/kea'
+ echo ' - State Info: now in /usr/lib/kea'
+ echo ' - Hooks: /usr/lib/hooks has moved to /usr/lib/kea/hooks'
+ echo ' - Admin commands lease-{init,version,upgrade} have been renamed'
+ echo ' to db-{init,version,upgrade}'
+ echo ' - Logger configuration changed scope thus a manual configuration'
+ echo ' file intervention is needed)'
+}
+post_upgrade () {
+ post_install $*
+}
Copied: kea/repos/community-staging-x86_64/numeric_limits.patch (from rev 959842, kea/trunk/numeric_limits.patch)
===================================================================
--- community-staging-x86_64/numeric_limits.patch (rev 0)
+++ community-staging-x86_64/numeric_limits.patch 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,39 @@
+From 38f6f6272f1060036a7bae5d85d1ff7f080628fd Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Fri, 26 Feb 2021 23:31:15 -0800
+Subject: [PATCH] include limits.h
+
+Fixes build with gcc11
+backend_selector.cc:61:35: error: 'numeric_limits' is not a member of 'std'
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ src/lib/database/backend_selector.cc | 2 +-
+ src/lib/dhcpsrv/subnet_id.h | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/lib/database/backend_selector.cc b/src/lib/database/backend_selector.cc
+index 0f61fe8333..9073ad5899 100644
+--- a/src/lib/database/backend_selector.cc
++++ b/src/lib/database/backend_selector.cc
+@@ -8,7 +8,7 @@
+
+ #include <database/backend_selector.h>
+ #include <exceptions/exceptions.h>
+-#include <climits>
++#include <limits>
+ #include <sstream>
+
+ using namespace isc::data;
+diff --git a/src/lib/dhcpsrv/subnet_id.h b/src/lib/dhcpsrv/subnet_id.h
+index 77c2adf71d..b5b869dcb8 100644
+--- a/src/lib/dhcpsrv/subnet_id.h
++++ b/src/lib/dhcpsrv/subnet_id.h
+@@ -10,6 +10,7 @@
+ #include <exceptions/exceptions.h>
+ #include <stdint.h>
+ #include <typeinfo>
++#include <limits>
+
+ namespace isc {
+ namespace dhcp {
Copied: kea/repos/community-staging-x86_64/tmpfiles-kea.conf (from rev 959842, kea/trunk/tmpfiles-kea.conf)
===================================================================
--- community-staging-x86_64/tmpfiles-kea.conf (rev 0)
+++ community-staging-x86_64/tmpfiles-kea.conf 2021-06-08 18:20:11 UTC (rev 959843)
@@ -0,0 +1,2 @@
+d /run/kea 0755 root root -
+d /run/lock/kea 0755 root root -
More information about the arch-commits
mailing list