wok-next rev 21538
updated cacerts
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 21 16:01:58 2020 +0100 (2020-06-21) |
parents | 1a65696fdb62 |
children | 998243d0c473 |
files | cacerts/receipt |
line diff
1.1 --- a/cacerts/receipt Sun Jun 21 15:51:26 2020 +0100 1.2 +++ b/cacerts/receipt Sun Jun 21 16:01:58 2020 +0100 1.3 @@ -11,12 +11,13 @@ 1.4 1.5 wget_url="https://hg.mozilla.org/releases/mozilla-release/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt" 1.6 1.7 -BUILD_DEPENDS="perl openssl locale-en-base" 1.8 +BUILD_DEPENDS="locale-en-base openssl perl" 1.9 1.10 -compile_rules() { 1.11 - mkdir -p $src 1.12 - cd $src 1.13 - wget $wget_url 1.14 +compile_rules() 1.15 +{ 1.16 + mkdir -p $src 1.17 + cd $src 1.18 + wget $wget_url 1.19 1.20 # Insert header (or process will fail) 1.21 sed -i "1i\ 1.22 @@ -24,18 +25,20 @@ 1.23 certdata.txt 1.24 1.25 # Process... 1.26 - cp -a $stuff/* $src 1.27 + cp -a $stuff/* $src 1.28 ./make-ca.sh && 1.29 ./remove-expired-certs.sh $src/certs 1.30 1.31 # "Installing" 1.32 mkdir -p $install/etc/ssl/certs 1.33 + 1.34 cp -a $src/certs/*.pem $install/etc/ssl/certs 1.35 cp -a $src/ca-bundle.crt $install/etc/ssl 1.36 ln -s ../ca-bundle.crt $install/etc/ssl/certs/ca-certificates.crt 1.37 } 1.38 1.39 -genpkg_rules() { 1.40 +genpkg_rules() 1.41 +{ 1.42 # Determine date of certdata.txt 1.43 # FIXME: please point me to elegant way to determine this file timestamp 1.44 # in Mercurial. 1.45 @@ -68,16 +71,19 @@ 1.46 # Rehash certificates. 1.47 # Use simplified plain shell equivalent to the Perl `c_rehash` 1.48 # (see openssl package). Normal no output here. 1.49 -post_install() { 1.50 +post_install() 1.51 +{ 1.52 cd "$1/etc/ssl/certs" 1.53 find . -type l -delete 1.54 - for i in $(ls *.pem); do 1.55 + for i in $(ls *.pem) 1.56 + do 1.57 j="$(openssl x509 -hash -noout -in $i)" 1.58 [ -n "$j" ] && ln -s $i $j.0 1.59 - done 1.60 + done 1.61 } 1.62 1.63 -# Remove broken symlinks 1.64 -post_remove() { 1.65 +# Remove broken symbolic links 1.66 +post_remove() 1.67 +{ 1.68 find "$1/etc/ssl/certs" -type l ! -exec test -e '{}' \; -delete 1.69 }