trivial: Only install files that are going to be used

This commit is contained in:
Richard Hughes 2021-11-22 15:17:18 +00:00
parent 71d93a65fb
commit 7b865f213c

View File

@ -1,17 +1,28 @@
# only install files that are going to be used
if libjcat.version().version_compare ('>= 0.1.9')
supported_gpg = libjcat.get_pkgconfig_variable('supported_gpg')
supported_pkcs7 = libjcat.get_pkgconfig_variable('supported_pkcs7')
else
supported_gpg = 1
supported_pkcs7 = 1
endif
if supported_gpg == 1
install_data([
'GPG-KEY-Linux-Foundation-Firmware',
'GPG-KEY-Linux-Vendor-Firmware-Service',
],
install_dir : join_paths(sysconfdir, 'pki', 'fwupd')
)
install_data([
'GPG-KEY-Linux-Foundation-Metadata',
'GPG-KEY-Linux-Vendor-Firmware-Service',
],
install_dir : join_paths(sysconfdir, 'pki', 'fwupd-metadata')
)
endif
if supported_pkcs7 == 1
install_data([
'LVFS-CA.pem',
],
@ -22,4 +33,4 @@ install_data([
],
install_dir : join_paths(sysconfdir, 'pki', 'fwupd-metadata')
)
endif