wok-6.x annotate cacerts/receipt @ rev 22411

VLC: request of --enable-run-as-root, see http://forum.slitaz.org/topic/vlc-player-does-not-run-on-root
author Erkan Yilmaz <erkan@slitaz.org>
date Fri Dec 13 13:43:22 2019 +0000 (2019-12-13)
parents 6e8b1bcb30e2
children 55fda8af462e
rev   line source
al@14468 1 # SliTaz package receipt.
al@14468 2
al@14468 3 PACKAGE="cacerts"
Hans-G?nter@21571 4 VERSION="20190517"
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="https://hg.mozilla.org/releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins/certdata.txt"
al@19310 13 WGET_URL="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt"
al@14468 14
al@14468 15 DEPENDS="openssl"
Hans-G?nter@21571 16 BUILD_DEPENDS="locale-en openssl perl"
Hans-G?nter@21571 17
Hans-G?nter@21571 18 HOST_ARCH="any"
al@14468 19
al@14468 20 # Rules to configure and make the package.
al@14468 21 compile_rules()
al@14468 22 {
al@19310 23 mv -f *.txt certdata.txt
al@19310 24 cp -a $stuff/* $src
al@14468 25 ./make-ca.sh &&
al@14468 26 ./remove-expired-certs.sh $src/certs
al@14468 27 }
al@14468 28
al@14468 29 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14468 30 genpkg_rules()
al@14468 31 {
al@14468 32 mkdir -p $fs/etc/ssl/certs
Hans-G?nter@21571 33
Hans-G?nter@21571 34 cp -a $src/certs/*.pem $fs/etc/ssl/certs
Hans-G?nter@21571 35 cp -a $src/ca-bundle.crt $fs/etc/ssl
Hans-G?nter@21571 36
al@19310 37 ln -s ../ca-bundle.crt $fs/etc/ssl/certs/ca-certificates.crt
al@14468 38 }
al@14468 39
al@14468 40 post_install()
al@14468 41 {
al@19549 42 # Rehash certificates.
al@19549 43 # Use simplified plain shell equivalent to the Perl `c_rehash`
al@19549 44 # (see openssl package). Normal no output here.
al@19549 45 cd "$1/etc/ssl/certs"
al@19549 46 find . -type l -delete
Hans-G?nter@21571 47 for i in $(ls *.pem)
Hans-G?nter@21571 48 do
al@19549 49 j="$(openssl x509 -hash -noout -in $i)"
al@19549 50 [ -n "$j" ] && ln -s $i $j.0
Hans-G?nter@21571 51 done
al@19549 52 }
pascal@19094 53
al@19549 54 post_remove()
al@19549 55 {
al@19549 56 # Remove broken symlinks
al@19549 57 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete
al@14468 58 }