From: Stéphane Graber Date: Thu, 12 May 2022 16:56:56 +0000 (+0200) Subject: meson: Re-organize dir variables X-Git-Tag: lxc-5.0.0~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51f90ad973c24f6a0b5e885aa3104374ab22832a;p=thirdparty%2Flxc.git meson: Re-organize dir variables Signed-off-by: Stéphane Graber --- diff --git a/meson.build b/meson.build index 7b293a049..d5f7949aa 100644 --- a/meson.build +++ b/meson.build @@ -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)] diff --git a/templates/meson.build b/templates/meson.build index 14edb4e4c..53148b10c 100644 --- a/templates/meson.build +++ b/templates/meson.build @@ -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())