From e6b44bdf32296e5aeb162e916c8f3545425df974 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Fri, 19 Oct 2018 23:34:47 +0800 Subject: [PATCH] ca-certificates 0.9-2 --- core/ca-certificates/ca-certificates.install | 11 +++++++++++ core/ca-certificates/spkgbuild | 20 +++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) create mode 100755 core/ca-certificates/ca-certificates.install diff --git a/core/ca-certificates/ca-certificates.install b/core/ca-certificates/ca-certificates.install new file mode 100755 index 000000000..53ceb778d --- /dev/null +++ b/core/ca-certificates/ca-certificates.install @@ -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 +} diff --git a/core/ca-certificates/spkgbuild b/core/ca-certificates/spkgbuild index 7449e9c81..7ef8bc9c0 100644 --- a/core/ca-certificates/spkgbuild +++ b/core/ca-certificates/spkgbuild @@ -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" \