ca-cacert-rootcert.bb: Create symlinks for all fingerprints of the cert

This commit is contained in:
Holger Hans Peter Freyther 2012-07-09 22:35:52 +08:00 committed by Holger Hans Peter Freyther
parent 4df5621826
commit be68ad33d2
1 changed files with 8 additions and 2 deletions

View File

@ -3,13 +3,19 @@ HOMEPAGE = "http://www.cacert.org/index.php?id=3"
SECTION = "misc"
LICENSE = "RDL-COD14"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
PR = "r2"
PR = "r4"
SRC_URI = "file://class3.crt"
do_install() {
install -d ${D}${libdir}/ssl/certs
install -m 0644 ${WORKDIR}/class3.crt ${D}${libdir}/ssl/certs/e5662767.0
install -m 0644 ${WORKDIR}/class3.crt ${D}${libdir}/ssl/certs/cacert.org.pem
# Create hash symlinks
cd ${D}${libdir}/ssl/certs
ln -s cacert.org.pem e5662767.0
ln -s cacert.org.pem 5ed36f99.0
ln -s cacert.org.pem 99d0fa06.0
}
FILES_${PN} = "${libdir}/ssl/certs/*"