libressl (1578B)
1 {%- set pkg_version="3.8.2" -%} 2 {%- set pkg_source="tar.gz" -%} 3 {% extends "autotools_static" %} 4 {% block package_deps -%} 5 #+{{pkg_install_name("ca-certificates-wip-donotuse")}} 6 #@sha256:{{files["c_rehash.c"]}}:c_rehash.c 7 {% endblock %} 8 {% block configure -%} 9 export LDFLAGS="--static" 10 {{ super() -}} 11 {% endblock %} 12 {% block configure_args %}--with-openssldir="$prefix/config/ssl"{% endblock %} 13 {% block build_and_install -%} 14 {{ super() -}} 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 check -%} 34 check_static command/openssl 35 check_static command/ocspcheck 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 %}