wok-6.x view cacerts/receipt @ rev 24783

Up apache-ant (1.10.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 20 12:11:06 2022 +0000 (2022-03-20)
parents 39eb10c70b28
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cacerts"
4 VERSION="20220208"
5 CATEGORY="security"
6 SHORT_DESC="Certificate Authority Certificates."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://www.linuxfromscratch.org/blfs/view/svn/postlfs/make-ca.html"
11 TARBALL="$PACKAGE-$VERSION.txt"
12 WGET_URL="https://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
14 DEPENDS="openssl"
15 BUILD_DEPENDS="locale-en openssl perl"
17 HOST_ARCH="any"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WGET_URL 2>/dev/null | \
23 sed '/Revision:/!d;s|.*sion: ||;s| .*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mv -f *.txt certdata.txt
30 cp -a $stuff/* $src
31 ./make-ca.sh &&
32 ./remove-expired-certs.sh $src/certs
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc/ssl/certs
40 cp -a $src/certs/*.pem $fs/etc/ssl/certs
41 cp -a $src/ca-bundle.crt $fs/etc/ssl
43 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
44 }
46 post_install()
47 {
48 # Rehash certificates.
49 # Use simplified plain shell equivalent to the Perl `c_rehash`
50 # (see openssl package). Normal no output here.
51 cd "$1/etc/ssl/certs"
52 find . -type l -delete
53 for i in $(ls *.pem)
54 do
55 j="$(openssl x509 -hash -noout -in $i)"
56 [ -n "$j" ] && ln -s $i $j.0
57 done
58 }
60 post_remove()
61 {
62 # Remove broken symlinks
63 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
64 }