Use /etc/ssl/certs for SSL certificates

This commit is contained in:
Jeremy Soller 2025-01-09 15:20:51 -07:00
parent a8954f6efa
commit 5e98219f19
No known key found for this signature in database
GPG Key ID: D02FD439211AF56F
2 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,7 @@ COOKBOOK_CONFIGURE_FLAGS=(
--disable-tftp
--disable-threaded-resolver
--enable-static
--with-ca-path=/ssl/certs
--with-ca-path=/etc/ssl/certs
--with-nghttp2="${COOKBOOK_SYSROOT}"
--with-ssl="${COOKBOOK_SYSROOT}"
--with-zlib="${COOKBOOK_SYSROOT}"

View File

@ -4,6 +4,8 @@ git = "https://gitlab.redox-os.org/redox-os/ca-certificates.git"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/ssl"
cp -rv "${COOKBOOK_SOURCE}/certs" "${COOKBOOK_STAGE}/ssl/certs"
mkdir -pv "${COOKBOOK_STAGE}/etc/ssl"
cp -rv "${COOKBOOK_SOURCE}/certs" "${COOKBOOK_STAGE}/etc/ssl/certs"
#TODO: remove deprecated location after all recipes are fixed
ln -s etc/ssl "${COOKBOOK_STAGE}/ssl"
"""