set -euv
+root_path=$(cd "$(dirname "${0}")/.." && pwd)
+cd "${root_path}"
+
mkdir -p @builddir@/html
(cat Doxyfile; echo PROJECT_NUMBER=@PACKAGE_VERSION@) | doxygen - > @builddir@/html/doxygen.log 2> @builddir@/html/doxygen-error.log
output: 'make-devel.sh',
configuration: make_devel_conf_data,
)
-run_target('devel', command: [CD_AND_RUN, current_source_dir, make_devel])
+run_target('devel', command: make_devel)
SYSCONFDIR = get_option('sysconfdir')
DATABASE_SCRIPTS_DIR = TOP_BUILD_DIR / 'src/share/database/scripts'
-DHCP_DATA_DIR = LOCALSTATEDIR / 'run/kea'
DEFAULT_HOOKS_PATH = PREFIX / LIBDIR / 'kea/hooks'
KEA_ADMIN_BUILT = TOP_BUILD_DIR / 'src/bin/lfc/kea-admin'
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'
LEGAL_LOG_DIR = PREFIX / LOCALSTATEDIR / 'lib/kea'
+RUNSTATEDIR = LOCALSTATEDIR / 'run/kea'
+RUNSTATEDIR_INSTALLED = PREFIX / RUNSTATEDIR
TEST_CA_DIR = TOP_SOURCE_DIR / 'src/lib/asiolink/testutils/ca'
#### Build Options
if PROJECT_VERSION.split('.')[1].to_int() % 2 == 0
package_version_type = 'stable'
else
- package_version_type = 'stable'
+ package_version_type = 'development'
endif
conf_data.set('PACKAGE_VERSION_TYPE', f'"@package_version_type@"')
'platforms.rst',
]
install_data(top_docs, install_dir: DATADIR / 'doc/kea')
-# No builtin option for 'var/run'.
-install_emptydir(LOCALSTATEDIR / 'run/kea')
+install_emptydir(RUNSTATEDIR)
# Print the setup report.
message(run_command(['cat', CONFIG_REPORT], check: true).stdout())
kea_admin_conf_data = configuration_data()
kea_admin_conf_data.set('prefix', PREFIX)
kea_admin_conf_data.set('exec_prefix', '${prefix}')
-kea_admin_conf_data.set('datarootdir', '${prefix}/@DATADIR@')
+kea_admin_conf_data.set('datarootdir', f'${prefix}/@DATADIR@')
kea_admin_conf_data.set('PACKAGE', 'kea')
kea_admin_conf_data.set('PACKAGE_NAME', 'kea')
kea_admin_conf_data.set('PACKAGE_VERSION', PROJECT_VERSION)
configuration: keactrl_conf_data,
install_dir: SBINDIR,
)
-path_replacer = TOP_BUILD_DIR / 'tools/path_replacer.sh'
configure_file(
input: 'kea-dhcp4.conf.pre',
output: 'kea-dhcp4.conf',
- command: [path_replacer, '@INPUT@', '@OUTPUT@'],
+ command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: kea_configfiles_destdir,
)
configure_file(
input: 'kea-dhcp6.conf.pre',
output: 'kea-dhcp6.conf',
- command: [path_replacer, '@INPUT@', '@OUTPUT@'],
+ command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: kea_configfiles_destdir,
)
configure_file(
input: 'kea-dhcp-ddns.conf.pre',
output: 'kea-dhcp-ddns.conf',
- command: [path_replacer, '@INPUT@', '@OUTPUT@'],
+ command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: kea_configfiles_destdir,
)
configure_file(
input: 'kea-ctrl-agent.conf.pre',
output: 'kea-ctrl-agent.conf',
- command: [path_replacer, '@INPUT@', '@OUTPUT@'],
+ command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: kea_configfiles_destdir,
)
configure_file(
input: 'kea-netconf.conf.pre',
output: 'kea-netconf.conf',
- command: [path_replacer, '@INPUT@', '@OUTPUT@'],
+ command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
install: NETCONF_DEP.found(),
install_dir: kea_configfiles_destdir,
)
'kea-dhcpsrv',
sources,
cpp_args: [
- f'-DDHCP_DATA_DIR="@PREFIX@/@DHCP_DATA_DIR@"',
+ f'-DDHCP_DATA_DIR="@RUNSTATEDIR_INSTALLED@"',
f'-DKEA_LFC_EXECUTABLE="@KEA_LFC_INSTALLED@"',
],
dependencies: [CRYPTO_DEP],
'kea-log-interprocess',
'interprocess_sync_file.cc',
'interprocess_sync_null.cc',
- cpp_args: [f'-DLOCKFILE_DIR="@PREFIX@/@LOCALSTATEDIR@/run/kea"'],
+ cpp_args: [f'-DLOCKFILE_DIR="@RUNSTATEDIR_INSTALLED@"'],
include_directories: [include_directories('.')] + INCLUDES,
install: true,
install_dir: LIBDIR,
'log_parser.cc',
'process_messages.cc',
'redact_config.cc',
- cpp_args: [f'-DPIDFILE_DIR="@PREFIX@/@LOCALSTATEDIR@/run/kea"'],
+ cpp_args: [f'-DPIDFILE_DIR="@RUNSTATEDIR_INSTALLED@"'],
dependencies: [GTEST_DEP],
include_directories: [include_directories('.')] + INCLUDES,
install: true,
cpp_args: [
f'-DTEST_DATA_BUILDDIR="@current_build_dir@"',
f'-DTEST_SCRIPT_SH="@current_build_dir@/process_test.sh"',
- f'-DPIDFILE_DIR="@PREFIX@/@LOCALSTATEDIR@/run/kea"',
+ f'-DPIDFILE_DIR="@RUNSTATEDIR_INSTALLED@"',
],
include_directories: [include_directories('.')] + INCLUDES,
link_with: [kea_util_unittests_lib, libs_testutils] + LIBS_BUILT_SO_FAR,
else
tools_conf_data.set('AWK', 'awk')
endif
-configure_file(
+PATH_REPLACER = configure_file(
input: 'path_replacer.sh.in',
output: 'path_replacer.sh',
configuration: tools_conf_data,
#!/bin/sh
-# Copyright (C) 2014-2020 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2014-2025 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this