wok-current annotate cacerts/receipt @ rev 24256

updated perl-test-mockmodule (0.172.0 -> 0.177.0)
author Hans-G?nter Theisgen
date Sun Jan 02 10:02:41 2022 +0100 (2022-01-02)
parents 5eafd9dd2344
children 39eb10c70b28
rev   line source
al@14468 1 # SliTaz package receipt.
al@14468 2
al@14468 3 PACKAGE="cacerts"
Hans-G?nter@23819 4 VERSION="20200522"
al@14468 5 CATEGORY="security"
Hans-G?nter@21571 6 SHORT_DESC="Certificate Authority Certificates."
al@14468 7 MAINTAINER="al.bobylev@gmail.com"
al@14468 8 LICENSE="MPL2"
pascal@20671 9 WEB_SITE="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/make-ca.html"
Hans-G?nter@21571 10
al@14468 11 TARBALL="$PACKAGE-$VERSION.txt"
al@19310 12 WGET_URL="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
al@14468 13
al@14468 14 DEPENDS="openssl"
Hans-G?nter@21571 15 BUILD_DEPENDS="locale-en openssl perl"
Hans-G?nter@21571 16
Hans-G?nter@21571 17 HOST_ARCH="any"
al@14468 18
al@14468 19 # Rules to configure and make the package.
al@14468 20 compile_rules()
al@14468 21 {
Hans-G?nter@23819 22 mv -f *.txt certdata.txt
Hans-G?nter@23819 23 cp -a $stuff/* $src
al@14468 24 ./make-ca.sh &&
al@14468 25 ./remove-expired-certs.sh $src/certs
al@14468 26 }
al@14468 27
al@14468 28 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14468 29 genpkg_rules()
al@14468 30 {
al@14468 31 mkdir -p $fs/etc/ssl/certs
Hans-G?nter@21571 32
Hans-G?nter@21571 33 cp -a $src/certs/*.pem $fs/etc/ssl/certs
Hans-G?nter@21571 34 cp -a $src/ca-bundle.crt $fs/etc/ssl
Hans-G?nter@21571 35
Hans-G?nter@23819 36 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
al@14468 37 }
al@14468 38
al@14468 39 post_install()
al@14468 40 {
al@19549 41 # Rehash certificates.
al@19549 42 # Use simplified plain shell equivalent to the Perl `c_rehash`
al@19549 43 # (see openssl package). Normal no output here.
al@19549 44 cd "$1/etc/ssl/certs"
al@19549 45 find . -type l -delete
Hans-G?nter@21571 46 for i in $(ls *.pem)
Hans-G?nter@21571 47 do
al@19549 48 j="$(openssl x509 -hash -noout -in $i)"
al@19549 49 [ -n "$j" ] && ln -s $i $j.0
Hans-G?nter@21571 50 done
al@19549 51 }
pascal@19094 52
al@19549 53 post_remove()
al@19549 54 {
al@19549 55 # Remove broken symlinks
al@19549 56 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
al@14468 57 }