wok-6.x annotate cacerts/receipt @ rev 17865
Up: cacerts (20150325)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 25 17:21:43 2015 +0200 (2015-03-25) |
parents | dfef8de3d270 |
children | c9c960507486 |
rev | line source |
---|---|
al@14468 | 1 # SliTaz package receipt. |
al@14468 | 2 |
al@14468 | 3 PACKAGE="cacerts" |
al@17865 | 4 VERSION="20150325" |
al@14468 | 5 CATEGORY="security" |
al@14468 | 6 SHORT_DESC="Certificate Authority Certificates" |
al@14468 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@14468 | 8 LICENSE="MPL2" |
al@14468 | 9 WEB_SITE="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cacerts.html" |
al@14468 | 10 TARBALL="$PACKAGE-$VERSION.txt" |
al@17865 | 11 #WGET_URL="http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1" |
al@17865 | 12 WGET_URL="http://anduin.linuxfromscratch.org/sources/other/certdata.txt" |
al@14468 | 13 |
al@14468 | 14 DEPENDS="openssl" |
al@14468 | 15 BUILD_DEPENDS="openssl" |
al@14468 | 16 |
al@14468 | 17 # Rules to configure and make the package. |
al@14468 | 18 compile_rules() |
al@14468 | 19 { |
al@14468 | 20 mv -f *.txt certdata.txt && |
al@14468 | 21 cp -a $stuff/* $src && |
al@14468 | 22 ./make-ca.sh && |
al@14468 | 23 ./remove-expired-certs.sh $src/certs |
al@14468 | 24 } |
al@14468 | 25 |
al@14468 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14468 | 27 genpkg_rules() |
al@14468 | 28 { |
al@14468 | 29 mkdir -p $fs/etc/ssl/certs |
al@14468 | 30 cp -a $src/certs/*.pem $fs/etc/ssl/certs |
al@14468 | 31 cp -a $src/ca-bundle.crt $fs/etc/ssl |
al@14468 | 32 } |
al@14468 | 33 |
al@14468 | 34 post_install() |
al@14468 | 35 { |
al@14468 | 36 echo "Rehash certificates:" |
pascal@17552 | 37 if [ -d "$1/$INSTALLED/perl" ]; then |
pascal@17552 | 38 chroot "$1/" c_rehash |
psychomaniak@17551 | 39 else |
pascal@17552 | 40 tazpkg -gi microperl --root="${1:-/}" |
pascal@17552 | 41 chroot "$1/" microperl /usr/bin/c_rehash |
psychomaniak@17551 | 42 fi |
al@14468 | 43 } |