]> git.proxmox.com Git - mirror_lxc.git/blame - hooks/meson.build
Merge pull request #4222 from gibmat/fix-ia64-build
[mirror_lxc.git] / hooks / meson.build
CommitLineData
659611a3
CB
1# SPDX-License-Identifier: LGPL-2.1-or-later
2
659611a3 3hooks_unmount_namespace_sources = files('unmount-namespace.c')
faa4ae06
SG
4if srcconf.get('IS_BIONIC') == 1 or srcconf.get('HAVE_HASMNTOPT') == 0 or srcconf.get('HAVE_SETMNTENT') == 0 or srcconf.get('HAVE_ENDMNTENT') == 0
5 hooks_unmount_namespace_sources += files(
6 '../src/include/lxcmntent.c',
7 '../src/include/lxcmntent.h')
8endif
659611a3
CB
9
10hook_programs += executable(
20b03401
SG
11 'unmount-namespace',
12 hooks_unmount_namespace_sources,
8d77f43f 13 include_directories: liblxc_includes,
20b03401 14 install: true,
31985a04 15 install_dir: join_paths(lxclibexec, 'hooks'))
659611a3
CB
16
17hook_programs = configure_file(
20b03401
SG
18 configuration: dummy_config_data,
19 input: 'clonehostname',
20 output: 'clonehostname')
21install_data(join_paths(project_build_root, 'hooks/clonehostname'), install_dir: lxchookdir)
659611a3
CB
22
23hook_programs = configure_file(
20b03401
SG
24 configuration: dummy_config_data,
25 input: 'dhclient-script',
26 output: 'dhclient-script')
27install_data(join_paths(project_build_root, 'hooks/dhclient-script'), install_dir: lxchookdir)
659611a3 28
659611a3 29hook_programs = configure_file(
eba7f7a6 30 configuration: conf,
20b03401
SG
31 input: 'dhclient.in',
32 output: 'dhclient')
33install_data(join_paths(project_build_root, 'hooks/dhclient'), install_dir: lxchookdir)
659611a3
CB
34
35hook_programs = configure_file(
20b03401
SG
36 configuration: dummy_config_data,
37 input: 'mountecryptfsroot',
38 output: 'mountecryptfsroot')
39install_data(join_paths(project_build_root, 'hooks/mountecryptfsroot'), install_dir: lxchookdir)
659611a3
CB
40
41hook_programs = configure_file(
20b03401
SG
42 configuration: dummy_config_data,
43 input: 'nvidia',
44 output: 'nvidia')
45install_data(join_paths(project_build_root, 'hooks/nvidia'), install_dir: lxchookdir)
659611a3
CB
46
47hook_programs = configure_file(
20b03401
SG
48 configuration: dummy_config_data,
49 input: 'squid-deb-proxy-client',
50 output: 'squid-deb-proxy-client')
51install_data(join_paths(project_build_root, 'hooks/squid-deb-proxy-client'), install_dir: lxchookdir)
659611a3
CB
52
53hook_programs = configure_file(
20b03401
SG
54 configuration: dummy_config_data,
55 input: 'ubuntu-cloud-prep',
56 output: 'ubuntu-cloud-prep')
57install_data(join_paths(project_build_root, 'hooks/ubuntu-cloud-prep'), install_dir: lxchookdir)