wok-next view cacerts/receipt @ rev 19840
Up librsvg (split more), make-slitaz-icons (use rsvg-convert instead of inkscape), faenza-icon-theme (keep original theme), slitaz-icons-faenza (combine light & dark).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Aug 14 15:53:27 2017 +0300 (2017-08-14) |
parents | 4ca71b0ef823 |
children | 0b55786d7d72 |
line source
1 # SliTaz package receipt v2.
3 # This receipt will follow actual version on each recook
4 PACKAGE="cacerts"
5 VERSION="20170725"
6 CATEGORY="security"
7 SHORT_DESC="Certificate Authority Certificates"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MPL2"
10 WEB_SITE="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cacerts.html"
11 HOST_ARCH="any"
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 wget -P/tmp $wget_url
22 VERSION=$(sed -n '/\$Revision:/s|.*Revision: \([0-9]*\).*$|\1|p' /tmp/certdata.txt)
23 echo -e "\nActual version: $VERSION\n"
24 sed -i "s|^VERSION=.*|VERSION=\"$VERSION\"|" $WOK/cacerts/receipt
26 src="$WOK/cacerts/source/cacerts-$VERSION"
27 mkdir -p $src
28 mv /tmp/certdata.txt $src
29 cd $src
31 TARBALL="$PACKAGE-$VERSION.txt"
32 [ -e "$SRC/$TARBALL" ] || cp $src/certdata.txt $SRC/$TARBALL
34 cp -a $stuff/* $src
35 ./make-ca.sh &&
36 ./remove-expired-certs.sh $src/certs
38 mkdir -p $install/etc/ssl/certs
39 cp -a $src/certs/*.pem $install/etc/ssl/certs
40 cp -a $src/ca-bundle.crt $install/etc/ssl
41 ln -s ../ca-bundle.crt $install/etc/ssl/certs/ca-certificates.crt
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 copy @std
48 DEPENDS="openssl"
49 }
51 # Rehash certificates.
52 # Use simplified plain shell equivalent to the Perl `c_rehash`
53 # (see openssl package). Normal no output here.
54 post_install() {
55 cd "$1/etc/ssl/certs"
56 find . -type l -delete
57 for i in $(ls *.pem); do
58 j="$(openssl x509 -hash -noout -in $i)"
59 [ -n "$j" ] && ln -s $i $j.0
60 done
61 }
63 # Remove broken symlinks
64 post_remove() {
65 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
66 }