aboutsummaryrefslogtreecommitdiff
path: root/core/ca-certificates
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-16 01:04:44 +0300
committerCem Keylan <cem@ckyln.com>2020-09-16 01:04:44 +0300
commitaf3e24bee26eb0cbbab683c2f37a3f49bf1338ee (patch)
treea5b8dbeab4441f033cca5cf8d48f4ebf7bebb89f /core/ca-certificates
parent50e2b1c8a75f78920991761b61fc59d23b6f910a (diff)
downloadrepository-af3e24bee26eb0cbbab683c2f37a3f49bf1338ee.tar.gz
meta: revert to using bearssl by default
Diffstat (limited to 'core/ca-certificates')
-rwxr-xr-xcore/ca-certificates/build3
-rw-r--r--core/ca-certificates/checksums1
-rwxr-xr-xcore/ca-certificates/files/cert.sh15
-rwxr-xr-xcore/ca-certificates/post-install3
-rw-r--r--core/ca-certificates/sources1
-rw-r--r--core/ca-certificates/version1
6 files changed, 24 insertions, 0 deletions
diff --git a/core/ca-certificates/build b/core/ca-certificates/build
new file mode 100755
index 00000000..0f8263d8
--- /dev/null
+++ b/core/ca-certificates/build
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+install -Dm755 cert.sh "$1/usr/bin/update-certdata"
diff --git a/core/ca-certificates/checksums b/core/ca-certificates/checksums
new file mode 100644
index 00000000..ec462a46
--- /dev/null
+++ b/core/ca-certificates/checksums
@@ -0,0 +1 @@
+556ce672b222179d5a3e0a3c5fcce3126571d3d321701b0017244a0c879e50a4 cert.sh
diff --git a/core/ca-certificates/files/cert.sh b/core/ca-certificates/files/cert.sh
new file mode 100755
index 00000000..8ab33928
--- /dev/null
+++ b/core/ca-certificates/files/cert.sh
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+#
+# update-certdata
+
+DEST="$CPT_ROOT/etc/certificates"
+
+[ -d "$DEST" ] || mkdir -p "$DEST"
+
+[ -w "$DEST" ] || {
+ printf '%s\n' "${0##*/}: root required to update CA certificates." >&2
+ exit 1
+}
+
+wget https://curl.haxx.se/ca/cacert.pem -O "$DEST/cert.pem"
+printf '%s\n' "${0##*/}: updated cert.pem"
diff --git a/core/ca-certificates/post-install b/core/ca-certificates/post-install
new file mode 100755
index 00000000..8ee4d0ea
--- /dev/null
+++ b/core/ca-certificates/post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/bin/update-certdata
diff --git a/core/ca-certificates/sources b/core/ca-certificates/sources
new file mode 100644
index 00000000..198fd03e
--- /dev/null
+++ b/core/ca-certificates/sources
@@ -0,0 +1 @@
+files/cert.sh
diff --git a/core/ca-certificates/version b/core/ca-certificates/version
new file mode 100644
index 00000000..82026115
--- /dev/null
+++ b/core/ca-certificates/version
@@ -0,0 +1 @@
+git 2