From 9ea969be1f89c0cba0fde83521f94e877fece65b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 22 Aug 2024 14:23:50 +0300 Subject: [PATCH] Ports: Add port that downloads and install cacert to system --- ports/ca-certificates/build.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 ports/ca-certificates/build.sh diff --git a/ports/ca-certificates/build.sh b/ports/ca-certificates/build.sh new file mode 100755 index 00000000..b4c306c7 --- /dev/null +++ b/ports/ca-certificates/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash ../install.sh + +NAME='ca-certificates' +VERSION='2024-07-02' +DOWNLOAD_URL="https://curl.se/ca/cacert-$VERSION.pem#1bf458412568e134a4514f5e170a328d11091e071c7110955c9884ed87972ac9" + +configure() { + : +} + +build() { + : +} + +install() { + mkdir -p "$BANAN_SYSROOT/etc/ssl/certs" + cp -v "../cacert-$VERSION.pem" "$BANAN_SYSROOT/etc/ssl/certs/ca-certificates.crt" +}