wok-next view cacerts/receipt @ rev 19797
Add ttf-carlito, ttf-dejavu-lgc; up atk, c-ares, cacerts, cantarell-fonts, clucene, cookutils, fontconfig, freetype, gnutls, harfbuzz, harfbuzz-icu, hicolor-icon-theme, libunistring, pango, poppler, poppler-data, poppler-qt4, shared-mime-info, ttf-dejavu.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 25 14:29:39 2017 +0300 (2017-06-25) |
parents | 8f50006d2661 |
children | 8f22b3b666d1 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cacerts"
4 VERSION="20170620"
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 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.txt"
13 #WGET_URL="https://hg.mozilla.org/releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins/certdata.txt"
14 WGET_URL="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
16 BUILD_DEPENDS="perl openssl locale-en"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mv -f *.txt certdata.txt
22 act_version=$(sed -n '/\$Revision:/s|.*Revision: \([0-9]*\).*$|\1|p' certdata.txt)
23 echo -e "\nActual version: $act_version\n"
24 [ "$VERSION" == "$act_version" ] || echo -e "Warning: Please update receipt!\n"
26 cp -a $stuff/* $src
27 ./make-ca.sh &&
28 ./remove-expired-certs.sh $src/certs
30 mkdir -p $install/etc/ssl/certs
31 cp -a $src/certs/*.pem $install/etc/ssl/certs
32 cp -a $src/ca-bundle.crt $install/etc/ssl
33 ln -s ../ca-bundle.crt $install/etc/ssl/certs/ca-certificates.crt
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 copy @std
40 DEPENDS="openssl"
41 }
43 # Rehash certificates.
44 # Use simplified plain shell equivalent to the Perl `c_rehash`
45 # (see openssl package). Normal no output here.
46 post_install() {
47 cd "$1/etc/ssl/certs"
48 find . -type l -delete
49 for i in $(ls *.pem); do
50 j="$(openssl x509 -hash -noout -in $i)"
51 [ -n "$j" ] && ln -s $i $j.0
52 done
53 }
55 # Remove broken symlinks
56 post_remove() {
57 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
58 }