summaryrefslogtreecommitdiff
path: root/net/kea/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/kea/files')
-rw-r--r--net/kea/files/patch-Makefile.am10
-rw-r--r--net/kea/files/patch-meson.build59
-rw-r--r--net/kea/files/patch-src_bin_keactrl_Makefile.am11
-rw-r--r--net/kea/files/patch-src_bin_keactrl_meson.build11
-rw-r--r--net/kea/files/patch-src_lib_asiolink_io__address.cc20
-rw-r--r--net/kea/files/patch-src_lib_asiolink_io__service.cc35
-rw-r--r--net/kea/files/patch-src_lib_asiolink_tcp__endpoint.h11
-rw-r--r--net/kea/files/patch-src_lib_asiolink_udp__endpoint.h11
-rw-r--r--net/kea/files/patch-src_lib_asiolink_unix__domain__socket.cc74
-rw-r--r--net/kea/files/patch-src_lib_dhcp_iface__mgr.cc11
-rw-r--r--net/kea/files/patch-src_lib_dhcpsrv_Makefile.am11
-rw-r--r--net/kea/files/patch-src_lib_dns_name.cc57
-rw-r--r--net/kea/files/patch-src_lib_dns_name.h11
13 files changed, 70 insertions, 262 deletions
diff --git a/net/kea/files/patch-Makefile.am b/net/kea/files/patch-Makefile.am
deleted file mode 100644
index 77fc64848c9e..000000000000
--- a/net/kea/files/patch-Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
---- Makefile.am.orig 2019-10-25 12:41:08 UTC
-+++ Makefile.am
-@@ -154,7 +154,6 @@ docs:
- # These steps are necessary during installation
- install-exec-hook:
- mkdir -p $(DESTDIR)${localstatedir}/log/
-- mkdir -p $(DESTDIR)${localstatedir}/lib/${PACKAGE_NAME}
- mkdir -p $(DESTDIR)${runstatedir}/${PACKAGE_NAME}
-
- EXTRA_DIST = tools/path_replacer.sh
diff --git a/net/kea/files/patch-meson.build b/net/kea/files/patch-meson.build
new file mode 100644
index 000000000000..f444e3bcdafe
--- /dev/null
+++ b/net/kea/files/patch-meson.build
@@ -0,0 +1,59 @@
+--- meson.build.orig 2025-06-20 16:28:47 UTC
++++ meson.build
+@@ -59,7 +59,7 @@ if PREFIX == '/usr/local'
+ # Meson is annoying with its opinionated alteration of certain paths based on whether prefix is default or not.
+ # So we revert what it does.
+ if PREFIX == '/usr/local'
+- LOCALSTATEDIR = 'var' # Otherwise, it would have been 'var/local'.
++ LOCALSTATEDIR = '/var' # Otherwise, it would have been 'var/local'.
+ endif
+
+ DATABASE_SCRIPTS_DIR = TOP_BUILD_DIR / 'src/share/database/scripts'
+@@ -69,17 +69,17 @@ KEA_LFC_INSTALLED = PREFIX / SBINDIR / 'kea-lfc'
+ KEA_ADMIN_INSTALLED = PREFIX / SBINDIR / 'kea-admin'
+ KEA_LFC_BUILT = TOP_BUILD_DIR / 'src/bin/lfc/kea-lfc'
+ KEA_LFC_INSTALLED = PREFIX / SBINDIR / 'kea-lfc'
+-LOCALSTATEDIR_INSTALLED = PREFIX / LOCALSTATEDIR
++LOCALSTATEDIR_INSTALLED = LOCALSTATEDIR
+ LIBDIR_INSTALLED = PREFIX / LIBDIR
+ LOGDIR = LOCALSTATEDIR / 'log/kea'
+-LOGDIR_INSTALLED = PREFIX / LOGDIR
++LOGDIR_INSTALLED = LOGDIR
+ if RUNSTATEDIR == ''
+ RUNSTATEDIR = LOCALSTATEDIR / 'run/kea'
+ else
+ RUNSTATEDIR = RUNSTATEDIR / 'kea'
+ endif
+-RUNSTATEDIR_INSTALLED = PREFIX / RUNSTATEDIR
+-SHAREDSTATEDIR = LOCALSTATEDIR / 'lib/kea'
++RUNSTATEDIR_INSTALLED = RUNSTATEDIR
++SHAREDSTATEDIR = LOCALSTATEDIR / 'db/kea'
+ SHAREDSTATEDIR_INSTALLED = PREFIX / SHAREDSTATEDIR
+ SYSCONFDIR_INSTALLED = PREFIX / SYSCONFDIR
+ TEST_CA_DIR = TOP_SOURCE_DIR / 'src/lib/asiolink/testutils/ca'
+@@ -88,9 +88,9 @@ if PREFIX == '/usr/local'
+ # So we revert what it does.
+ if PREFIX == '/usr/local'
+ SYSCONFDIR_INSTALLED = '/usr/local/etc'
+- LOGDIR_INSTALLED = '/usr/local/var/log/kea'
+- RUNSTATEDIR_INSTALLED = '/usr/local/var/run/kea'
+- SHAREDSTATEDIR_INSTALLED = '/usr/local/var/lib/kea'
++ LOGDIR_INSTALLED = '/var/log/kea'
++ RUNSTATEDIR_INSTALLED = '/var/run/kea'
++ SHAREDSTATEDIR_INSTALLED = '/var/db/kea'
+ endif
+
+ #### Build Options
+@@ -1108,9 +1108,9 @@ if PREFIX == '/usr/local'
+ # In case prefix is default, install to hardcoded path.
+ if PREFIX == '/usr/local'
+ install_emptydir('/usr/local/lib/kea')
+- install_emptydir('/usr/local/var/lib/kea')
+- install_emptydir('/usr/local/var/log/kea')
+- install_emptydir('/usr/local/var/run/kea')
++ install_emptydir('/var/db/kea')
++ install_emptydir('/var/log/kea')
++ install_emptydir('/var/run/kea')
+ endif
+
+ # Print the setup report.
diff --git a/net/kea/files/patch-src_bin_keactrl_Makefile.am b/net/kea/files/patch-src_bin_keactrl_Makefile.am
deleted file mode 100644
index 385488664470..000000000000
--- a/net/kea/files/patch-src_bin_keactrl_Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/bin/keactrl/Makefile.am.orig 2019-10-25 12:41:08 UTC
-+++ src/bin/keactrl/Makefile.am
-@@ -62,7 +62,7 @@ install-data-local:
- $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f.bak; \
- fi; \
- if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then \
-- ${INSTALL_DATA} $$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/; \
-+ ${INSTALL_DATA} $$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$${f}.sample; \
- fi; \
- done
-
diff --git a/net/kea/files/patch-src_bin_keactrl_meson.build b/net/kea/files/patch-src_bin_keactrl_meson.build
new file mode 100644
index 000000000000..535929a19de4
--- /dev/null
+++ b/net/kea/files/patch-src_bin_keactrl_meson.build
@@ -0,0 +1,11 @@
+--- src/bin/keactrl/meson.build.orig 2025-07-10 15:51:59 UTC
++++ src/bin/keactrl/meson.build
+@@ -14,7 +14,7 @@ keactrl_conf_data.set('PACKAGE_VERSION', PROJECT_VERSI
+ PROJECT_VERSION + f' (@SOURCE_OF_INSTALLATION@)',
+ )
+ keactrl_conf_data.set('PACKAGE_VERSION', PROJECT_VERSION)
+-keactrl_conf_data.set('runstatedir', '${prefix}/' + LOCALSTATEDIR + '/run')
++keactrl_conf_data.set('runstatedir', '/' + LOCALSTATEDIR + '/run')
+ keactrl_conf_data.set('localstatedir', '${prefix}/' + LOCALSTATEDIR)
+
+ kea_conf_data = configuration_data()
diff --git a/net/kea/files/patch-src_lib_asiolink_io__address.cc b/net/kea/files/patch-src_lib_asiolink_io__address.cc
deleted file mode 100644
index a61e7460eebd..000000000000
--- a/net/kea/files/patch-src_lib_asiolink_io__address.cc
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/lib/asiolink/io_address.cc.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/asiolink/io_address.cc
-@@ -37,7 +37,7 @@ IOAddress::IOAddress(const std::string& address_str) {
- // because we'd like to throw our own exception on failure.
- IOAddress::IOAddress(const std::string& address_str) {
- boost::system::error_code err;
-- asio_address_ = ip::address::from_string(address_str, err);
-+ asio_address_ = ip::make_address(address_str, err);
- if (err) {
- isc_throw(IOError, "Failed to convert string to address '"
- << address_str << "': " << err.message());
-@@ -116,7 +116,7 @@ IOAddress::toUint32() const {
- uint32_t
- IOAddress::toUint32() const {
- if (asio_address_.is_v4()) {
-- return (asio_address_.to_v4().to_ulong());
-+ return (asio_address_.to_v4().to_uint());
- } else {
- isc_throw(BadValue, "Can't convert " << toText()
- << " address to IPv4.");
diff --git a/net/kea/files/patch-src_lib_asiolink_io__service.cc b/net/kea/files/patch-src_lib_asiolink_io__service.cc
deleted file mode 100644
index 21e451eb0648..000000000000
--- a/net/kea/files/patch-src_lib_asiolink_io__service.cc
+++ /dev/null
@@ -1,35 +0,0 @@
---- src/lib/asiolink/io_service.cc.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/asiolink/io_service.cc
-@@ -30,7 +30,7 @@ class IOServiceImpl { (public)
- /// @brief The constructor.
- IOServiceImpl() :
- io_service_(),
-- work_(new boost::asio::io_service::work(io_service_)) {
-+ work_(boost::asio::make_work_guard(io_service_)) {
- };
-
- /// @brief The destructor.
-@@ -92,7 +92,7 @@ class IOServiceImpl { (public)
-
- /// @brief Restarts the IOService in preparation for a subsequent @ref run() invocation.
- void restart() {
-- io_service_.reset();
-+ io_service_.restart();
- }
-
- /// @brief Removes IO service work object to let it finish running
-@@ -115,12 +115,12 @@ class IOServiceImpl { (public)
- ///
- /// @param callback The callback to be run on the IO service.
- void post(const std::function<void ()>& callback) {
-- io_service_.post(callback);
-+ boost::asio::post(io_service_, callback);
- }
-
- private:
- boost::asio::io_service io_service_;
-- boost::shared_ptr<boost::asio::io_service::work> work_;
-+ boost::asio::executor_work_guard<boost::asio::io_service::executor_type> work_;
- };
-
- IOService::IOService() : io_impl_(new IOServiceImpl()) {
diff --git a/net/kea/files/patch-src_lib_asiolink_tcp__endpoint.h b/net/kea/files/patch-src_lib_asiolink_tcp__endpoint.h
deleted file mode 100644
index c2c0d7d80442..000000000000
--- a/net/kea/files/patch-src_lib_asiolink_tcp__endpoint.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/lib/asiolink/tcp_endpoint.h.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/asiolink/tcp_endpoint.h
-@@ -42,7 +42,7 @@ class TCPEndpoint : public IOEndpoint { (public)
- /// \param port The TCP port number of the endpoint.
- TCPEndpoint(const IOAddress& address, const unsigned short port) :
- asio_endpoint_placeholder_(
-- new boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(address.toText()),
-+ new boost::asio::ip::tcp::endpoint(boost::asio::ip::make_address(address.toText()),
- port)),
- asio_endpoint_(*asio_endpoint_placeholder_)
- {}
diff --git a/net/kea/files/patch-src_lib_asiolink_udp__endpoint.h b/net/kea/files/patch-src_lib_asiolink_udp__endpoint.h
deleted file mode 100644
index c528b76f5ce1..000000000000
--- a/net/kea/files/patch-src_lib_asiolink_udp__endpoint.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/lib/asiolink/udp_endpoint.h.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/asiolink/udp_endpoint.h
-@@ -42,7 +42,7 @@ class UDPEndpoint : public IOEndpoint { (public)
- /// \param port The UDP port number of the endpoint.
- UDPEndpoint(const IOAddress& address, const unsigned short port) :
- asio_endpoint_placeholder_(
-- new boost::asio::ip::udp::endpoint(boost::asio::ip::address::from_string(address.toText()),
-+ new boost::asio::ip::udp::endpoint(boost::asio::ip::make_address(address.toText()),
- port)),
- asio_endpoint_(*asio_endpoint_placeholder_)
- {}
diff --git a/net/kea/files/patch-src_lib_asiolink_unix__domain__socket.cc b/net/kea/files/patch-src_lib_asiolink_unix__domain__socket.cc
deleted file mode 100644
index b540cacb5890..000000000000
--- a/net/kea/files/patch-src_lib_asiolink_unix__domain__socket.cc
+++ /dev/null
@@ -1,74 +0,0 @@
---- src/lib/asiolink/unix_domain_socket.cc.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/asiolink/unix_domain_socket.cc
-@@ -83,7 +83,7 @@ class UnixDomainSocketImpl : public boost::enable_shar
- /// @param buffer Buffers holding the data to be sent.
- /// @param handler User supplied callback to be invoked when data have
- /// been sent or sending error is signalled.
-- void doSend(const boost::asio::const_buffers_1& buffer,
-+ void doSend(const boost::asio::const_buffer& buffer,
- const UnixDomainSocket::Handler& handler);
-
-
-@@ -103,7 +103,7 @@ class UnixDomainSocketImpl : public boost::enable_shar
- /// @param ec Error code returned as a result of sending the data.
- /// @param length Length of the data sent.
- void sendHandler(const UnixDomainSocket::Handler& remote_handler,
-- const boost::asio::const_buffers_1& buffer,
-+ const boost::asio::const_buffer& buffer,
- const boost::system::error_code& ec,
- size_t length);
-
-@@ -127,7 +127,7 @@ class UnixDomainSocketImpl : public boost::enable_shar
- /// @param buffer A buffer into which the data should be received.
- /// @param handler User supplied callback invoked when data have been
- /// received on an error is signalled.
-- void doReceive(const boost::asio::mutable_buffers_1& buffer,
-+ void doReceive(const boost::asio::mutable_buffer& buffer,
- const UnixDomainSocket::Handler& handler);
-
- /// @brief Local handler invoked as a result of asynchronous receive.
-@@ -146,7 +146,7 @@ class UnixDomainSocketImpl : public boost::enable_shar
- /// @param ec Error code returned as a result of asynchronous receive.
- /// @param length Size of the received data.
- void receiveHandler(const UnixDomainSocket::Handler& remote_handler,
-- const boost::asio::mutable_buffers_1& buffer,
-+ const boost::asio::mutable_buffer& buffer,
- const boost::system::error_code& ec,
- size_t length);
-
-@@ -197,7 +197,7 @@ void
- }
-
- void
--UnixDomainSocketImpl::doSend(const boost::asio::const_buffers_1& buffer,
-+UnixDomainSocketImpl::doSend(const boost::asio::const_buffer& buffer,
- const UnixDomainSocket::Handler& handler) {
- auto local_handler = std::bind(&UnixDomainSocketImpl::sendHandler,
- shared_from_this(),
-@@ -207,7 +207,7 @@ UnixDomainSocketImpl::sendHandler(const UnixDomainSock
-
- void
- UnixDomainSocketImpl::sendHandler(const UnixDomainSocket::Handler& remote_handler,
-- const boost::asio::const_buffers_1& buffer,
-+ const boost::asio::const_buffer& buffer,
- const boost::system::error_code& ec,
- size_t length) {
- // The asynchronous send may return EWOULDBLOCK or EAGAIN on some
-@@ -230,7 +230,7 @@ void
- }
-
- void
--UnixDomainSocketImpl::doReceive(const boost::asio::mutable_buffers_1& buffer,
-+UnixDomainSocketImpl::doReceive(const boost::asio::mutable_buffer& buffer,
- const UnixDomainSocket::Handler& handler) {
- auto local_handler = std::bind(&UnixDomainSocketImpl::receiveHandler,
- shared_from_this(),
-@@ -240,7 +240,7 @@ UnixDomainSocketImpl::receiveHandler(const UnixDomainS
-
- void
- UnixDomainSocketImpl::receiveHandler(const UnixDomainSocket::Handler& remote_handler,
-- const boost::asio::mutable_buffers_1& buffer,
-+ const boost::asio::mutable_buffer& buffer,
- const boost::system::error_code& ec,
- size_t length) {
- // The asynchronous receive may return EWOULDBLOCK or EAGAIN on some
diff --git a/net/kea/files/patch-src_lib_dhcp_iface__mgr.cc b/net/kea/files/patch-src_lib_dhcp_iface__mgr.cc
deleted file mode 100644
index e0347d0cb59e..000000000000
--- a/net/kea/files/patch-src_lib_dhcp_iface__mgr.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/lib/dhcp/iface_mgr.cc.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/dhcp/iface_mgr.cc
-@@ -1034,7 +1034,7 @@ IfaceMgr::getLocalAddress(const IOAddress& remote_addr
- }
-
- // Create socket that will be used to connect to remote endpoint.
-- boost::asio::io_service io_service;
-+ boost::asio::io_context io_service;
- boost::asio::ip::udp::socket sock(io_service);
-
- boost::system::error_code err_code;
diff --git a/net/kea/files/patch-src_lib_dhcpsrv_Makefile.am b/net/kea/files/patch-src_lib_dhcpsrv_Makefile.am
deleted file mode 100644
index fc2cb111e705..000000000000
--- a/net/kea/files/patch-src_lib_dhcpsrv_Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/lib/dhcpsrv/Makefile.am.orig 2019-10-25 12:41:08 UTC
-+++ src/lib/dhcpsrv/Makefile.am
-@@ -4,7 +4,7 @@ SUBDIRS = . testutils tests benchmarks
-
- # DATA_DIR is the directory where to put default CSV files and the DHCPv6
- # server ID file (i.e. the file where the server finds its DUID at startup).
--dhcp_data_dir = @localstatedir@/lib/@PACKAGE@
-+dhcp_data_dir = @localstatedir@/db/@PACKAGE@
- kea_lfc_location = @prefix@/sbin/kea-lfc
-
- AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib -DDHCP_DATA_DIR="\"$(dhcp_data_dir)\""
diff --git a/net/kea/files/patch-src_lib_dns_name.cc b/net/kea/files/patch-src_lib_dns_name.cc
deleted file mode 100644
index a22b2eb3998c..000000000000
--- a/net/kea/files/patch-src_lib_dns_name.cc
+++ /dev/null
@@ -1,57 +0,0 @@
---- src/lib/dns/name.cc.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/dns/name.cc
-@@ -303,7 +303,7 @@ Name::Name(const std::string &namestring, bool downcas
- // And get the output
- labelcount_ = offsets.size();
- isc_throw_assert(labelcount_ > 0 && labelcount_ <= Name::MAX_LABELS);
-- ndata_.assign(ndata.data(), ndata.size());
-+ ndata_.assign(ndata.data(), ndata.data() + ndata.size());
- length_ = ndata_.size();
- offsets_.assign(offsets.begin(), offsets.end());
- }
-@@ -336,7 +336,7 @@ Name::Name(const char* namedata, size_t data_len, cons
- // Get the output
- labelcount_ = offsets.size();
- isc_throw_assert(labelcount_ > 0 && labelcount_ <= Name::MAX_LABELS);
-- ndata_.assign(ndata.data(), ndata.size());
-+ ndata_.assign(ndata.data(), ndata.data() + ndata.size());
- length_ = ndata_.size();
- offsets_.assign(offsets.begin(), offsets.end());
-
-@@ -347,7 +347,7 @@ Name::Name(const char* namedata, size_t data_len, cons
- // Drop the last character of the data (the \0) and append a copy of
- // the origin's data
- ndata_.erase(ndata_.end() - 1);
-- ndata_.append(origin->ndata_);
-+ ndata_.insert(ndata_.end(), origin->ndata_.begin(), origin->ndata_.end());
-
- // Do a similar thing with offsets. However, we need to move them
- // so they point after the prefix we parsed before.
-@@ -582,7 +582,7 @@ Name::concatenate(const Name& suffix) const {
-
- Name retname;
- retname.ndata_.reserve(length);
-- retname.ndata_.assign(ndata_, 0, length_ - 1);
-+ retname.ndata_.assign(ndata_.data(), ndata_.data() + length_ - 1);
- retname.ndata_.insert(retname.ndata_.end(),
- suffix.ndata_.begin(), suffix.ndata_.end());
- isc_throw_assert(retname.ndata_.size() == length);
-@@ -622,7 +622,7 @@ Name::reverse() const {
- NameString::const_iterator n0 = ndata_.begin();
- retname.offsets_.push_back(0);
- while (rit1 != offsets_.rend()) {
-- retname.ndata_.append(n0 + *rit1, n0 + *rit0);
-+ retname.ndata_.insert(retname.ndata_.end(), n0 + *rit1, n0 + *rit0);
- retname.offsets_.push_back(retname.ndata_.size());
- ++rit0;
- ++rit1;
-@@ -662,7 +662,8 @@ Name::split(const unsigned int first, const unsigned i
- // original name, and append the trailing dot explicitly.
- //
- retname.ndata_.reserve(retname.offsets_.back() + 1);
-- retname.ndata_.assign(ndata_, offsets_[first], retname.offsets_.back());
-+ auto it = ndata_.data() + offsets_[first];
-+ retname.ndata_.assign(it, it + retname.offsets_.back());
- retname.ndata_.push_back(0);
-
- retname.length_ = retname.ndata_.size();
diff --git a/net/kea/files/patch-src_lib_dns_name.h b/net/kea/files/patch-src_lib_dns_name.h
deleted file mode 100644
index e83fde6a960d..000000000000
--- a/net/kea/files/patch-src_lib_dns_name.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/lib/dns/name.h.orig 2024-07-25 08:50:58 UTC
-+++ src/lib/dns/name.h
-@@ -228,7 +228,7 @@ class Name { (private)
- //@{
- private:
- /// \brief Name data string
-- typedef std::basic_string<uint8_t> NameString;
-+ typedef std::vector<uint8_t> NameString;
- /// \brief Name offsets type
- typedef std::vector<uint8_t> NameOffsets;
-