blob: 504190fd5906f815ea54a9fc72998c615e846ed8 (
plain)
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
|
DEPENDS = "ca-certificates-cross"
require ca-certificates-${PV}.inc
inherit autotools
do_install_prepend() {
mkdir -p ${D}/usr/share/ca-certificates
mkdir -p ${D}/usr/sbin
mkdir -p ${D}/etc/ssl/certs
mkdir -p ${D}/etc/ca-certificates/update.d
}
do_install_append() {
cd ${D}/usr/share/ca-certificates
echo "# Lines starting with # will be ignored" > ${D}/etc/ca-certificates.conf
echo "# Lines starting with ! will remove certificate on next update" >> ${D}/etc/ca-certificates.conf
echo "#" >> ${D}/etc/ca-certificates.conf
for crt in $(find . -type f -name '*.crt' -print)
do
crt=$(echo $crt | sed -e 's/\.\///')
echo $crt >> ${D}/etc/ca-certificates.conf
done
}
pkg_postinst_${PN} () {
SYSROOT="$D" update-ca-certificates
}
CONFFILES_${PN} = "/etc/ca-certificates.conf"
|