OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 |
| 4 EAPI=2 |
| 5 |
| 6 DESCRIPTION="Chrome OS restricted set of certificates." |
| 7 HOMEPAGE="http://src.chromium.org" |
| 8 SRC_URI="" |
| 9 LICENSE="BSD" |
| 10 SLOT="0" |
| 11 KEYWORDS="amd64 arm x86" |
| 12 |
| 13 src_install() { |
| 14 # c_rehash (OpenSSL 0.9.8l 5 Nov 2009) is processing just .pem files so |
| 15 # rename the certificates from .crt to .pem. An alternative is to use |
| 16 # openssl directly to create the hash symlinks: |
| 17 # |
| 18 # ln -s $cert.crt $(openssl x509 -noout -hash < $cert.crt).0 |
| 19 # |
| 20 # However, c_rehash has smarts about incrementing the .0 extension if |
| 21 # necessary. |
| 22 CA_CERT_DIR=/usr/share/chromeos-ca-certificates |
| 23 insinto "${CA_CERT_DIR}" |
| 24 for cert in \ |
| 25 Equifax_Secure_Certificate_Authority \ |
| 26 GeoTrustGlobalCA_crosssigned \ |
| 27 GoogleInternetAuthority; do |
| 28 newins ${FILESDIR}/$cert.crt $cert.pem |
| 29 done |
| 30 c_rehash "${D}/${CA_CERT_DIR}" |
| 31 } |
OLD | NEW |