wok view cacerts/receipt @ rev 24298

updated taglib and taglib-dev (1.11.1 -> 1.12)
author Hans-G?nter Theisgen
date Sat Jan 15 15:21:20 2022 +0100 (2022-01-15)
parents 5eafd9dd2344
children 39eb10c70b28
line source
1 # SliTaz package receipt.
3 PACKAGE="cacerts"
4 VERSION="20200522"
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="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
14 DEPENDS="openssl"
15 BUILD_DEPENDS="locale-en openssl perl"
17 HOST_ARCH="any"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mv -f *.txt certdata.txt
23 cp -a $stuff/* $src
24 ./make-ca.sh &&
25 ./remove-expired-certs.sh $src/certs
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/etc/ssl/certs
33 cp -a $src/certs/*.pem $fs/etc/ssl/certs
34 cp -a $src/ca-bundle.crt $fs/etc/ssl
36 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
37 }
39 post_install()
40 {
41 # Rehash certificates.
42 # Use simplified plain shell equivalent to the Perl `c_rehash`
43 # (see openssl package). Normal no output here.
44 cd "$1/etc/ssl/certs"
45 find . -type l -delete
46 for i in $(ls *.pem)
47 do
48 j="$(openssl x509 -hash -noout -in $i)"
49 [ -n "$j" ] && ln -s $i $j.0
50 done
51 }
53 post_remove()
54 {
55 # Remove broken symlinks
56 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
57 }