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