wok-current annotate cacerts/receipt @ rev 25727

Add miss stuff folder for libxml++, dbus-c++
author Stanislas Leduc <shann@slitaz.org>
date Tue Nov 05 13:46:37 2024 +0000 (4 weeks ago)
parents a23978bfa665
children
rev   line source
al@14468 1 # SliTaz package receipt.
al@14468 2
al@14468 3 PACKAGE="cacerts"
shann@25634 4 VERSION="20231019"
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"
Hans-G?nter@24392 9 WEB_SITE="https://www.linuxfromscratch.org/blfs/view/svn/postlfs/make-ca.html"
Hans-G?nter@21571 10
al@14468 11 TARBALL="$PACKAGE-$VERSION.txt"
Hans-G?nter@24392 12 WGET_URL="https://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
al@14468 13
al@14468 14 DEPENDS="openssl"
shann@25629 15 BUILD_DEPENDS="openssl perl"
Hans-G?nter@21571 16
Hans-G?nter@21571 17 HOST_ARCH="any"
al@14468 18
pascal@24699 19 # What is the latest version available today?
pascal@24699 20 current_version()
pascal@24699 21 {
pascal@24699 22 wget -O - $WGET_URL 2>/dev/null | \
pascal@24699 23 sed '/Revision:/!d;s|.*sion: ||;s| .*||;q'
pascal@24699 24 }
pascal@24699 25
al@14468 26 # Rules to configure and make the package.
al@14468 27 compile_rules()
al@14468 28 {
Hans-G?nter@23819 29 mv -f *.txt certdata.txt
Hans-G?nter@23819 30 cp -a $stuff/* $src
al@14468 31 ./make-ca.sh &&
Hans-G?nter@24392 32 ./remove-expired-certs.sh $src/certs
al@14468 33 }
al@14468 34
al@14468 35 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14468 36 genpkg_rules()
al@14468 37 {
al@14468 38 mkdir -p $fs/etc/ssl/certs
Hans-G?nter@21571 39
Hans-G?nter@21571 40 cp -a $src/certs/*.pem $fs/etc/ssl/certs
Hans-G?nter@21571 41 cp -a $src/ca-bundle.crt $fs/etc/ssl
Hans-G?nter@21571 42
Hans-G?nter@23819 43 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
al@14468 44 }
al@14468 45
al@14468 46 post_install()
al@14468 47 {
al@19549 48 # Rehash certificates.
al@19549 49 # Use simplified plain shell equivalent to the Perl `c_rehash`
al@19549 50 # (see openssl package). Normal no output here.
al@19549 51 cd "$1/etc/ssl/certs"
al@19549 52 find . -type l -delete
Hans-G?nter@21571 53 for i in $(ls *.pem)
Hans-G?nter@21571 54 do
al@19549 55 j="$(openssl x509 -hash -noout -in $i)"
al@19549 56 [ -n "$j" ] && ln -s $i $j.0
Hans-G?nter@21571 57 done
al@19549 58 }
pascal@19094 59
al@19549 60 post_remove()
al@19549 61 {
al@19549 62 # Remove broken symlinks
al@19549 63 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
al@14468 64 }