-
Notifications
You must be signed in to change notification settings - Fork 27
/
mozroot-certdata_1.0.0.bb
44 lines (34 loc) · 1.29 KB
/
mozroot-certdata_1.0.0.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
SUMMARY = "Mono Mozilla Root Certificates"
LICENSE = "MPL-1.1"
LIC_FILES_CHKSUM = "file://../certdata.txt;md5=b5b009a1c475f7bb95ac8c55f80442f3"
#
# Note that this local file is taken from the default mozroots source URI here
#
# http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
#
# There are newer certdata.txt files available. These do not seem to import cleanly with
# older versions of Mono (e.g. 3.12.1) but do seem to import with Mono 4.0.2
#
# see: http://curl.haxx.se/mail/archive-2013-12/0033.html
#
SRC_URI = "file://certdata.txt"
SRC_URI[md5sum] = "b5b009a1c475f7bb95ac8c55f80442f3"
SRC_URI[sha256sum] = "ea89ac8ae495e69586abae22941816842ca5811a32a20dc9e1adb95859802879"
do_install_append() {
install -d "${D}${sysconfdir}"
install -d "${D}${sysconfdir}/ssl"
install -m 644 ${S}/../certdata.txt ${D}${sysconfdir}/ssl/certdata.txt
}
FILES_${PN} = "${sysconfdir}/ssl/certdata.txt"
inherit allarch
# Do post installation install
pkg_postinst_${PN} () {
#!/bin/sh -e
if [ x"$D" = "x" ]; then
# Actions to carry out on the device go here
mono /usr/lib/mono/4.5/mozroots.exe --import --machine --ask-remove --file ${sysconfdir}/ssl/certdata.txt
else
exit 1
fi
}