diff options
Diffstat (limited to 'meta/recipes-support/ca-certificates/ca-certificates_20140325.bb')
-rw-r--r-- | meta/recipes-support/ca-certificates/ca-certificates_20140325.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-support/ca-certificates/ca-certificates_20140325.bb b/meta/recipes-support/ca-certificates/ca-certificates_20140325.bb new file mode 100644 index 0000000000..a277036cfb --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates_20140325.bb | |||
@@ -0,0 +1,77 @@ | |||
1 | SUMMARY = "Common CA certificates" | ||
2 | DESCRIPTION = "This package includes PEM files of CA certificates to allow \ | ||
3 | SSL-based applications to check for the authenticity of SSL connections. \ | ||
4 | This derived from Debian's CA Certificates." | ||
5 | HOMEPAGE = "http://packages.debian.org/sid/ca-certificates" | ||
6 | SECTION = "misc" | ||
7 | LICENSE = "GPL-2.0+ & MPL-2.0" | ||
8 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=0ee6c253e6406c76bfe261deaf5a60b5" | ||
9 | |||
10 | # This is needed to ensure we can run the postinst at image creation time | ||
11 | DEPENDS = "ca-certificates-native" | ||
12 | DEPENDS_class-native = "" | ||
13 | |||
14 | # tag: debian/20140325 + 2 | ||
15 | SRCREV = "1ce8e63dcfea6b9258da356dc023895e6f694144" | ||
16 | |||
17 | SRC_URI = "git://anonscm.debian.org/collab-maint/ca-certificates.git \ | ||
18 | file://0001-update-ca-certificates-remove-c-rehash.patch \ | ||
19 | file://0002-update-ca-certificates-use-SYSROOT.patch \ | ||
20 | file://default-sysroot.patch \ | ||
21 | file://sbindir.patch" | ||
22 | |||
23 | SRC_URI += "file://0001-Update-mozilla-certdata.txt-to-version-1.98.patch" | ||
24 | |||
25 | S = "${WORKDIR}/git" | ||
26 | |||
27 | inherit allarch | ||
28 | |||
29 | EXTRA_OEMAKE = "\ | ||
30 | 'CERTSDIR=${datadir}/ca-certificates' \ | ||
31 | 'SBINDIR=${sbindir}' \ | ||
32 | " | ||
33 | |||
34 | do_install () { | ||
35 | install -d ${D}${datadir}/ca-certificates \ | ||
36 | ${D}${sysconfdir}/ssl/certs \ | ||
37 | ${D}${sysconfdir}/ca-certificates/update.d | ||
38 | oe_runmake 'DESTDIR=${D}' install | ||
39 | |||
40 | install -d ${D}${mandir}/man8 | ||
41 | install -m 0644 sbin/update-ca-certificates.8 ${D}${mandir}/man8/ | ||
42 | |||
43 | install -d ${D}${sysconfdir} | ||
44 | { | ||
45 | echo "# Lines starting with # will be ignored" | ||
46 | echo "# Lines starting with ! will remove certificate on next update" | ||
47 | echo "#" | ||
48 | find ${D}${datadir}/ca-certificates -type f -name '*.crt' | \ | ||
49 | sed 's,^${D}${datadir}/ca-certificates/,,' | ||
50 | } >${D}${sysconfdir}/ca-certificates.conf | ||
51 | } | ||
52 | |||
53 | do_install_append_class-target () { | ||
54 | sed -i -e 's,/etc/,${sysconfdir}/,' \ | ||
55 | -e 's,/usr/share/,${datadir}/,' \ | ||
56 | -e 's,/usr/local,${prefix}/local,' \ | ||
57 | ${D}${sbindir}/update-ca-certificates \ | ||
58 | ${D}${mandir}/man8/update-ca-certificates.8 | ||
59 | } | ||
60 | |||
61 | pkg_postinst_${PN} () { | ||
62 | SYSROOT="$D" update-ca-certificates | ||
63 | } | ||
64 | |||
65 | CONFFILES_${PN} += "${sysconfdir}/ca-certificates.conf" | ||
66 | |||
67 | # Postinsts don't seem to be run for nativesdk packages when populating SDKs. | ||
68 | CONFFILES_${PN}_append_class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt" | ||
69 | do_install_append_class-nativesdk () { | ||
70 | SYSROOT="${D}${SDKPATHNATIVE}" update-ca-certificates | ||
71 | } | ||
72 | |||
73 | do_install_append_class-native () { | ||
74 | SYSROOT="${D}${base_prefix}" ${D}${sbindir}/update-ca-certificates | ||
75 | } | ||
76 | |||
77 | BBCLASSEXTEND += "native nativesdk" | ||