ca-certificates 0.9-2

This commit is contained in:
emmett1
2018-10-19 23:34:47 +08:00
parent 170e42968e
commit e6b44bdf32
2 changed files with 16 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
post_install() {
if [ -f /etc/ssl/certdata.txt ]; then
/usr/sbin/make-ca -C /etc/ssl/certdata.txt
else
/usr/sbin/make-ca -g
fi
}
post_upgrade() {
post_install
}

View File

@@ -1,25 +1,15 @@
# description : Certificate Authority certificates
# depends : openssl
# depends : ca-certificates-utils
name=ca-certificates-utils
name=ca-certificates
version=0.9
release=2
source=(https://github.com/djlucas/make-ca/archive/v$version/make-ca-$version.tar.gz
https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
source=(https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
http://www.cacert.org/certs/root.crt
http://www.cacert.org/certs/class3.crt)
md5sum=(0eeaf712eedeae4fa55d8bfa37f4ca32
SKIP SKIP SKIP)
md5sum=(SKIP SKIP SKIP)
build() {
cd make-ca-$version
make DESTDIR=$PKG install
# remove systemd files
rm -fr $PKG/etc
cd -
build() {
install -d $PKG/etc/ssl/local
cp certdata.txt $PKG/etc/ssl/
openssl x509 -in root.crt -text -fingerprint -setalias "CAcert Class 1 root" \