SUMMARY="Bundle of CA root certificates"
DESCRIPTION="Certificate data from Mozilla.

This is a bundle of X.509 certificates of public Certificate Authorities (CA). \
These were automatically extracted from Mozilla's root certificates file \
(certdata.txt). It contains the certificates in PEM format and therefore \
can be directly used with curl / libcurl / php_curl, or with an \
Apache+mod_ssl webserver for SSL client authentication."
HOMEPAGE="https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/"
COPYRIGHT="2008-2021 Mozilla"
LICENSE="MPL v1.1
	GNU GPL v2
	GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://curl.haxx.se/ca/cacert-${portVersion//_/-}.pem#noarchive"
CHECKSUM_SHA256="a3b534269c6974631db35f952e8d7c7dbf3d81ab329a232df575c2661de1214a"
SOURCE_FILENAME="ca-bundle-$portVersion.crt"

ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

PROVIDES="
	ca_root_certificates = $portVersion compat >= 0
	"
REQUIRES="
	"

INSTALL()
{
	installDir="$dataRootDir/ssl/"
	mkdir -p "$installDir"
	cp ca-bundle-*.crt "$installDir/CARootCertificates.pem"
}
