[Buildroot] [PATCH] package/kea: new package for ISC Kea DHCP server
Joseph Zikusooka (ZIK)
josephzik at gmail.com
Wed Sep 3 11:33:07 UTC 2025
Kea is a DHCP server implementation from ISC that supports
DHCPv4, DHCPv6, and Dynamic DNS. It uses Boost, log4cplus, and
OpenSSL.
This package enables the core Kea components with support for
address assignment, prefix delegation, and DNS updates via a
separate DDNS daemon.
Signed-off-by: Joseph Zikusooka (ZIK) <zik at jambula.net>
Changes v2 -> v3:
- Bumped version to 2.6.4
- Removed PostgreSQL support temporarily - Requires wrapper
- Added KEA_USERS
- Minor cleanup and rebase
Signed-off-by: Joseph Zikusooka (ZIK) <zik at jambula.net>
---
DEVELOPERS | 3 +++
package/kea/Config.in | 34 ++++++++++++++++++++++++++++++++++
package/kea/kea.hash | 3 +++
package/kea/kea.mk | 33 +++++++++++++++++++++++++++++++++
4 files changed, 73 insertions(+)
create mode 100644 package/kea/Config.in
create mode 100644 package/kea/kea.hash
create mode 100644 package/kea/kea.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 32d7c8ac61..f6ee1fe069 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3531,3 +3531,6 @@ F: package/quazip/
F: package/shapelib/
F: package/simple-mail/
F: package/tinc/
+
+N: Joseph Zikusooka (ZIK) <zik at jambula.net>
+F: package/kea/
diff --git a/package/kea/Config.in b/package/kea/Config.in
new file mode 100644
index 0000000000..387b006014
--- /dev/null
+++ b/package/kea/Config.in
@@ -0,0 +1,34 @@
+config BR2_PACKAGE_KEA
+ bool "kea"
+ depends on BR2_INSTALL_LIBSTDCPP # boost, log4cplus
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # log4cplus
+ depends on BR2_TOOLCHAIN_HAS_THREADS # log4cplus, boost
+ depends on BR2_USE_MMU # fork()
+ depends on BR2_USE_WCHAR # log4cplus, boost
+ depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # log4cplus
+ select BR2_PACKAGE_BOOST
+ select BR2_PACKAGE_BOOST_ATOMIC
+ select BR2_PACKAGE_BOOST_DATE_TIME
+ select BR2_PACKAGE_BOOST_FILESYSTEM
+ select BR2_PACKAGE_BOOST_REGEX
+ select BR2_PACKAGE_BOOST_SYSTEM
+ select BR2_PACKAGE_BOOST_THREAD
+ select BR2_PACKAGE_OPENSSL
+ select BR2_PACKAGE_LOG4CPLUS
+ help
+ Kea is a DHCP implementation from the Internet Systems
+ Consortium, Inc., supporting fully functional DHCPv4, DHCPv6,
+ and dynamic DNS servers.
+ Both DHCP servers support address assignment, renewal,
+ rebinding, release, and server discovery. The DHCPv6 server
+ also supports prefix delegation. DNS updates are handled by a
+ standalone DDNS daemon.
+
+ https://www.isc.org/kea
+
+comment "kea needs a toolchain w/ C++, wchar, threads, gcc >= 4.8"
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
+ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
+comment "kea needs a toolchain not affected by GCC bug 64735"
+ depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
diff --git a/package/kea/kea.hash b/package/kea/kea.hash
new file mode 100644
index 0000000000..e10c516278
--- /dev/null
+++ b/package/kea/kea.hash
@@ -0,0 +1,3 @@
+# Locally computed - sha256
+sha256 6806405e4d559abc10febd2c273dc6e2bc6ac42767afa5ca20b118ffba84a671 kea-2.6.4.tar.gz
+sha256 2768ea1cbc79ac048f0c34c5cb50cf7e7d4c13a83337ebfa147a700b876431d5 COPYING
diff --git a/package/kea/kea.mk b/package/kea/kea.mk
new file mode 100644
index 0000000000..23f0792d61
--- /dev/null
+++ b/package/kea/kea.mk
@@ -0,0 +1,33 @@
+################################################################################
+#
+# Kea DHCP Server
+#
+################################################################################
+
+KEA_VERSION = 2.6.4
+KEA_SITE = https://dl.cloudsmith.io/public/isc/kea-2-6/raw/versions/$(KEA_VERSION)
+KEA_SOURCE = kea-$(KEA_VERSION).tar.gz
+KEA_LICENSE = MPL-2.0
+KEA_LICENSE_FILES = COPYING
+
+KEA_DEPENDENCIES = boost log4cplus openssl
+
+KEA_CONF_OPTS = \
+ --prefix=/usr \
+ --with-boost=$(STAGING_DIR)/usr \
+ --with-log4cplus=$(STAGING_DIR)/usr \
+ --with-openssl=$(STAGING_DIR)/usr \
+ --enable-shell
+
+ifeq ($(BR2_PACKAGE_MARIADB),y)
+KEA_CONF_OPTS += --with-mysql=$(STAGING_DIR)/usr/bin/mysql_config
+KEA_DEPENDENCIES += mariadb
+else
+KEA_CONF_OPTS += --without-mysql
+endif
+
+define KEA_USERS
+ kea -1 kea -1 * /home/kea - Kea DHCP Daemon
+endef
+
+$(eval $(autotools-package))
--
2.50.1
More information about the buildroot
mailing list