aboutsummaryrefslogtreecommitdiff
path: root/core/libressl/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/libressl/build')
-rwxr-xr-xcore/libressl/build13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/libressl/build b/core/libressl/build
new file mode 100755
index 00000000..86ade623
--- /dev/null
+++ b/core/libressl/build
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc
+
+make
+make DESTDIR="$1" install
+
+install -Dm 755 update-certdata.sh "$1/etc/ssl"
+
+# Link ca-certificates to cert.pem
+ln -sfv ../cert.pem "$1/etc/ssl/certs/ca-certificates.crt"