]>
Commit | Line | Data |
---|---|---|
659611a3 CB |
1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
2 | ||
3 | hooks_include_directories = include_directories( | |
20b03401 SG |
4 | '../', |
5 | '../src/include') | |
659611a3 CB |
6 | |
7 | hooks_unmount_namespace_sources = files('unmount-namespace.c') | |
8 | ||
9 | hook_programs += executable( | |
20b03401 SG |
10 | 'unmount-namespace', |
11 | hooks_unmount_namespace_sources, | |
12 | include_directories: hooks_include_directories, | |
13 | install: true, | |
31985a04 | 14 | install_dir: join_paths(lxclibexec, 'hooks')) |
659611a3 CB |
15 | |
16 | hook_programs = configure_file( | |
20b03401 SG |
17 | configuration: dummy_config_data, |
18 | input: 'clonehostname', | |
19 | output: 'clonehostname') | |
20 | install_data(join_paths(project_build_root, 'hooks/clonehostname'), install_dir: lxchookdir) | |
659611a3 CB |
21 | |
22 | hook_programs = configure_file( | |
20b03401 SG |
23 | configuration: dummy_config_data, |
24 | input: 'dhclient-script', | |
25 | output: 'dhclient-script') | |
26 | install_data(join_paths(project_build_root, 'hooks/dhclient-script'), install_dir: lxchookdir) | |
659611a3 CB |
27 | |
28 | dhclient_config_data = configuration_data() | |
7af71c94 CB |
29 | dhclient_config_data.set_quoted('LXCHOOKDIR', lxchookdir) |
30 | dhclient_config_data.set_quoted('SYSCONFDIR', sysconfdir) | |
659611a3 CB |
31 | |
32 | hook_programs = configure_file( | |
20b03401 SG |
33 | configuration: dhclient_config_data, |
34 | input: 'dhclient.in', | |
35 | output: 'dhclient') | |
36 | install_data(join_paths(project_build_root, 'hooks/dhclient'), install_dir: lxchookdir) | |
659611a3 CB |
37 | |
38 | hook_programs = configure_file( | |
20b03401 SG |
39 | configuration: dummy_config_data, |
40 | input: 'mountecryptfsroot', | |
41 | output: 'mountecryptfsroot') | |
42 | install_data(join_paths(project_build_root, 'hooks/mountecryptfsroot'), install_dir: lxchookdir) | |
659611a3 CB |
43 | |
44 | hook_programs = configure_file( | |
20b03401 SG |
45 | configuration: dummy_config_data, |
46 | input: 'nvidia', | |
47 | output: 'nvidia') | |
48 | install_data(join_paths(project_build_root, 'hooks/nvidia'), install_dir: lxchookdir) | |
659611a3 CB |
49 | |
50 | hook_programs = configure_file( | |
20b03401 SG |
51 | configuration: dummy_config_data, |
52 | input: 'squid-deb-proxy-client', | |
53 | output: 'squid-deb-proxy-client') | |
54 | install_data(join_paths(project_build_root, 'hooks/squid-deb-proxy-client'), install_dir: lxchookdir) | |
659611a3 CB |
55 | |
56 | hook_programs = configure_file( | |
20b03401 SG |
57 | configuration: dummy_config_data, |
58 | input: 'ubuntu-cloud-prep', | |
59 | output: 'ubuntu-cloud-prep') | |
60 | install_data(join_paths(project_build_root, 'hooks/ubuntu-cloud-prep'), install_dir: lxchookdir) |