mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

libressl (1608B)


      1 {% extends "autotools" %}
      2 {%- block extra_deps %}
      3 #+{{pkg_install_name("ca-certificates-wip-donotuse")}}
      4 #@untar:-z:sha256:6d4b8d5bbb25a1f8336639e56ec5088052d43a95256697a85c4ce91323c25954:.
      5 #@sha256:{{files["c_rehash.c"]}}:c_rehash.c
      6 {%- endblock %}
      7 {% block at_script %}
      8 
      9 prefix={{versions}}/$pthbs_package
     10 export LDFLAGS="--static"
     11 autotools_static libressl-3.8.2 --with-openssldir="$prefix/config/ssl"
     12 check_static command/openssl
     13 check_static command/ocspcheck
     14 
     15 cd ..
     16 gcc ./c_rehash.c -o c_rehash --static -static -I"$pthbs_destdir/$prefix/include" -L"$pthbs_destdir/$prefix/library" -lssl -lcrypto
     17 cp -vs '{{pkg_install_dir("ca-certificates-wip-donotuse")}}/config/ssl/certs'/*.crt "$pthbs_destdir/$prefix/config/ssl/certs/"
     18 ./c_rehash  "$pthbs_destdir/$prefix/config/ssl/certs/"
     19 cd  "$pthbs_destdir/$prefix/config/ssl/"
     20 mv cert.pem libressl-cert.pem
     21 cp -a certs/ca-certificates.crt cert.pem
     22 
     23 cd  "$pthbs_destdir/$prefix/"
     24 mkdir -p env
     25 # for s6-networking
     26 printf >env/CADIR '%s\n' "$prefix/config/ssl/certs"
     27 # for curl
     28 printf >env/SSL_CERT_DIR '%s\n' "$prefix/config/ssl/certs"
     29 # for git
     30 printf >env/GIT_SSL_CAPATH '%s\n' "$prefix/config/ssl/certs"
     31 
     32 {% endblock %}
     33 {% block rules %}
     34 $2 == "config" { link($0); next }
     35 $2 == "env" { link($0); next }
     36 {% endblock -%}
     37 {% block genlinks_begin %}
     38 	x["./command/openssl"]=1
     39 	x["./command/ocspcheck"]=1
     40 	x["./man/man1/openssl.1"]=1
     41 	x["./library/libssl.a"]=1
     42 	x["./include/tls.h"]=1
     43 	x["./config/ssl/certs/0b9bc432.0"]=1  # ISRG_Root_X2.crt
     44 	x["./config/ssl/certs/4042bcee.0"]=1  # ISRG_Root_X1.crt
     45 	x["./config/ssl/cert.pem"]=1  # merged bundle
     46 {% endblock %}