wok-next view cacerts/receipt @ rev 19354
Up: terminus font (4.40)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Jul 25 12:47:51 2016 +0300 (2016-07-25) |
parents | 2c7609f1596e |
children | 9b3a83c9bea3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cacerts"
4 VERSION="20160512"
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 TARBALL="$PACKAGE-$VERSION.txt"
11 #WGET_URL="https://hg.mozilla.org/releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins/certdata.txt"
12 WGET_URL="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
13 HOST_ARCH="any"
15 DEPENDS="openssl"
16 BUILD_DEPENDS="openssl locale-en"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mv -f *.txt certdata.txt
22 cp -a $stuff/* $src
23 ./make-ca.sh &&
24 ./remove-expired-certs.sh $src/certs
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/etc/ssl/certs
31 cp -a $src/certs/*.pem $fs/etc/ssl/certs
32 cp -a $src/ca-bundle.crt $fs/etc/ssl
33 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
34 }
36 post_install()
37 {
38 case "$1" in
39 /cross*) return
40 esac
42 # Keep silence, for example, when installed on cook as build dependency
43 if [ -z "$quiet" ]; then
44 echo "Rehash certificates:"
45 out='&1'
46 else
47 out='/dev/null'
48 fi
50 if [ -d "$1/$INSTALLED/perl" ]; then
51 chroot "$1/" c_rehash >$out
52 else
53 tazpkg -gi microperl --root="${1:-/}"
54 chroot "$1/" microperl /usr/bin/c_rehash >$out
55 fi
56 }