swtpm_setup.conf has traditionally pointed to
/usr/share/swtpm/swtpm-localca for create_certs_tool but since
/usr/bin/swtpm_localca is now available, have newly created
config files point to this executable instead.
Since there are possibly many swtpm_setup.conf out there pointing
to /usr/share/swtpm/swtpm-localca, we have to still install
swtm_localca there as well and package it.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
# Program invoked for creating certificates
-create_certs_tool= @DATAROOTDIR@/swtpm/swtpm-localca
+create_certs_tool= @BINDIR@/swtpm_localca
create_certs_tool_config = @SYSCONFDIR@/swtpm-localca.conf
create_certs_tool_options = @SYSCONFDIR@/swtpm-localca.options
#define SWTPM_VER_MICRO @SWTPM_VER_MICRO@
#define SYSCONFDIR "@SYSCONFDIR@"
-#define DATAROOTDIR "@DATAROOTDIR@"
+#define BINDIR "@BINDIR@"
#endif /* SWTPM_SETUP_CONF_H */
filedata = g_new0(gchar *, NUM_FILES + 1);
/* setpm_setup.conf */
- create_certs_tool = g_build_filename(DATAROOTDIR,
- "swtpm", "swtpm-localca", NULL);
+ create_certs_tool = g_build_filename(BINDIR,
+ "swtpm_localca", NULL);
filedata[SWTPM_SETUP_CONF] = g_strdup_printf(
"create_certs_tool = %s\n"
"create_certs_tool_config = %s\n"