diff options
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/ca-certificates/ca-certificates_20170717.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb b/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb index 52a1a07f68..51af72e79a 100644 --- a/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb +++ b/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb | |||
@@ -64,13 +64,14 @@ do_install_append_class-target () { | |||
64 | ${D}${mandir}/man8/update-ca-certificates.8 | 64 | ${D}${mandir}/man8/update-ca-certificates.8 |
65 | } | 65 | } |
66 | 66 | ||
67 | pkg_postinst_${PN} () { | 67 | pkg_postinst_${PN}_class-target () { |
68 | SYSROOT="$D" $D${sbindir}/update-ca-certificates | 68 | SYSROOT="$D" $D${sbindir}/update-ca-certificates |
69 | } | 69 | } |
70 | 70 | ||
71 | CONFFILES_${PN} += "${sysconfdir}/ca-certificates.conf" | 71 | CONFFILES_${PN} += "${sysconfdir}/ca-certificates.conf" |
72 | 72 | ||
73 | # Postinsts don't seem to be run for nativesdk packages when populating SDKs. | 73 | # Rather than make a postinst script that works for both target and nativesdk, |
74 | # we just run update-ca-certificate from do_install() for nativesdk. | ||
74 | CONFFILES_${PN}_append_class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt" | 75 | CONFFILES_${PN}_append_class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt" |
75 | do_install_append_class-nativesdk () { | 76 | do_install_append_class-nativesdk () { |
76 | SYSROOT="${D}${SDKPATHNATIVE}" ${D}${sbindir}/update-ca-certificates | 77 | SYSROOT="${D}${SDKPATHNATIVE}" ${D}${sbindir}/update-ca-certificates |