2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#3729] Added share install

This commit is contained in:
Francis Dupont
2025-02-06 02:38:06 +01:00
committed by Andrei Pavel
parent 49a24f43af
commit 24db2a6d5b
4 changed files with 53 additions and 23 deletions

6
src/share/api/grabber.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
for i in [a-z]*.json
do
echo $i
done

View File

@@ -1 +1,5 @@
list = run_command('grabber.sh', check: true)
api_files = list.stdout().strip().split('\n')
DATADIR = get_option('datadir')
INSTALL_DIR = f'@DATADIR@/kea/api'
install_data(api_files, install_dir: INSTALL_DIR)

View File

@@ -1,22 +1,31 @@
mysql_script_conf_data = configuration_data()
mysql_script_conf_data.set('prefix', get_option('prefix'))
mysql_script_conf_data.set('abs_top_builddir', TOP_BUILD_DIR)
mysql_script_conf_data.set('datarootdir', '${prefix}/' + get_option('datadir'))
mysql_script_conf_data.set('PACKAGE_NAME', 'kea')
configure_file(
input: 'wipe_data.sh.in',
output: 'wipe_data.sh',
configuration: mysql_script_conf_data,
)
DATADIR = get_option('datadir')
INSTALL_DIR = f'@DATADIR@/kea/script/mysql'
configure_file(
input: 'dhcpdb_create.mysql',
output: 'dhcpdb_create.mysql',
copy: true,
install: true,
install_dir: INSTALL_DIR,
)
configure_file(
input: 'dhcpdb_drop.mysql',
output: 'dhcpdb_drop.mysql',
copy: true,
install: true,
install_dir: INSTALL_DIR,
)
mysql_script_conf_data = configuration_data()
mysql_script_conf_data.set('prefix', get_option('prefix'))
mysql_script_conf_data.set('abs_top_builddir', TOP_BUILD_DIR)
mysql_script_conf_data.set('datarootdir', '${prefix}/' + DATADIR)
mysql_script_conf_data.set('PACKAGE_NAME', 'kea')
configure_file(
input: 'wipe_data.sh.in',
output: 'wipe_data.sh',
configuration: mysql_script_conf_data,
install: true,
install_dir: INSTALL_DIR,
)
upgrade_scripts = [
'upgrade_001.0_to_002.0.sh',
@@ -63,6 +72,7 @@ foreach file : upgrade_scripts
input: file + '.in',
output: file,
configuration: mysql_script_conf_data,
install: true,
install_dir: INSTALL_DIR,
)
endforeach
# install

View File

@@ -1,22 +1,31 @@
pgsql_script_conf_data = configuration_data()
pgsql_script_conf_data.set('prefix', get_option('prefix'))
pgsql_script_conf_data.set('abs_top_builddir', TOP_BUILD_DIR)
pgsql_script_conf_data.set('datarootdir', '${prefix}/' + get_option('datadir'))
pgsql_script_conf_data.set('PACKAGE_NAME', 'kea')
configure_file(
input: 'wipe_data.sh.in',
output: 'wipe_data.sh',
configuration: pgsql_script_conf_data,
)
DATADIR = get_option('datadir')
INSTALL_DIR = f'@DATADIR@/kea/script/pgsql'
configure_file(
input: 'dhcpdb_create.pgsql',
output: 'dhcpdb_create.pgsql',
copy: true,
install: true,
install_dir: INSTALL_DIR,
)
configure_file(
input: 'dhcpdb_drop.pgsql',
output: 'dhcpdb_drop.pgsql',
copy: true,
install: true,
install_dir: INSTALL_DIR,
)
pgsql_script_conf_data = configuration_data()
pgsql_script_conf_data.set('prefix', get_option('prefix'))
pgsql_script_conf_data.set('abs_top_builddir', TOP_BUILD_DIR)
pgsql_script_conf_data.set('datarootdir', '${prefix}/' + DATADIR)
pgsql_script_conf_data.set('PACKAGE_NAME', 'kea')
configure_file(
input: 'wipe_data.sh.in',
output: 'wipe_data.sh',
configuration: pgsql_script_conf_data,
install: true,
install_dir: INSTALL_DIR,
)
upgrade_scripts = [
'upgrade_001.0_to_002.0.sh',
@@ -58,6 +67,7 @@ foreach file : upgrade_scripts
input: file + '.in',
output: file,
configuration: pgsql_script_conf_data,
install: true,
install_dir: INSTALL_DIR,
)
endforeach
# install