summaryrefslogtreecommitdiffstats
path: root/source/n/ca-certificates/ca-certificates.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/ca-certificates/ca-certificates.SlackBuild')
-rwxr-xr-xsource/n/ca-certificates/ca-certificates.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/n/ca-certificates/ca-certificates.SlackBuild b/source/n/ca-certificates/ca-certificates.SlackBuild
index 753bcf7fe..6e06613ac 100755
--- a/source/n/ca-certificates/ca-certificates.SlackBuild
+++ b/source/n/ca-certificates/ca-certificates.SlackBuild
@@ -75,12 +75,17 @@ xzcat $CWD/certdata-${VERSION}.txt.xz > mozilla/certdata.txt
make || exit 1
make install DESTDIR=$PKG || exit 1
+# Remove expired certificate:
+if [ -r $PKG//usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt ]; then
+ rm -f $PKG//usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+fi
+
mkdir -p $PKG/etc/ca-certificates/update.d
printf "# Automatically generated by $PKGNAM-$VERSION \n#\n" \
- > $PKG/etc/ca-certificates.conf.new
+ > $PKG/etc/ca-certificates.conf
( cd $PKG/usr/share/ca-certificates
find . -name '*.crt' | sort | cut -b3-
-) >> $PKG/etc/ca-certificates.conf.new
+) >> $PKG/etc/ca-certificates.conf
mkdir -p $PKG/usr/man/man8
gzip -9c sbin/update-ca-certificates.8 > \