]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson: Add common configs
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 12 May 2022 14:16:36 +0000 (16:16 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 12 May 2022 20:24:01 +0000 (22:24 +0200)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
config/templates/common.conf.d/meson.build [new file with mode: 0644]
config/templates/meson.build [new file with mode: 0644]
meson.build

diff --git a/config/templates/common.conf.d/meson.build b/config/templates/common.conf.d/meson.build
new file mode 100644 (file)
index 0000000..32acfc4
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+lxc_conf_common_readme = configure_file(
+    configuration: dummy_config_data,
+    input: 'README',
+    output: 'README',
+    install: true,
+    install_dir: lxctemplateconfcommondir)
diff --git a/config/templates/meson.build b/config/templates/meson.build
new file mode 100644 (file)
index 0000000..bed1cd4
--- /dev/null
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+lxc_conf_common_seccomp = configure_file(
+    configuration: conf,
+    input: 'common.seccomp',
+    output: 'common.seccomp',
+    install: true,
+    install_dir: lxctemplateconfdir)
+
+lxc_conf_common_main = configure_file(
+    configuration: conf,
+    input: 'common.conf.in',
+    output: 'common.conf',
+    install: true,
+    install_dir: lxctemplateconfdir)
+
+lxc_conf_common_nesting = configure_file(
+    configuration: conf,
+    input: 'nesting.conf.in',
+    output: 'nesting.conf',
+    install: true,
+    install_dir: lxctemplateconfdir)
+
+lxc_conf_common_oci = configure_file(
+    configuration: conf,
+    input: 'oci.common.conf.in',
+    output: 'oci.common.conf',
+    install: true,
+    install_dir: lxctemplateconfdir)
+
+lxc_conf_common_userns = configure_file(
+    configuration: conf,
+    input: 'userns.conf.in',
+    output: 'userns.conf',
+    install: true,
+    install_dir: lxctemplateconfdir)
index 1b6c74cbd921121f44aa98683a6eacdf0a65871d..72fa60faa467bdab61df0c1dbacffc0b747c5722 100644 (file)
@@ -80,6 +80,8 @@ lxclibexec = join_paths(libexecdir, 'lxc')
 lxclogpath = join_paths(localstatedir, logpath)
 lxcpath = join_paths(localstatedir, lxcpathprefix)
 lxcrootfsmount = join_paths(libdir, rootfsmount)
+lxctemplateconfdir = join_paths(datadir, 'lxc/config')
+lxctemplateconfcommondir = join_paths(datadir, 'lxc/config/common.conf.d')
 lxcselinuxdir = join_paths(datadir, 'lxc/selinux')
 lxctemplateconfig = join_paths(datadir, 'lxc/config')
 lxctemplatedir = join_paths(datadir, 'lxc/templates')
@@ -598,6 +600,8 @@ liblxc_dep = declare_dependency(
 subdir('config/bash')
 subdir('config/etc')
 subdir('config/selinux')
+subdir('config/templates')
+subdir('config/templates/common.conf.d')
 subdir('doc/examples')
 subdir('doc/rootfs')
 subdir('hooks')