wok-current annotate cacerts/receipt @ rev 21352
updated libxml2, libxml2-dev, libxml2-python and libxml2-tools (2.8.0 -> 2.9.9)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 21 07:35:58 2019 +0100 (2019-04-21) |
parents | 38bf9f820f99 |
children | 5eafd9dd2344 |
rev | line source |
---|---|
al@14468 | 1 # SliTaz package receipt. |
al@14468 | 2 |
al@14468 | 3 PACKAGE="cacerts" |
al@19801 | 4 VERSION="20170224" |
al@14468 | 5 CATEGORY="security" |
al@14468 | 6 SHORT_DESC="Certificate Authority Certificates" |
al@14468 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@14468 | 8 LICENSE="MPL2" |
pascal@20671 | 9 WEB_SITE="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/make-ca.html" |
al@14468 | 10 TARBALL="$PACKAGE-$VERSION.txt" |
al@19310 | 11 #WGET_URL="https://hg.mozilla.org/releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins/certdata.txt" |
al@19310 | 12 WGET_URL="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt" |
pascal@19094 | 13 HOST_ARCH="any" |
al@14468 | 14 |
al@14468 | 15 DEPENDS="openssl" |
al@19549 | 16 BUILD_DEPENDS="perl openssl locale-en" |
al@14468 | 17 |
al@14468 | 18 # Rules to configure and make the package. |
al@14468 | 19 compile_rules() |
al@14468 | 20 { |
al@19310 | 21 mv -f *.txt certdata.txt |
al@19310 | 22 cp -a $stuff/* $src |
al@14468 | 23 ./make-ca.sh && |
al@14468 | 24 ./remove-expired-certs.sh $src/certs |
al@14468 | 25 } |
al@14468 | 26 |
al@14468 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14468 | 28 genpkg_rules() |
al@14468 | 29 { |
al@14468 | 30 mkdir -p $fs/etc/ssl/certs |
al@14468 | 31 cp -a $src/certs/*.pem $fs/etc/ssl/certs |
al@14468 | 32 cp -a $src/ca-bundle.crt $fs/etc/ssl |
al@19310 | 33 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt |
al@14468 | 34 } |
al@14468 | 35 |
al@14468 | 36 post_install() |
al@14468 | 37 { |
al@19549 | 38 # Rehash certificates. |
al@19549 | 39 # Use simplified plain shell equivalent to the Perl `c_rehash` |
al@19549 | 40 # (see openssl package). Normal no output here. |
al@19549 | 41 cd "$1/etc/ssl/certs" |
al@19549 | 42 find . -type l -delete |
al@19549 | 43 for i in $(ls *.pem); do |
al@19549 | 44 j="$(openssl x509 -hash -noout -in $i)" |
al@19549 | 45 [ -n "$j" ] && ln -s $i $j.0 |
al@19549 | 46 done |
al@19549 | 47 } |
pascal@19094 | 48 |
al@19549 | 49 post_remove() |
al@19549 | 50 { |
al@19549 | 51 # Remove broken symlinks |
al@19549 | 52 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete |
al@14468 | 53 } |