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