Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
libressl: Add script to update ca-certificates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Sep 2, 2019
1 parent fba07e1 commit 48c55d3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/libressl/build
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ patch -p0 < getprogname-musl.patch
make
make DESTDIR="$1" install

install -Dm 755 update-certdata.sh "$1/etc/ssl"

# Remove majority of man pages (2700 files~).
rm -rf "$1/usr/share/man/man3"
1 change: 1 addition & 0 deletions core/libressl/checksums
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
c4c78167fae325b47aebd8beb54b6041d6f6a56b3743f4bd5d79b15642f9d5d4 libressl-2.9.2.tar.gz
b532a1587c6ba73f905db5021a4c6032d821b2e8b94155f762df250f8a6de811 getprogname-musl.patch
57cedb6745330bc52df27fd5e80a0c7c757ad36beb3fe16a709cdb990e96087a update-certdata.sh
14 changes: 14 additions & 0 deletions core/libressl/files/update-certdata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh -e
#
# update-certdata.sh

[ -w /etc/ssl ] || {
printf '%s\n' "${0##*/}: root required to update cert." >&2
exit 1
}

cd /etc/ssl && {
wget https://curl.haxx.se/ca/cacert.pem
mv -f cacert.pem cert.pem
printf '%s\n' "${0##*/}: updated cert.pm"
}
1 change: 1 addition & 0 deletions core/libressl/sources
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.9.2.tar.gz
patches/getprogname-musl.patch
files/update-certdata.sh
2 changes: 1 addition & 1 deletion core/libressl/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.2 1
2.9.2 2

0 comments on commit 48c55d3

Please sign in to comment.