Skip to contentSkip to conversation

ca-certificates: move update-ca-certificates into separate package

PATCH New Pascal Bach 1 participant 1 message Oct 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ca-certificates: move update-ca-certificates into separate package

This allows using the script in with an other certificate bundle even if the user doesn't need all the certificates.

The scripts are still installed when the ca-certificates is installed as it RDEPENDS ca-certificates-scripts.

---
 meta/recipes-support/ca-certificates/ca-certificates_20170717.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/ca-certificates/ca-certificates_20170717.bb +5 -1
index 59e7d51..0413762 100644
@@ -79,6 +79,10 @@ do_install_append_class-native () {
     SYSROOT="${D}${base_prefix}" ${D}${sbindir}/update-ca-certificates
 }
 
-RDEPENDS_${PN} += "openssl"
+# This contains only the update script to be used without custom certificates
+PACKAGES =+ "${PN}-scripts"
+FILES_${PN}-scripts = "${sbindir}/ ${sysconfdir}/ca-certificates"
+RDEPENDS_${PN}-scripts += "openssl"
+RDEPENDS_${PN} += "${PN}-scripts"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.1.4