mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 12:52:23 +00:00
build: add hooks
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
75e9b2e604
commit
659611a36d
0
hooks/dhclient-script
Normal file → Executable file
0
hooks/dhclient-script
Normal file → Executable file
60
hooks/meson.build
Normal file
60
hooks/meson.build
Normal file
@ -0,0 +1,60 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
hooks_include_directories = include_directories(
|
||||
'../',
|
||||
'../src/include')
|
||||
|
||||
hooks_unmount_namespace_sources = files('unmount-namespace.c')
|
||||
|
||||
hook_programs += executable(
|
||||
'unmount-namespace',
|
||||
hooks_unmount_namespace_sources,
|
||||
include_directories : hooks_include_directories,
|
||||
install : true,
|
||||
install_dir : lxchookdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'clonehostname',
|
||||
output : 'clonehostname')
|
||||
install_data(join_paths(project_build_root, 'hooks/clonehostname'), install_dir : lxchookdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'dhclient-script',
|
||||
output : 'dhclient-script')
|
||||
install_data(join_paths(project_build_root, 'hooks/dhclient-script'), install_dir : lxchookdir)
|
||||
|
||||
dhclient_config_data = configuration_data()
|
||||
dhclient_config_data.set('LXCHOOKDIR', lxchookdir)
|
||||
dhclient_config_data.set('SYSCONFDIR', sysconfdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dhclient_config_data,
|
||||
input : 'dhclient.in',
|
||||
output : 'dhclient')
|
||||
install_data(join_paths(project_build_root, 'hooks/dhclient'), install_dir : lxchookdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'mountecryptfsroot',
|
||||
output : 'mountecryptfsroot')
|
||||
install_data(join_paths(project_build_root, 'hooks/mountecryptfsroot'), install_dir : lxchookdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'nvidia',
|
||||
output : 'nvidia')
|
||||
install_data(join_paths(project_build_root, 'hooks/nvidia'), install_dir : lxchookdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'squid-deb-proxy-client',
|
||||
output : 'squid-deb-proxy-client')
|
||||
install_data(join_paths(project_build_root, 'hooks/squid-deb-proxy-client'), install_dir : lxchookdir)
|
||||
|
||||
hook_programs = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'ubuntu-cloud-prep',
|
||||
output : 'ubuntu-cloud-prep')
|
||||
install_data(join_paths(project_build_root, 'hooks/ubuntu-cloud-prep'), install_dir : lxchookdir)
|
@ -396,6 +396,9 @@ liblxc_dep = declare_dependency(
|
||||
libselinux,
|
||||
libapparmor])
|
||||
|
||||
dummy_config_data = configuration_data()
|
||||
dummy_config_data.set_quoted('DUMMY_VARIABLE', '1')
|
||||
|
||||
cmd_programs = []
|
||||
subdir('src/lxc/cmd')
|
||||
|
||||
|
@ -152,9 +152,6 @@ cmd_lxc_monitord_sources = files('lxc_monitord.c') + cmd_common_sources
|
||||
cmd_lxc_user_nic_sources = files('lxc_user_nic.c') + cmd_common_sources
|
||||
cmd_lxc_usernsexec_sources = files('lxc_usernsexec.c') + cmd_common_sources
|
||||
|
||||
dummy_config_data = configuration_data()
|
||||
dummy_config_data.set_quoted('DUMMY_VARIABLE', '1')
|
||||
|
||||
cmd_lxc_checkconfig = configure_file(
|
||||
configuration : dummy_config_data,
|
||||
input : 'lxc-checkconfig.in',
|
||||
|
Loading…
Reference in New Issue
Block a user