forked from kiss-community/repo
ca-certificates: Fix issue with libressl, closes #61
This commit is contained in:
parent
e6bb314aca
commit
6397fb2cc8
|
@ -1,23 +1,21 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
gcc certdata2pem.c -o "mozilla/certdata2pem"
|
gcc certdata2pem.c -o mozilla/certdata2pem
|
||||||
|
|
||||||
sed -i mozilla/Makefile \
|
sed -i'' -e 's,python certdata2pem.py,./certdata2pem,g' mozilla/Makefile
|
||||||
-e 's,python certdata2pem.py,./certdata2pem,g'
|
patch -p1 < update-ca-certificates-destdir.patch
|
||||||
|
|
||||||
patch -p1 -i update-ca-certificates-destdir.patch
|
|
||||||
make
|
make
|
||||||
|
|
||||||
cd "$1" || return 1
|
install -m0755 -d "$1/usr/share/ca-certificates"
|
||||||
|
install -m0755 -d "$1/usr/bin"
|
||||||
install -m0755 -d usr/share/ca-certificates
|
install -m0755 -d "$1/usr/sbin"
|
||||||
install -m0755 -d usr/bin
|
install -m0755 -d "$1/etc/ssl/certs"
|
||||||
install -m0755 -d usr/sbin
|
|
||||||
install -m0755 -d etc/ssl/certs
|
|
||||||
|
|
||||||
cd - || return 1
|
|
||||||
|
|
||||||
make DESTDIR="$1" install
|
make DESTDIR="$1" install
|
||||||
|
|
||||||
cd "$1/usr/share/ca-certificates" || return 1
|
# 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"
|
find . -name '*.crt' | sort | cut -b3- > "$1/etc/ca-certificates.conf"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
20190110 1
|
20190110 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user