summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/ca-certificates/ca-certificates_20160104.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-01-12 15:20:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-15 11:54:52 +0000
commitd83dfe6f2c49ea74ebb65a2a49a57b3feec68834 (patch)
tree96798be3ddf8931b1ef088cb931e0ffaefcc6df7 /meta/recipes-support/ca-certificates/ca-certificates_20160104.bb
parent44405606903be5bd58a8c7b90d40346a5f9e7345 (diff)
downloadpoky-d83dfe6f2c49ea74ebb65a2a49a57b3feec68834.tar.gz
ca-certificates: update to 20160104
LICENSE checksum changed due to an updated file listing in debian/copyright (From OE-Core rev: 1b9e9e5086998fdd0ef92e300148234cd99c5f42) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/ca-certificates/ca-certificates_20160104.bb')
-rw-r--r--meta/recipes-support/ca-certificates/ca-certificates_20160104.bb79
1 files changed, 79 insertions, 0 deletions
diff --git a/meta/recipes-support/ca-certificates/ca-certificates_20160104.bb b/meta/recipes-support/ca-certificates/ca-certificates_20160104.bb
new file mode 100644
index 0000000000..4266926033
--- /dev/null
+++ b/meta/recipes-support/ca-certificates/ca-certificates_20160104.bb
@@ -0,0 +1,79 @@
1SUMMARY = "Common CA certificates"
2DESCRIPTION = "This package includes PEM files of CA certificates to allow \
3SSL-based applications to check for the authenticity of SSL connections. \
4This derived from Debian's CA Certificates."
5HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
6SECTION = "misc"
7LICENSE = "GPL-2.0+ & MPL-2.0"
8LIC_FILES_CHKSUM = "file://debian/copyright;md5=e7358b9541ccf3029e9705ed8de57968"
9
10# This is needed to ensure we can run the postinst at image creation time
11DEPENDS = "ca-certificates-native"
12DEPENDS_class-native = ""
13
14SRCREV = "f54715702c5c0581c9461f78fd84e2c8d2ec243c"
15
16SRC_URI = "git://anonscm.debian.org/collab-maint/ca-certificates.git \
17 file://0001-update-ca-certificates-remove-c-rehash.patch \
18 file://0002-update-ca-certificates-use-SYSROOT.patch \
19 file://0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch \
20 file://default-sysroot.patch \
21 file://sbindir.patch"
22
23S = "${WORKDIR}/git"
24
25inherit allarch
26
27EXTRA_OEMAKE = "\
28 'CERTSDIR=${datadir}/ca-certificates' \
29 'SBINDIR=${sbindir}' \
30"
31
32do_compile_prepend() {
33 oe_runmake clean
34}
35
36do_install () {
37 install -d ${D}${datadir}/ca-certificates \
38 ${D}${sysconfdir}/ssl/certs \
39 ${D}${sysconfdir}/ca-certificates/update.d
40 oe_runmake 'DESTDIR=${D}' install
41
42 install -d ${D}${mandir}/man8
43 install -m 0644 sbin/update-ca-certificates.8 ${D}${mandir}/man8/
44
45 install -d ${D}${sysconfdir}
46 {
47 echo "# Lines starting with # will be ignored"
48 echo "# Lines starting with ! will remove certificate on next update"
49 echo "#"
50 find ${D}${datadir}/ca-certificates -type f -name '*.crt' | \
51 sed 's,^${D}${datadir}/ca-certificates/,,'
52 } >${D}${sysconfdir}/ca-certificates.conf
53}
54
55do_install_append_class-target () {
56 sed -i -e 's,/etc/,${sysconfdir}/,' \
57 -e 's,/usr/share/,${datadir}/,' \
58 -e 's,/usr/local,${prefix}/local,' \
59 ${D}${sbindir}/update-ca-certificates \
60 ${D}${mandir}/man8/update-ca-certificates.8
61}
62
63pkg_postinst_${PN} () {
64 SYSROOT="$D" update-ca-certificates
65}
66
67CONFFILES_${PN} += "${sysconfdir}/ca-certificates.conf"
68
69# Postinsts don't seem to be run for nativesdk packages when populating SDKs.
70CONFFILES_${PN}_append_class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt"
71do_install_append_class-nativesdk () {
72 SYSROOT="${D}${SDKPATHNATIVE}" update-ca-certificates
73}
74
75do_install_append_class-native () {
76 SYSROOT="${D}${base_prefix}" ${D}${sbindir}/update-ca-certificates
77}
78
79BBCLASSEXTEND += "native nativesdk"