wok-next view cacerts/receipt @ rev 19662

Remove tazchroot (not used for yearsand unusable)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 16 18:37:27 2017 +0100 (2017-03-16)
parents 75456ab144e4
children 4ca71b0ef823
line source
1 # SliTaz package receipt.
3 PACKAGE="cacerts"
4 VERSION="20170301"
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/cacerts.html"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.txt"
13 #WGET_URL="https://hg.mozilla.org/releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins/certdata.txt"
14 WGET_URL="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
16 DEPENDS="openssl"
17 BUILD_DEPENDS="perl openssl locale-en"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mv -f *.txt certdata.txt
23 act_version=$(sed -n '/\$Revision:/s|.*Revision: \([0-9]*\).*$|\1|p' certdata.txt)
24 echo -e "\nActual version: $act_version\n"
25 [ "$VERSION" != "$act_version" ] &&
26 echo -e "Please update receipt!\n"
28 cp -a $stuff/* $src
29 ./make-ca.sh &&
30 ./remove-expired-certs.sh $src/certs
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc/ssl/certs
37 cp -a $src/certs/*.pem $fs/etc/ssl/certs
38 cp -a $src/ca-bundle.crt $fs/etc/ssl
39 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
40 }
42 post_install()
43 {
44 # Rehash certificates.
45 # Use simplified plain shell equivalent to the Perl `c_rehash`
46 # (see openssl package). Normal no output here.
47 cd "$1/etc/ssl/certs"
48 find . -type l -delete
49 for i in $(ls *.pem); do
50 j="$(openssl x509 -hash -noout -in $i)"
51 [ -n "$j" ] && ln -s $i $j.0
52 done
53 }
55 post_remove()
56 {
57 # Remove broken symlinks
58 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
59 }