live-bootstrap/steps/ca-certificates-3.119.1/pass1.sh
Samuel Tyler 38d3519fa6
ca-certificates: update to 3.119.1
Also only download the single needed file now instead of the 70MB
tarball.
2025-12-28 11:05:13 +11:00

14 lines
441 B
Bash
Executable file

# SPDX-FileCopyrightText: 2022 Samuel Tyler <samuel@samuelt.me>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_compile() {
# Cannot be UNIX time 0 because mk-ca-bundle treats that as falsey
touch -t 197001010001.00 certdata.txt
mk-ca-bundle -n -s ALL -m
}
src_install() {
install -D -m 644 ca-bundle.crt "${DESTDIR}/etc/ssl/certs/ca-certificates.crt"
ln -s certs/ca-certificates.crt "${DESTDIR}/etc/ssl/certs.pem"
}