wok-6.x view cacerts/receipt @ rev 17552
Update some post_install for install --root
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 30 10:17:37 2015 +0100 (2015-01-30) |
parents | 40f9f468d1fd |
children | f29d4912ea56 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cacerts"
4 VERSION="1.87"
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="http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1"
13 DEPENDS="openssl"
14 BUILD_DEPENDS="openssl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mv -f *.txt certdata.txt &&
20 cp -a $stuff/* $src &&
21 ./make-ca.sh &&
22 ./remove-expired-certs.sh $src/certs
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/etc/ssl/certs
29 cp -a $src/certs/*.pem $fs/etc/ssl/certs
30 cp -a $src/ca-bundle.crt $fs/etc/ssl
31 }
33 post_install()
34 {
35 echo "Rehash certificates:"
36 if [ -d "$1/$INSTALLED/perl" ]; then
37 chroot "$1/" c_rehash
38 else
39 tazpkg -gi microperl --root="${1:-/}"
40 chroot "$1/" microperl /usr/bin/c_rehash
41 fi
42 }