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