wok-6.x view cacerts/receipt @ rev 17939
partimage: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 15 09:53:08 2015 +0200 (2015-04-15) |
parents | dfef8de3d270 |
children | c9c960507486 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cacerts"
4 VERSION="20150325"
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"
12 WGET_URL="http://anduin.linuxfromscratch.org/sources/other/certdata.txt"
14 DEPENDS="openssl"
15 BUILD_DEPENDS="openssl"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mv -f *.txt certdata.txt &&
21 cp -a $stuff/* $src &&
22 ./make-ca.sh &&
23 ./remove-expired-certs.sh $src/certs
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/etc/ssl/certs
30 cp -a $src/certs/*.pem $fs/etc/ssl/certs
31 cp -a $src/ca-bundle.crt $fs/etc/ssl
32 }
34 post_install()
35 {
36 echo "Rehash certificates:"
37 if [ -d "$1/$INSTALLED/perl" ]; then
38 chroot "$1/" c_rehash
39 else
40 tazpkg -gi microperl --root="${1:-/}"
41 chroot "$1/" microperl /usr/bin/c_rehash
42 fi
43 }