#!/bin/bash hvbuild() { CD_TMP=$(mktemp -d) SSLDIR=/etc/ssl mkdir -p ${CD_TMP} cd ${CD_TMP} # Install scripts install -v -m755 ${SCRDIR}/misc/certdata/* /usr/bin make-ca.sh ${LFS_PKG_DIR}/${PACKAGE}.txt remove-expired-certs.sh certs install -d ${SSLDIR}/certs cp -v certs/*.pem ${SSLDIR}/certs c_rehash install BLFS-ca-bundle*.crt ${SSLDIR}/ca-bundle.crt ln -sfv ../ca-bundle.crt ${SSLDIR}/certs/ca-certificates.crt # Clean up rm -r certs BLFS-ca-bundle* cd /tmp rmdir ${CD_TMP} unset CD_TMP unset SSLDIR }