wok-next annotate cacerts/receipt @ rev 19825
Add fdk-aac; up cacerts (actualize its version on every cook), ffmpeg, ffmpegthumbnailer, lame, libgsf, tumbler.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 01 00:49:30 2017 +0300 (2017-08-01) |
parents | 4ca71b0ef823 |
children | 0b55786d7d72 |
rev | line source |
---|---|
al@19797 | 1 # SliTaz package receipt v2. |
al@14468 | 2 |
al@19825 | 3 # This receipt will follow actual version on each recook |
al@14468 | 4 PACKAGE="cacerts" |
al@19825 | 5 VERSION="20170725" |
al@14468 | 6 CATEGORY="security" |
al@14468 | 7 SHORT_DESC="Certificate Authority Certificates" |
al@14468 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@14468 | 9 LICENSE="MPL2" |
al@14468 | 10 WEB_SITE="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cacerts.html" |
al@19642 | 11 HOST_ARCH="any" |
al@19642 | 12 |
al@19310 | 13 #WGET_URL="https://hg.mozilla.org/releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins/certdata.txt" |
al@19825 | 14 wget_url="http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt" |
al@14468 | 15 |
al@19549 | 16 BUILD_DEPENDS="perl openssl locale-en" |
al@14468 | 17 |
al@14468 | 18 # Rules to configure and make the package. |
al@14468 | 19 compile_rules() |
al@14468 | 20 { |
al@19825 | 21 wget -P/tmp $wget_url |
al@19825 | 22 VERSION=$(sed -n '/\$Revision:/s|.*Revision: \([0-9]*\).*$|\1|p' /tmp/certdata.txt) |
al@19825 | 23 echo -e "\nActual version: $VERSION\n" |
al@19825 | 24 sed -i "s|^VERSION=.*|VERSION=\"$VERSION\"|" $WOK/cacerts/receipt |
al@19825 | 25 |
al@19825 | 26 src="$WOK/cacerts/source/cacerts-$VERSION" |
al@19825 | 27 mkdir -p $src |
al@19825 | 28 mv /tmp/certdata.txt $src |
al@19825 | 29 cd $src |
al@19825 | 30 |
al@19825 | 31 TARBALL="$PACKAGE-$VERSION.txt" |
al@19825 | 32 [ -e "$SRC/$TARBALL" ] || cp $src/certdata.txt $SRC/$TARBALL |
al@19642 | 33 |
al@19310 | 34 cp -a $stuff/* $src |
al@14468 | 35 ./make-ca.sh && |
al@14468 | 36 ./remove-expired-certs.sh $src/certs |
al@19797 | 37 |
al@19797 | 38 mkdir -p $install/etc/ssl/certs |
al@19797 | 39 cp -a $src/certs/*.pem $install/etc/ssl/certs |
al@19797 | 40 cp -a $src/ca-bundle.crt $install/etc/ssl |
al@19797 | 41 ln -s ../ca-bundle.crt $install/etc/ssl/certs/ca-certificates.crt |
al@14468 | 42 } |
al@14468 | 43 |
al@14468 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14468 | 45 genpkg_rules() |
al@14468 | 46 { |
al@19797 | 47 copy @std |
al@19797 | 48 DEPENDS="openssl" |
al@14468 | 49 } |
al@14468 | 50 |
al@19797 | 51 # Rehash certificates. |
al@19797 | 52 # Use simplified plain shell equivalent to the Perl `c_rehash` |
al@19797 | 53 # (see openssl package). Normal no output here. |
al@19797 | 54 post_install() { |
al@19549 | 55 cd "$1/etc/ssl/certs" |
al@19549 | 56 find . -type l -delete |
al@19549 | 57 for i in $(ls *.pem); do |
al@19549 | 58 j="$(openssl x509 -hash -noout -in $i)" |
al@19549 | 59 [ -n "$j" ] && ln -s $i $j.0 |
al@19549 | 60 done |
al@19549 | 61 } |
pascal@19094 | 62 |
al@19797 | 63 # Remove broken symlinks |
al@19797 | 64 post_remove() { |
al@19549 | 65 find "$1/etc/ssl/certs" -type l ! -exec test -e \{\} \; -delete |
al@14468 | 66 } |