mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-24 08:20:05 -07:00
22 lines
585 B
Bash
Executable File
22 lines
585 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
gcc certdata2pem.c -o mozilla/certdata2pem
|
|
|
|
sed -i'' -e 's,python certdata2pem.py,./certdata2pem,g' mozilla/Makefile
|
|
patch -p1 < update-ca-certificates-destdir.patch
|
|
|
|
make
|
|
|
|
install -m0755 -d "$1/usr/share/ca-certificates"
|
|
install -m0755 -d "$1/usr/bin"
|
|
install -m0755 -d "$1/usr/sbin"
|
|
install -m0755 -d "$1/etc/ssl/certs"
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
# Fix issues with 'libressl'.
|
|
sed -i'' -e 's/ssl rehash/ssl certhash/' "$1/usr/sbin/update-ca-certificates"
|
|
|
|
cd "$1/usr/share/ca-certificates" &&
|
|
find . -name '*.crt' | sort | cut -b3- > "$1/etc/ca-certificates.conf"
|