]> git.proxmox.com Git - mirror_lxc.git/commitdiff
meson: Re-organize dir variables
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 12 May 2022 16:56:56 +0000 (18:56 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 12 May 2022 20:24:03 +0000 (22:24 +0200)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
meson.build
templates/meson.build

index 7b293a04915b63759711f520834cf01b358bf76f..d5f7949aac9c667e6bf932aca7ca29f777c717dd 100644 (file)
@@ -74,17 +74,17 @@ lxcdefaultconfig = join_paths(lxcconfdir, 'default.conf')
 lxcglobalconfig = join_paths(lxcconfdir, 'lxc.conf')
 lxcexamplesdir = join_paths(docdir, 'examples')
 lxchookbindir = join_paths(libexecdir, 'lxc/hooks')
-lxchookdir = join_paths(datadir, 'lxc/hooks')
 lxcinclude = join_paths(includedir, 'lxc')
 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')
+lxcdatadir = join_paths(datadir, 'lxc')
+lxchookdir = join_paths(lxcdatadir, 'hooks')
+lxcselinuxdir = join_paths(lxcdatadir, 'selinux')
+lxctemplateconfdir = join_paths(lxcdatadir, 'config')
+lxctemplateconfcommondir = join_paths(lxctemplateconfdir, 'common.conf.d')
+lxctemplatedir = join_paths(lxcdatadir, 'templates')
 lxc_user_network_conf = join_paths(sysconfdir, user_network_conf_opt)
 lxc_user_network_db = join_paths(runtimepath, user_network_db_opt)
 
@@ -108,7 +108,7 @@ conf.set_quoted('LXCHOOKDIR', lxchookdir)
 conf.set_quoted('LXCINITDIR', libexecdir)
 conf.set_quoted('LXCPATH', lxcpath)
 conf.set_quoted('LXCROOTFSMOUNT', lxcrootfsmount)
-conf.set_quoted('LXCTEMPLATECONFIG', lxctemplateconfig)
+conf.set_quoted('LXCTEMPLATECONFIG', lxctemplateconfdir)
 conf.set_quoted('LXCTEMPLATEDIR', lxctemplatedir)
 conf.set_quoted('LXC_USERNIC_CONF', lxc_user_network_conf)
 conf.set_quoted('LXC_USERNIC_DB', lxc_user_network_db)
@@ -654,7 +654,7 @@ status = [
     'lxc rootfs mount directory:       @0@'.format(lxcrootfsmount),
     'log path:                 @0@'.format(lxclogpath),
     'lxc path:                 @0@'.format(lxcpath),
-    'lxc template config:              @0@'.format(lxctemplateconfig),
+    'lxc template config:              @0@'.format(lxctemplateconfdir),
     'lxc template directory:   @0@'.format(lxctemplatedir),
     'lxc user network config:  @0@'.format(lxc_user_network_conf),
     'lxc user network database:        @0@'.format(lxc_user_network_db)]
index 14edb4e4ccbf1249cff442bb467f8937072b52be..53148b10c851e391fb3d75bf03e885699ff8b03e 100644 (file)
@@ -9,7 +9,7 @@ template_scripts = configure_file(
 
 template_config_data = configuration_data()
 template_config_data.set_quoted('LXCHOOKDIR', lxchookdir)
-template_config_data.set_quoted('LXCTEMPLATECONFIG', lxctemplateconfig)
+template_config_data.set_quoted('LXCTEMPLATECONFIG', lxctemplateconfdir)
 template_config_data.set_quoted('LOCALSTATEDIR', localstatedir)
 template_config_data.set_quoted('PACKAGE_VERSION', meson.project_version())