summaryrefslogtreecommitdiffstats
path: root/source/n/ca-certificates/ca-certificates.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2018-12-12 04:09:54 +0000
committer Eric Hameleers <alien@slackware.com>2018-12-12 08:59:45 +0100
commitfda1305d7482d4af2def7b11d974e7b4cc9fe8e6 (patch)
treea716baab919b5f0f7b61fb8ed1b3813ffe40c3bb /source/n/ca-certificates/ca-certificates.SlackBuild
parent45518aeb4db505f4d0883511e03f2e9c962a1dab (diff)
downloadcurrent-fda1305d7482d4af2def7b11d974e7b4cc9fe8e6.tar.gz
current-fda1305d7482d4af2def7b11d974e7b4cc9fe8e6.tar.xz
Wed Dec 12 04:09:54 UTC 201820181212040954
l/librsvg-2.44.10-x86_64-1.txz: Upgraded. l/vte-0.54.3-x86_64-1.txz: Upgraded. n/ca-certificates-20181210-noarch-1.txz: Upgraded. x/mesa-18.3.1-x86_64-1.txz: Upgraded. x/xf86-video-i128-1.4.0-x86_64-1.txz: Upgraded. x/xf86-video-mga-2.0.0-x86_64-1.txz: Upgraded. x/xterm-338-x86_64-1.txz: Upgraded. xap/mozilla-firefox-60.4.0esr-x86_64-1.txz: Upgraded. This release contains security fixes and improvements. For more information, see: https://www.mozilla.org/security/known-vulnerabilities/firefoxESR.html https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/ https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/#CVE-2018-17466 https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/#CVE-2018-18492 https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/#CVE-2018-18493 https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/#CVE-2018-18494 https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/#CVE-2018-18498 https://www.mozilla.org/en-US/security/advisories/mfsa2018-30/#CVE-2018-12405 (* Security fix *)
Diffstat (limited to 'source/n/ca-certificates/ca-certificates.SlackBuild')
-rwxr-xr-xsource/n/ca-certificates/ca-certificates.SlackBuild22
1 files changed, 9 insertions, 13 deletions
diff --git a/source/n/ca-certificates/ca-certificates.SlackBuild b/source/n/ca-certificates/ca-certificates.SlackBuild
index 54747d557..847769370 100755
--- a/source/n/ca-certificates/ca-certificates.SlackBuild
+++ b/source/n/ca-certificates/ca-certificates.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=ca-certificates
-VERSION=${VERSION:-20180409}
+VERSION=${VERSION:-$(echo certdata-*.txt.xz | cut -f 2 -d - | cut -f 1 -d .)}
ARCH=noarch
BUILD=${BUILD:-1}
@@ -47,15 +47,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr/share/ca-certificates $PKG/usr/sbin
cd $TMP
-# Need both $PKGNAM and $PKGNAM-$VERSION since upstream can't decide how
-# to package their tarball:
-rm -rf $PKGNAM $PKGNAM-$VERSION
+rm -rf $PKGNAM
# Extract the tarball:
-tar xvf $CWD/${PKGNAM}_$TARVERSION.tar.?z || exit 1
+tar xvf $CWD/${PKGNAM}.tar.?z || exit 1
-# Again, both $PKGNAM and $PKGNAM-$VERSION are needed here:
-cd $PKGNAM-$VERSION 2> /dev/null || cd $PKGNAM || exit 1
+cd $PKGNAM || exit 1
chown -R root:root .
find . \
@@ -64,11 +61,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Obsolete?
-#zcat $CWD/patches/fixup_DESTDIR.diff.gz | patch -p1 || exit 1
-
# Remove incompatible command operators used to call 'run-parts':
-zcat $CWD/patches/fixup_update-ca-certificates.diff.gz | patch -p1 || exit 1
+zcat $CWD/fixup_update-ca-certificates.diff.gz | patch -p1 || exit 1
+
+# Update to certdata.txt from $CWD:
+xzcat $CWD/certdata-${VERSION}.txt.xz > mozilla/certdata.txt
make || exit 1
make install DESTDIR=$PKG || exit 1
@@ -85,8 +82,7 @@ gzip -9c sbin/update-ca-certificates.8 > \
$PKG/usr/man/man8/update-ca-certificates.8.gz
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
-mv debian/NEWS debian/NEWS.Debian
-cp -a debian/NEWS.Debian debian/README.Debian $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a docs/* $PKG/usr/doc/$PKGNAM-$VERSION
mkdir -p $PKG/var/log/setup
cat $CWD/setup.11.cacerts > $PKG/var/log/setup/setup.11.cacerts