2019-05-14 14:05:50 -06:00
|
|
|
#!/bin/sh -e
|
2019-05-13 08:32:56 -06:00
|
|
|
|
2019-08-13 17:39:34 -06:00
|
|
|
gcc certdata2pem.c -o mozilla/certdata2pem
|
2019-05-12 07:15:19 -06:00
|
|
|
|
2019-08-13 17:39:34 -06:00
|
|
|
sed -i'' -e 's,python certdata2pem.py,./certdata2pem,g' mozilla/Makefile
|
|
|
|
patch -p1 < update-ca-certificates-destdir.patch
|
2019-05-12 07:15:19 -06:00
|
|
|
|
|
|
|
make
|
|
|
|
|
2019-08-13 17:39:34 -06:00
|
|
|
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"
|
2019-05-12 07:15:19 -06:00
|
|
|
|
2019-05-13 06:37:14 -06:00
|
|
|
make DESTDIR="$1" install
|
2019-05-12 07:15:19 -06:00
|
|
|
|
2019-08-13 17:39:34 -06:00
|
|
|
# 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"
|