logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/

tiny-curl.sh (358B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. command -v brssl || die "Run /extras/bearssl.sh"
  8. tar xof /distfiles/tiny-curl-*.tar.gz
  9. cd tiny-curl-*/
  10. export LD=$CC
  11. export MAKE=pdpmake
  12. ./configure --prefix=/usr --with-bearssl --with-ca-bundle=/usr/share/cacert/cert.pem
  13. "$MAKE" RANLIB=true
  14. "$MAKE" install INSTALL=install
  15. cd ..
  16. rm -fr tiny-curl-*/